Ok Thiago.

This is what I was trying at first, catching the onchange event of the
select component by javascritp, and launch an ajax request to the server. The
problem is Tapestry does not recognize the "GET" url...
Do you know if Tapestry handles url with a different format?

Do you have any example o any link where I can see the solution you propose?
I have never defined an event in my component or  page class.


Thank you very much for your help!!


2013/12/10 Thiago H de Paula Figueiredo <thiag...@gmail.com>

> On Tue, 10 Dec 2013 13:08:43 -0200, Javier Val Lista <javilan...@gmail.com>
> wrote:
>
>  Hi again Tiago!
>>
>
> Hi!
>
>
>  What I meant is that "value changed" event not exist in Tapestry 5.1 (and
>> exist since 5.2). Therefore, I can“t do something like this in my java
>> class:
>> @OnEvent(value = EventConstants.VALUE_CHANGED, component = "simpleSelect")
>> public Object changeOnSelect(String value) { return xxxx; }
>> How could I handle this EventConstants.VALUE_CHANGED event?
>>
>
> I forgot about the value changed event from Select. In 5.1, you can handle
> the JavaScript 'change' event and trigger an AJAX request to a server-side
> defined event in your component or page class and have its event handler
> method return a TextStreamResponse or a JSONObject.
>
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to