myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Starets <max.star...@oracle.com>
Subject Re: [Trinidad] Unable to populate the header column text and shortDesc dynamically
Date Wed, 18 May 2011 23:14:35 GMT
Claus,

Components in the column's header facet are not stamped (they are not 
specific to any given row),
and you cannot access the var expression ('arg') there.
The header facet applies to the entire column, and not any given row.

Hope this helps,
Max Starets

On 5/18/2011 5:16 AM, Nielsen, Claus Djernaes wrote:
>
> Hi
>
>
> I would like to populate the header text and the tooltip based on what 
> we get in the table. Is this possible?
>
> I have tried the example as below. And putting the header text and 
> shortDesc on the tr:column as well. None of it has worked.
>
> <tr:table value="#{generateSendCapacitySummaryBean.vesselDetails}"
> bandingInterval="2" banding="row" var="arg"
>           emptyText="No vessel call details">
> <tr:column>
> <f:facet name="header">
> <tr:outputText value="Service" shortDesc="#{arg.serviceTooltip}"/>
> </f:facet>
> <tr:outputText value="#{arg.service}" />
> </tr:column>
> </tr:table>
>
> Is there a way to solve this?
>
>
>
> Best regards
>
> Claus D. Nielsen
>
>
>
> P.S
>
> I have created a Jira as well. It's ID is
>
> ·MyFaces Trinidad <https://issues.apache.org/jira/browse/TRINIDAD>
>
> ·TRINIDAD-2103 <https://issues.apache.org/jira/browse/TRINIDAD-2103>
>
> This e-mail is intended exclusively for the addressee. If you are not 
> the addressee you must not read, copy, use or disclose the e-mail nor 
> the content; please notify us immediately [by clicking 'Reply'] and 
> delete this e-mail.
>
>

Mime
View raw message