You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Stephane Decleire <sd...@cariboo-networks.com> on 2007/11/14 11:13:53 UTC

T5 : Event system

I've tried without success to add an "onchange" event on a select box 
without firing the submit of the form.

@OnEvent(value="onChange", component="mySelect")
private String select() {
    log.info("new item selected");
    return null;
}

Did i miss something or is the only way to get an event on a select is 
to submit the form ?
Thanks in advance.

Stephane

Re: T5 : Event system

Posted by Steph <sd...@cariboo-networks.com>.
Stephane Decleire a écrit :
> I've tried without success to add an "onchange" event on a select box 
> without firing the submit of the form.
>
> @OnEvent(value="onChange", component="mySelect")
> private String select() {
>    log.info("new item selected");
>    return null;
> }
>
> Did i miss something or is the only way to get an event on a select is 
> to submit the form ?
> Thanks in advance.
>
> Stephane
>
It seems that my need is similar to Martin ... (onchange event from a 
select).

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


Re: T5 : Event system

Posted by Steph <sd...@cariboo-networks.com>.
Is there a version number or deadline already planned for this
functionality ?

Thiago H de Paula Figueiredo a écrit :
> On Wed, 14 Nov 2007 08:13:53 -0200, Stephane Decleire
> <sd...@cariboo-networks.com> wrote:
>
>> I've tried without success to add an "onchange" event on a select box
>> without firing the submit of the form.
>>
>> @OnEvent(value="onChange", component="mySelect")
>> private String select() {
>>     log.info("new item selected");
>>     return null;
>> }
>
> AFAIK, the binding of methods to Javascript events is not implemented
> yet.
>


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


Re: T5 : Event system

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Wed, 14 Nov 2007 08:13:53 -0200, Stephane Decleire  
<sd...@cariboo-networks.com> wrote:

> I've tried without success to add an "onchange" event on a select box
> without firing the submit of the form.
>
> @OnEvent(value="onChange", component="mySelect")
> private String select() {
>     log.info("new item selected");
>     return null;
> }

AFAIK, the binding of methods to Javascript events is not implemented yet.

-- 
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org