[
https://issues.apache.org/jira/browse/MYFACES-3634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13484863#comment-13484863
]
Vlad commented on MYFACES-3634:
-------------------------------
On Mojarra this xhtml works fine
{code:xml|title=find_create.xhtml}
<f:metadata>
<ui:param name="usedBean" value="#{MyLongNameBean}"/>
<f:metadata>
<ui:composition template="template.xhtml">
<ui:param name="title" value="#{usedBean.text['account.find.title']}"/>
<ui:define name="content">
...usedBean in EL experssions many times
</ui:define>
</ui:composition>
{xml}
On MyFaces - not. Eliminate using param - than works fine, but that param
greatly simplify using copy-past small xhtml blocks between different pages:
{code:xml|title=find_create.xhtml}
<ui:composition template="template.xhtml">
<ui:param name="title"
value="#{MyLongNameBean.text['account.find.title']}"/>
<ui:define name="content">
...MyLongNameBean in EL experssions many times
</ui:define>
</ui:composition>
{xml}
If we use another one composite, it will works
{code:xml|title=find_create.xhtml}
<ui:include src="find_create_impl.xhtml">
<ui:param name="usedBean" value="#{ejsAccountsBean}"/>
</ui:include>
{code:xml|title=find_create.xhtml}
{code:xml|title=find_create_impl.xhtml}
<ui:composition template="template.xhtml">
<ui:param name="title" value="#{usedBean.text['account.find.title']}"/>
<ui:define name="content">
...usedBean in EL experssions many times
</ui:define>
</ui:composition>
{xml}
but it is too hard to add 60 _impl files for all my xhtml pages
> ui:param doesnot work inside same xhtml page
> --------------------------------------------
>
> Key: MYFACES-3634
> URL: https://issues.apache.org/jira/browse/MYFACES-3634
> Project: MyFaces Core
> Issue Type: Bug
> Components: General
> Affects Versions: 2.1.9
> Environment: tomcat 7.0.25, primefaces 3.2
> Reporter: Vlad
>
> Using ui:param to access some bean with it "shortname" works on Mojarra, but
> doesn't work on Myfaces
> <f:metadata>
> <ui:param name="usedBean" value="#{MyLongNameBean}"/>
> <f:metadata>
> <ui:composition template="template.xhtml">
> <ui:param name="title" value="#{usedBean.text['account.find.title']}"/>
> <ui:define name="content">
> ...usedBean in EL experssions many times
> </ui:define>
> </ui:composition>
> all EL exp. where is usedBean resolved to null. On Mojarra 'usedBean'
> calculated as MyLongNameBean and works correctly
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira