page.tml:

<t:grid t:source="objects" t:row="o">
     <p:somepropertycell>
         <div class="${somestyleclass}">${o.someproperty}</div>
     </p:somepropertycell>
</t:grid>

app.css:

.somestyleclass {
   background-color:red;
   width: 100%;
   height: 100%;
}

doesn't it works?


Stephan Windmüller-8 wrote:
> 
> On 31.03.2010 20:31 matias.blasi wrote:
> 
>> 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>
> 
> Of course, but I want to change the background-color of the whole cell.
> 
> - Stephan
> 
> ---------------------------------------------------------------------
> 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-tp28083380p28106874.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

Reply via email to