-
1. Re: Working or replacing UIInclude (or Include) in custom co
josey61 Sep 4, 2008 11:41 AM (in response to sebdoncker)I'm having the same problem - did you ever find a solution?
-
2. Re: Working or replacing UIInclude (or Include) in custom co
sebdoncker Sep 4, 2008 1:40 PM (in response to sebdoncker)Hi,
No I don't find a solution for this. I change my way to do what I wnated to do at this moment.
I tried to make custom components and to play with faces context for different things and that results in various problems :
- no html
- html but no context
- html and context at render time but the context was lost when we click on a commandButton after that...
So, I done all of this in another way :-(
Sorry to not be able to help you.
seb -
3. Re: Working or replacing UIInclude (or Include) in custom co
nbelaevski Sep 5, 2008 2:38 PM (in response to sebdoncker)Seb,
You can use dynamic viewId, e.g.<a4j:include viewId="#{bean.viewId}">
Maybe that will solve the problem? -
4. Re: Working or replacing UIInclude (or Include) in custom co
sebdoncker Sep 5, 2008 3:01 PM (in response to sebdoncker)Thanks for your answer.
I have used this tag but what I tried to do is to make my own component like <a4j:include> or <ui:include> but I want to put some extra variables in the context before to render the included view.
I tried to have these variables available in the view with EL.
I don't know if I am very clear.
By example, I tried to have these :<custom:include viewId="foo.xhtml" context="#{aBean.aProperty}"/>
then in the foo.xhtml page, I want to access the context by typing code like that :<h:outputText value="#{context.aProperty}"/>
This way, I can have a "parametrized" xhtml view.
Anyway, thank you for your help.
Seb