I have a similar problem and I would be extremely grateful to anyone providing a solution (or at least a workaround) for this problem.
My scenario is as follows: I'm using Myfaces, Richfaces and facelets. I have a .xhtml page divided in two sections and the content in both of them are .xhtml pages provided by ui:include. I want to change the content of each section from the other (when pressing a button or whatever) without reloading the whole page, because that would probably lead to loosing the data the user has entered for the components on the other section -i.e. the "state" of the components.
In other words, I'm trying to emulate a page with two frames where one frame's data is loaded dynamically when some action is done on the other frame (and of course without loosing any data of any of both frames on the way).
Is there a way to achieve this purpose with facelets or should I choose another technology (if this is the case, please tell me which other technology)?
I repeat, I urgently need a solution to this problem, the whole project I'm working on depends on it.
Thank you very much in advance to anyone sharing some light on this issue.
PabloS wrote:
I have a page with an ui:include defined as follows:
<ui:include src="#{ANC.nextPage}" />
where nextPage is a variable that is being changed by different
commandButtons.