Hi

I checked in deep some days ago ui:param, and it only define the expression
when the view is build, but its context is not preserved on other phases.
FaceletContext extends from ELContext and override its VariableMapper and
FunctionMapper. So in practice, ui:param just add a variable on the variable
mapper. but after ui:composition and ui:include ends its processing the
variable is just discarded, because the whole VariableMapper wrapper created
by this two tags is removed too.

regards,

Leonardo Uribe

2010/7/20 Michael Heinen <[email protected]>

> Is it possible to access the value of a facelets ui:param tag in phase
> render response in a backing bean?
> I tried to resolve #{activeTab} in MyController.getOnlick() without
> success.
>
> Sample:
> 1) Template
> <ui:composition template="templates/main.xhtml">
> <ui:param name="activeTab" value="blabla"/>
>
> <ui:define name="navigation">
> <ui:include src="/facelets/navigation.xhtml"></ui:include>
> </ui:define>
>
>
> 2) navigation.xhtml
> ...
> <t:commandLink onclick="#{MyController.onlick}"
> ...
>
> I use myFaces 1.2.9 and facelets 1.1.15.
>
> Thanks,
> Michael
>
>

Reply via email to