Re: update select based on first select

2008-05-13 Thread Sven Homburg
sorry, one typo @OnEvent(component = "*selectField*", value = "change") public void onChange(String value) { System.err.println(value) } 2008/5/13 Sven Homburg <[EMAIL PROTECTED]>: > your page class: > > @Property > private ValueEnum _selectedItem; > > @Component(parameters = {"mod

Re: update select based on first select

2008-05-13 Thread Sven Homburg
your page class: @Property private ValueEnum _selectedItem; @Component(parameters = {"model=testModel", "value=selectedItem", "event=change", "onCompleteCallback=onSelectCompleteFunction"}) @Mixins(value = "t5components/OnEvent") private Select _selectField; public Select

Re: update select based on first select

2008-05-13 Thread Leon Derks
Hi Chris, Thanks for your answer, this is the other part: blankLabel="${message:text-all}" t:mixins="t5components/OnEvent" event="change" /> The System.out.println("Value: " + value) in my java code always prints the first selected value. After that always the first value is printed, no mat

Re: update select based on first select

2008-05-13 Thread Chris Lewis
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#quer