|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Dynamic ui:include not workingHi all,
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. The problem is when I have an included page with a form and a couple of fields. When I press another action button that changes the included page to another form, the new form doesn't replace the old one, but gets appended to it. I've been searching the mailing list to see if it had already happened, but I couldn't find anything. I'm using facelets 1.0.10, so may be it's fixed in a later version but I wanted to check with you first. Thanks in advance. Regards, Pablo. |
|
|
Re: Dynamic ui:include not workingI 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.
|
|
|
Re: Dynamic ui:include not workingYou might want to check out the a4j:include control of Richfaces.
I think it does what you want: "The <a4j:include> component is used for page areas update after an Ajax request according to the faces-config Navigation Rules and for implementation of wizard- like parts work in Ajax mode." HTH. Cheers, Vivian Am 22.04.2009 um 10:14 schrieb IGC: > > 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. >> >> > > -- > View this message in context: http://www.nabble.com/Dynamic-ui%3Ainclude-not-working-tp5414001p23171769.html > Sent from the java.net - facelets users mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |