Leon, I can't tell from that code where/how you've used the OnEvent mixin. I see the @OnEvent annotation, but that's unrelated (as you probably realize). This exact use case was discussed recently - see:
http://markmail.org/search/?q=ajax-based+data+retrieval+list%3Aorg.apache.tapestry.users#query:ajax-based%20data%20retrieval%20list%3Aorg.apache.tapestry.users+page:1+mid:5srufbsi5jsrdmu2+state:results chris Leon Derks wrote: > I want to update a select, based on a value from another select. > > I have tried the OnEvent mixin from the t5components, but only the > first selected value is printed to the screen. > When I select another value after that, it always prints the first > selected value. > > How can I do this with Tapestry 5 at the moment? > > Here is a part of the java page code: > > @OnEvent(component = "productSelect", value = "change") > Object onProductSelectChanged(String value) > { > System.out.println("Value: " + value); > return null; > } > > Leon > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://thegodcode.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]