myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-4006) EL in Composite Component Attribut gets no access to bound params from <ui:param>
Date Mon, 14 Sep 2015 17:45:46 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14743902#comment-14743902
] 

Leonardo Uribe commented on MYFACES-4006:
-----------------------------------------

The reason why this happens is ui:param relies on serialization to pass the right value. Since
ui:param is evaluated at build-time, the value is serialized so it can be later user in render-time
and keep things consistent. If the object does not implement Serializable, no value is stored
in the state and the result is the method is called with null.

>From algorithm perspective there is nothing else we can do, so I'll close this one as
not a problem.

> EL in Composite Component Attribut gets no access to bound params from <ui:param>
> ---------------------------------------------------------------------------------
>
>                 Key: MYFACES-4006
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4006
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.2.8
>         Environment: Fedora 22, TomEE 1.7.2
>            Reporter: Christian Kalkhoff
>
> I have a facelets snippet that uses a composite component:
> >>> index.xhtml
> <ui:include src="foo.xhtml">
>   <ui:param name="bar" value="baz" />
> </ui:include>
> >>> foo.xhtml
> #{myBean.someMethod(bar)} calls someMethod with "baz"
> <sc:someComponent someattribute="#{myBean.someMethod(bar)}" /> calls someMethod
with null
> I guess that the EL in composites is evalutated too early or the binding is not submitted
correctly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message