Hello there,
I just tried tapestry 4.1's EventListener and ResponseBuilder to implement a
cascading dropdown list in an ajax way. Here's what I've encountered.
Two selects A and B, implemented with PropertySelection. When a value of A
is selected, B's contents are fetched from database and rendered
dynamically. I'm using EventListener to do this:
@EventListener(targets="A", events="onchange", submitForm ="form")
public void selectA(IRequestCycle cycle) {
bModel = .... New model for b based on value of A ....
cycle.getResponseBuilder().updateComponent("b");
}
I saw bModel was updated correctly, however, B was still rendered with empty
options. I followed the advice below, but still no luck...
http://mail-archives.apache.org/mod_mbox/tapestry-dev/200607.mbox/[EMAIL
PROTECTED]
Any help will be highly appreciated. Thanks!
regards,
-Jammy
_________________________________________________________________
Interest Rates NEAR 39yr LOWS! $430,000 Mortgage for $1,299/mo - Calculate
new payment
http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-19132&moid=14888
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]