You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Jue <te...@gmail.com> on 2007/01/26 20:31:39 UTC

Is it possible to get values from a CSS ?

This is a long shot, but here it goes:
I want to define the background color for a table in my css.  Done.
Now I have an image that renders itself in that table (it's a
JFreeChart!), and I want that background to be the same color.
Is there a way for the jwcid tag to pass in the background color that
is specified in the CSS file?

<table class = "useACertainBGColor">
<tr>
<td><img jwcid="@Any" src="ognl:getChartUrl('myChart','300','800')" /></td>
</tr>
</table>

Or would I have to manually pass in a color value in the ognl, like this?

<table class = "useACertainBGColor">
<tr>
<td><img jwcid="@Any"
src="ognl:getChartUrl('myChart','300','800','myBGColor')" /></td>
</tr>
</table>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org