-
1. Re: Dynamically loading a page on demand
lvdberg Jun 9, 2009 11:29 AM (in response to luuzz)Use an ajax rerRnder in combination with the rendered attribute on your panel which must be connected to a backing bean's boolean property, which indicates if it must be rendered or not.
Leo
-
2. Re: Dynamically loading a page on demand
luuzz Jun 9, 2009 11:36 AM (in response to luuzz)Thanks a lot for your answer.
Is there a way to load a page from its uri in a component programmatically and add it to the jsf component tree using the parent/child relation between components?Alassane
-
3. Re: Dynamically loading a page on demand
lvdberg Jun 9, 2009 11:57 AM (in response to luuzz)Alasanne,
you could do that directly in the JSF tree, but the nice thing of Seam (together with Facelets/JSf and Rich) is that a lot is already provided. You could add a bean with a list of
selectable-and-to-be-included
and let Ajax and Seam do the rest.Most development/debugging time is (mis-) used by managing the JSF-tree yourself. Don't do this if not strictly necessary.
-
4. Re: Dynamically loading a page on demand
luuzz Jun 9, 2009 12:11 PM (in response to luuzz)OK !!
Thank you for the piece of advice !!