You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Hensley, Richard" <Ri...@McKesson.com> on 2005/04/14 18:14:05 UTC
RE: How to implement dynamic table background using ognl
expressi on inside style
Patrick,
We have had quite a bit of success using classes and isolating our CSS into
CSS files. It cures many of these kind of problems.
-----Original Message-----
From: Patrick Yip [mailto:yipp@ICG.com]
Sent: Thursday, April 14, 2005 9:03 AM
To: Tapestry users
Subject: RE: How to implement dynamic table background using ognl expression
inside style
I should be more specific about the issue in ognl expression in
style="ognl:global.topLogoBannerBackgroundSrc">
I hope to get the ognl to return something like this:
style="background:url(images/background.gif);"
However, the quotes are converted to "e so the background style does
not show up. Is the a way to return the ognl result without the
framework converting my result string?
-Patrick
-----Original Message-----
From: Patrick Yip
Sent: Thursday, April 14, 2005 8:48 AM
To: Tapestry users
Subject: How to implement dynamic table background using ognl expression
inside style
Is possible to use ognl expression in the table's style. Here is what I
have in mind to get my login banner and background dynamically from
database...but it does not work.
<div id="login"></div>
<table border="0" cellpadding="0" cellspacing="0" width="100%"
height="25" style="ognl:global.topLogoBannerBackgroundSrc">
<tr>
<td width="100%" rowspan="2"><a href="http://www.icg.com">
<img jwcid="@Image" alt="ognl:global.corporateName"
image="ognl:global.topLogoBannerImageAsset"
src="images/demo_company_logo.gif"/>
</td>
</tr>
</table>
How do I get the ognl expression to be evaluated? Or I should use
different approach? Any suggestion is greatly appreciated.
-Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org