incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: [Trinidad] missing row binding for column attributes
Date Mon, 19 Feb 2007 23:35:11 GMT
I think it varies from attribute to attribute (in an undocumented way).
"align" is requested once, globally, while styleClass (as of the
latest code) is requested once per row.  It is more efficient getting
it once, but also limiting.

-- Adam


On 2/19/07, Renzo Tomaselli <renzo.tomaselli@tecnotp.it> wrote:
>
> Hi, I wonder why the row binding for column attributes seems missing,
> while it get happily resolved for internal elements.
> E.i. in the table:
>
> <tr:table var="row" ...
>         <c:forEach var="column" items="#{bean.columnHeaders}"
> varStatus="iteration">
>             <tr:column align="#{row.align}>
>                 <tr:outputText value="#{row.props[iteration.index]}"/>
>             </tr:column>
>             ...
>         </c:forEach>
>
> the expression #{row.align} is not resolved and I get the warning
> "Unknown value for align:" while row.props get through.
> Indeed method getAlign() is never reached on the row bean. The same
> holds true while using a static function, passing row as a parameter.
> The function gets null.
> I saw that method getFormatType(bean) in ColumnRenderer.java returns
> null after getting it from a binding.getValue() call.
> Any suggestion ?
> Thanks -- Renzo
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message