You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Patrick Yip <yi...@ICG.com> on 2005/04/14 17:47:54 UTC

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
 

Re: How to implement dynamic table background using ognl expression inside style

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Apr 14, 2005, at 11:47 AM, Patrick Yip wrote:

> 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?

Simply add jwcid="@Any" to your <table> element.

	Erik


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


Re: How to implement dynamic table background using ognl expression inside style

Posted by Geoff Longman <gl...@gmail.com>.
use the Any component in the table tag

On 4/14/05, Patrick Yip <yi...@icg.com> wrote:
> 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