Worked great!
Thanks Thiago.
On 8/28/07, Thiago H de Paula Figueiredo <[EMAIL PROTECTED]> wrote:
>
> On Tue, 28 Aug 2007 11:24:03 -0300, Marcos Chicote
> <[EMAIL PROTECTED]> wrote:
>
> > @EventListener(targets = "A", events = "onchange")
> > public void onChange(IRequestCycle cycle, BrowserEvent event) {
>
> Even better: you need to submit the form when the user selects a different
> value of A, so you know what value was chosen.
> The submitForm property of @EventListener does the trick:
>
> @EventListener(targets = "A", events = "onchange", submitForm="form")
> public void onChange(IRequestCycle cycle, BrowserEvent event) {
>
> Looking at the Javadocs of the latest snapshot, it looks like you won't
> need to specify submitForm anymore.
>
> http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/annotations/EventListener.html
>
> --
> Thiago H. de Paula Figueiredo
> Desenvolvedor, Instrutor e Consultor de Tecnologia
> Eteg Tecnologia da Informação Ltda.
> http://www.eteg.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>