Never mind, sorted it out myself :).

      <td jwcid="@Any" colspan="ognl:size">

> -----Original Message-----
> From: Patrick Casey [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 03, 2005 3:07 PM
> To: 'Tapestry users'
> Subject: Add attribute via span?
> 
> 
> 
>             I have a <td> tag on my page.
> 
>             It's supposed to have a colspan=<some number> where <some
> number> is available in the page.
> 
> 
> 
>             So if It's "3" I want
> 
> 
> 
>             <td colspan="3">foo</td>
> 
> 
> 
>             If it's "8" I want
> 
> 
> 
>             <td colspan="8">foo</td>
> 
> 
> 
>             How do I set this up in my page template?
> 
> <td colspan=
> 
> <span jwcid="@Insert" value="ognl:pair.question.spanOptions.size"/>
> 
> >
> 
> 
> 
> foo </td>
> 
> 
> 
>             Doesn't work (I'd have been shocked if it did).
> 
> 
> 
>             So how do I set a tag attribute to some sort of ognl derived
> value?
> 
> 
> 
>             --- Pat
> 
> 
> 
>             PS Sorry for the flurry of stupid questions, but I'm actually
> doing page definition today (as opposed to framework stuff), so I'm back
> actually writing .page and .html files for the first time in a while and
> I'm
> apparently rather rusty.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to