-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow child processing via p:ajax skipChildren=false on TabView and Accordion #2525
Comments
I decided to use a remotecommand called 'updateTabViewOnStartTabChange' to update all contents of the tabs when the tabchange event is fired. index.xhtml
_1stTab.xhtml
|
I checked the the problem and it doesn't look like a bug. |
@tandraschko can you put an example using skipChildren on ajax and not loose the content when you change tab? For example, in the below i can't send the value (always is null) to the controller, doesn't matter if i use skipChildren true/false.
|
Did you build from trunk? skipChildren=false worked fine for me yesterday |
I would also try it without immediate ;) Note sure if the value is already there in this case as the listener is executed much earlier. |
Well, unfortunatelly didn't work for me. I tried a lot of things in my tests. I'd like to receive in the controller, the content inside a current tab when a change the tabs and also I'd like change the content in the controller and receive the updated content in the xhtml. This behavior is very useful in the lazing views. If you can put an example when this behavior is contemplated I would be verry happy and I would believe that is not a bug. Anyway thank you for all ;) |
I just used your example:
If you use the default behavior or skipChildren=true, the content will be lost on tabchange. |
Hi,
When I use the dynamic tabview with tabs including by ui:include and the tab is changed, the content of anothers tabs is losing. This problem/behavior started in version 5+ incluiding the newest version (6.1). In version 4 and 3.5 is working fine.
I opened this issue because another issue with the same problem was closed : #424 .
1) Environment
2) Expected behavior
Keep content in the tabs when we changed tabs.
...
3) Actual behavior
Losing content in the not current tabs.
..
4) Steps to reproduce
1 - In the first tab, put some value in the inputtext;
2 - Go to second tab;
3 - Go back to first tab and the value was lost.;
5) Sample XHTML
index.xhtml:
_1stTab.xhtml:
_2ndTab.xhtml:
_3rdTab.xhtml:
6) Sample bean
`import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import org.primefaces.event.TabChangeEvent;
@ManagedBean
@ViewScoped
public class Controller {
The text was updated successfully, but these errors were encountered: