myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <>
Subject [jira] [Commented] (MYFACES-3971) ui:repeat var attribute is not a javax.el.ValueExpression
Date Tue, 31 Mar 2015 23:01:00 GMT


Leonardo Uribe commented on MYFACES-3971:

I do not understand what do you mean. If you need to pass values inside a composite component
you have to declare them as properties and pass them declaring them in the code that declares
the target composite component, otherwise it is broken design. ui:repeat and h:dataTable set
"var" on request map:

                        .put(var, localModel.getRowData());

I'll close this issue as not an issue, because it is not a MyFaces bug.

> ui:repeat var attribute is not a javax.el.ValueExpression
> ---------------------------------------------------------
>                 Key: MYFACES-3971
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>            Reporter: Alexander Papadakis
>  As per the spec, the 'var' attribute in ui:repeat should be a javax.el.ValueExpression
(must evaluate to java.lang.Object).
> As such, it should be possible to use it in a composite with a value like #{cc.attrs.varname}
where varname is a cc:attribute populated where the composite is instantiated.
> ui:repeat as it wotks now, it will now evaluate any el sett in var.

This message was sent by Atlassian JIRA

View raw message