You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Cosmin Bucur <co...@gmail.com> on 2005/12/01 03:46:48 UTC
Is it possible to pass parameters to the @If listener ?
I don't see a "parameters" parameter , like in most other components
with a listener parameter ?
can this be done some other way for the @If ?
Thanks ,
Cosmin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Is it possible to pass parameters to the If listener ?
Posted by Ron Piterman <rp...@gmx.net>.
I guess he means something else, which is the listener embedded in the
if component.
I guess also you don"t need any parameters there, beacuase the listener
can get all the information from the current state of the
component/object. the listener is not deferred, and thus will be called
just before the rendering of the if. any parameter you could gain access
to any parameter the if could have accessed.
The only use I could think of using such a parameter is if you want to
use the same listener for several if's.
so don"t :)
Cheers,
Ron
Kent Tong wrote:
> Cosmin Bucur <coszminb <at> gmail.com> writes:
>
>
>>I don't see a "parameters" parameter , like in most other components
>>with a listener parameter ?
>>
>>can this be done some other way for the <at> If ?
>
>
> Even though I don't understand why someone would need a listener
> for the If component, you can have something like:
>
> <span jwcid="@InvokeListener" listener="..." parameters="..."/>
> <span jwcid="@If" condition="..."/>
>
> --
> Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)
>
>
> ---------------------------------------------------------------------
> 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
Re: Is it possible to pass parameters to the If listener ?
Posted by Kent Tong <ke...@cpttm.org.mo>.
Cosmin Bucur <coszminb <at> gmail.com> writes:
>
> I don't see a "parameters" parameter , like in most other components
> with a listener parameter ?
>
> can this be done some other way for the <at> If ?
Even though I don't understand why someone would need a listener
for the If component, you can have something like:
<span jwcid="@InvokeListener" listener="..." parameters="..."/>
<span jwcid="@If" condition="..."/>
--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org