You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jeff Emminger <je...@jeffemminger.com> on 2003/11/06 22:08:39 UTC

newbie expression help

Hi all,

Easy question I'm sure...

given this:

<page-specification class="tutorial.hangman.Home">
<component id="form" type="Form">
   <binding name="listener" expression="listeners.formSubmit" />
</component>

where does the "listeners" in "listeners.formSubmit" come from?
how do I know to preface "formSubmit" with it?

thanks,
Jeff



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


Re: newbie expression help

Posted by Harish Krishnaswamy <hk...@comcast.net>.
Any method in your page that has the signature public void listenerMethod(IRequestCycle cycle) is 
considered a listener and Tapestry would collect them and make a map that can be accessed via the 
listeners property of the page and hence the expression listeners.listenerMethod.

-Harish

Jeff Emminger wrote:

> Hi all,
> 
> Easy question I'm sure...
> 
> given this:
> 
> <page-specification class="tutorial.hangman.Home">
> <component id="form" type="Form">
>   <binding name="listener" expression="listeners.formSubmit" />
> </component>
> 
> where does the "listeners" in "listeners.formSubmit" come from?
> how do I know to preface "formSubmit" with it?
> 
> thanks,
> Jeff
> 
> 
> 
> ---------------------------------------------------------------------
> 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: newbie expression help

Posted by Jeff Emminger <je...@jeffemminger.com>.
Ok, I'm still rtfm...but it looks like it's ognl for referencing 
"getListeners()", inherited from AbstractComponent, correct?


Jeff Emminger wrote:

> Hi all,
> 
> Easy question I'm sure...
> 
> given this:
> 
> <page-specification class="tutorial.hangman.Home">
> <component id="form" type="Form">
>   <binding name="listener" expression="listeners.formSubmit" />
> </component>
> 
> where does the "listeners" in "listeners.formSubmit" come from?
> how do I know to preface "formSubmit" with it?
> 
> thanks,
> Jeff
> 
> 
> 
> ---------------------------------------------------------------------
> 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: newbie expression help

Posted by "Julio C. Rivera" <ju...@ya.com>.
Please, see 
http://jakarta.apache.org/tapestry/doc/DevelopersGuide/cycle.listeners.html, 
I think it can help you.

I hope this helps.
    Julio.

At 16:08 06/11/2003 -0500, you wrote:
>Hi all,
>
>Easy question I'm sure...
>
>given this:
>
><page-specification class="tutorial.hangman.Home">
><component id="form" type="Form">
>   <binding name="listener" expression="listeners.formSubmit" />
></component>
>
>where does the "listeners" in "listeners.formSubmit" come from?
>how do I know to preface "formSubmit" with it?
>
>thanks,
>Jeff
>
>
>
>---------------------------------------------------------------------
>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