You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Reinier Mostert <re...@clabo.co.za> on 2003/05/17 02:15:26 UTC
Passing values to helper beans
Hi all,
I'm trying to highlight certain rows in a list that I show with a
foreach. Seems the best way to do that is to change the class using a
helper bean (using CSS).
However, I want to pass a string (that I obtain from a ognl expression
on the current object in the foreach) in to my own helper bean, and
depending on the value of this string, I want a specific class name to
be returned by the bean.
Is it possible to pass parameters to a helper bean?
TIA
reinier
--
Reinier Mostert <re...@clabo.co.za>
Re: Passing values to helper beans
Posted by Reinier Mostert <re...@clabo.co.za>.
Never mind, I did it using class="ognl:getClass" and checking the
conditions in my code.
Thanx
On Sat, 2003-05-17 at 02:15, Reinier Mostert wrote:
> Hi all,
>
> I'm trying to highlight certain rows in a list that I show with a
> foreach. Seems the best way to do that is to change the class using a
> helper bean (using CSS).
>
> However, I want to pass a string (that I obtain from a ognl expression
> on the current object in the foreach) in to my own helper bean, and
> depending on the value of this string, I want a specific class name to
> be returned by the bean.
>
> Is it possible to pass parameters to a helper bean?
>
> TIA
> reinier
--
Reinier Mostert <re...@clabo.co.za>