You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "CONNER, BRENDAN (SBCSI)" <bc...@sbc.com> on 2005/08/04 21:59:01 UTC
Dynamically determining a cell's style in a table
I recall some discussion awhile ago about the possibility of dynamically
determining a style class for an individual row or cell in a table based
upon some information in the associated data bean. Can someone
summarize what (if anything) was decided? Is this capability available?
Thanks,
- Brendan
Re: Dynamically determining a cell's style in a table
Posted by Martin Marinschek <ma...@gmail.com>.
Yes, the functionality is there.
just use x:column in the nightly build!
regards,
Martin
On 8/4/05, Richard Wallace <rw...@thewallacepack.net> wrote:
>
> This is available in tomahawk as of earlier this week thanks to Mathias
> Broekelmann. Search the list archives for subject "Variable cell style
> classes in data table". The short and skinny is that you can do
> something like:
>
> <x:dataTable values="#{bean.values}" var="val">
> <x:column styleClass="style-#{val}">
> <h:outputText value="#{val}" />
> </x:column>
> </x:dataTable>
>
> Rich
>
> Sean Schofield wrote:
>
> >I don't think this is available. We're currently working on something
> >at work that is similar. We need the ability to dynamically determine
> >column width.
> >
> >sean
> >
> >On 8/4/05, CONNER, BRENDAN (SBCSI) <bc...@sbc.com> wrote:
> >
> >
> >>I recall some discussion awhile ago about the possibility of dynamically
> >>determining a style class for an individual row or cell in a table based
> >>upon some information in the associated data bean. Can someone
> >>summarize what (if anything) was decided? Is this capability available?
> >>
> >>Thanks,
> >>
> >>- Brendan
> >>
> >>
> >>
>
>
Re: Dynamically determining a cell's style in a table
Posted by Richard Wallace <rw...@thewallacepack.net>.
This is available in tomahawk as of earlier this week thanks to Mathias
Broekelmann. Search the list archives for subject "Variable cell style
classes in data table". The short and skinny is that you can do
something like:
<x:dataTable values="#{bean.values}" var="val">
<x:column styleClass="style-#{val}">
<h:outputText value="#{val}" />
</x:column>
</x:dataTable>
Rich
Sean Schofield wrote:
>I don't think this is available. We're currently working on something
>at work that is similar. We need the ability to dynamically determine
>column width.
>
>sean
>
>On 8/4/05, CONNER, BRENDAN (SBCSI) <bc...@sbc.com> wrote:
>
>
>>I recall some discussion awhile ago about the possibility of dynamically
>>determining a style class for an individual row or cell in a table based
>>upon some information in the associated data bean. Can someone
>>summarize what (if anything) was decided? Is this capability available?
>>
>>Thanks,
>>
>>- Brendan
>>
>>
>>
Re: Dynamically determining a cell's style in a table
Posted by Sean Schofield <se...@gmail.com>.
I don't think this is available. We're currently working on something
at work that is similar. We need the ability to dynamically determine
column width.
sean
On 8/4/05, CONNER, BRENDAN (SBCSI) <bc...@sbc.com> wrote:
> I recall some discussion awhile ago about the possibility of dynamically
> determining a style class for an individual row or cell in a table based
> upon some information in the associated data bean. Can someone
> summarize what (if anything) was decided? Is this capability available?
>
> Thanks,
>
> - Brendan
>