myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonardo Uribe <lu4...@gmail.com>
Subject Re: JSF2: Behavior change for ui:params
Date Thu, 15 Dec 2011 16:49:52 GMT
Hi

When you use ui:include, inside myfaces a new template context is created,
and all template logic including template params are "isolated", which means
params passed or earlier ui:define or ui:insert declarations will be ignored.

So it is expected ui:param definitions does not pass through ui:include, unless
you define a ui:param inside ui:include and declare in a explicit way that
this param will be used inside that template. Other option is use
ui:decorate instead ui:include, so the same template context will be used
to resolve your template.

The issue related to this behavior is:

https://issues.apache.org/jira/browse/MYFACES-2753
Trivial multi-level templating does not work if ui:include is used

regards,

Leonardo Uribe

Mime
View raw message