Hi! Although Tapestry Grid don't allow you to specify cell CSS style, you can do something like this:
<t:grid t:source="objects" t:row="o"> <p:somepropertycell> <div class="somepropertystyleclass">${o.someproperty}</div> </p:somepropertycell> </t:grid> Don't you? Regards. Matías. Thiago H. de Paula Figueiredo wrote: > > On Wed, 31 Mar 2010 09:21:04 -0300, Stephan Windmüller > <stephan.windmuel...@cs.tu-dortmund.de> wrote: > >> On 30.03.2010 16:34 Thiago H. de Paula Figueiredo wrote: >> >>>> Is it possible to change the class of a grid cell (not just the row or >>>> column) based on the value of the property? >>> Yes! Just use the rowClass parameter. >> >> But this changes only the class of the tr element like: > > Oops, I misread your question. I'm sorry. Grid currently hasn't a way of > specifying a cell CSS class. > >> Of course I could change the rowClass and use CSS selectors and the >> property id but I am wondering if there is another way. > > AFAIK, there isn't. If you want, you can file a JIRA for that. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, software architect and developer, Ars Machina Tecnologia da > Informação Ltda. > http://www.arsmachina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://old.nabble.com/Grid%3A-Customizing-cell-CSS-based-on-property-value-tp28083380p28099971.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org