You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ken in nashua <nh...@hotmail.com> on 2008/01/03 17:05:02 UTC

T-4.1.3 - @EventListener quiz question


Which syntax is valid?
 
1. @EventListener(events = { "onChange" }, 
        targets =  { "tableSizeSelect" }, 
        submitForm = "galleryForm", 
        async = true)
 
2. @EventListener(events="onchange",
        targets="tableSizeSelect",
        submitForm="galleryForm",
        async=true)
 
Winner scores 100 points.Best regards Ken in nashua
_________________________________________________________________
i’m is proud to present Cause Effect, a series about real people making a difference.
http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect

Re: T-4.1.3 - @EventListener quiz question

Posted by Kevin Menard <km...@servprise.com>.
Either is correct.  You can pass a single String in place of a String[] if
you only need one value.  If you have more than one target or event, you
have to use the first form.


On 1/3/08 11:05 AM, in article BAY120-W215CE8E3A98CAAAEABBA43C9530@phx.gbl,
"Ken in nashua" <nh...@hotmail.com> wrote:

> 
> 
> Which syntax is valid?
>  
> 1. @EventListener(events = { "onChange" },
>         targets =  { "tableSizeSelect" },
>         submitForm = "galleryForm",
>         async = true)
>  
> 2. @EventListener(events="onchange",
>         targets="tableSizeSelect",
>         submitForm="galleryForm",
>         async=true)
>  
> Winner scores 100 points.Best regards Ken in nashua
> _________________________________________________________________
> i¹m is proud to present Cause Effect, a series about real people making a
> difference.
> http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect



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