Yes it would be nice if you could use facets and specify a style based
on that. I'm working with Chris Barlow on a possible enhancement
along these lines (except for columns) for x:column component. So
when you have open-ended number of columns you can specify how the
data is presented (not just style but whether its a link, text, etc.)
sean
On 4/23/05, Catalin Kormos <[EMAIL PROTECTED]> wrote:
> Yes, that's the solution i was affraid off being the
> only one; i'll probably do so, for now. Thanks for
> your interest and answer.
>
> I guess it should be possible to specify styles for
> rows using properties from row beans, it would be very
> usefull. I was looking over the code, but have no
> ideeas...
>
> --- Heath Borders <[EMAIL PROTECTED]> wrote:
> > Currently, you cannot apply a separate style to each
> > row in a dataTable in
> > the way you want.
> > The only way (kind of a hack) to do it would be to
> > iterate through your
> > collection and build a String array with all the
> > styles you wanted for each
> > row. Then, you could use the rowClasses property and
> > bind it to that String.
> > Of course, this is less efficient since it requires
> > two passes at your
> > collection, but it would work.
> >
> > On 4/22/05, Catalin Kormos <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > Hi there,
> > >
> > > I want to specify a different CSS style to
> > different
> > > rows in a table. The actual style class name
> > should be
> > > obtained from the row bean.
> > >
> > > The problem is that the x:dataTable tag has an
> > > attribute "rowClasses" which can't receive a value
> > > binding like : #{rowBeanName.styleName}
> > > (var=rowBeanName); this seems reasonable, the row
> > bean
> > > is available only when rendering the actual rows,
> > > correct?
> > >
> > > Then, how can i give a dinamic style value for
> > each
> > > table row? i can't specify a background color to
> > the
> > > actual text displayed in each cell, but it will
> > not
> > > cover the entire cell space...
> > >
> > > I'm i missing something?
> > >
> > > Thanks
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam
> > protection around
> > > http://mail.yahoo.com
> > >
> >
> >
> >
> > --
> > -Heath Borders-Wing
> > [EMAIL PROTECTED]
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>