myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrik Bentel <hbentel...@gmail.com>
Subject Re: dataTable and dynamic rowClasses
Date Thu, 26 Jan 2006 03:03:01 GMT
That worked great, thanks

-Henrik

On 1/25/06, Dennis Byrne <dennis@dbyrne.net> wrote:
> Try binding the dataTable element to a component instance :
>
> <h:dataTable binding="#{b.b1}" />
>
> ... where b1 is a property for a HtmlDataTable .
>
> Then, before the page is rendered, call HtmlDataTable.setRowClasses() .
>
> Dennis Byrne
>
> >-----Original Message-----
> >From: Henrik Bentel [mailto:hbentel.ml@gmail.com]
> >Sent: Wednesday, January 25, 2006 07:42 PM
> >To: users@myfaces.apache.org
> >Subject: dataTable and dynamic rowClasses
> >
> >Hi
> >
> >I'm looking for a way to dynamically set the style of each
> >row in a dataTable. I know how to do it statically using rowClasses
> >with a comma delimited string.
> >
> >I'm using the tomahawk dataTable and I've tried to
> >change the "rowClasses" property to an expression like so:
> >#{MyBackingBean.rowClass}
> >but that property is only resolved once when the table component is rendered.
> >
> >What I'm looking for is a way to set the style of the current row
> >being rendered  based on the state of the current element (current
> >"var").
> >Is this possible?
> >
> >thanks
> >-Henrik
> >
>
>
>

Mime
View raw message