Chaining Ajax DropDown components
Nick Heudecker has written up a nice tutorial on AJAX-Enabled Select Lists with Wicket. He writes:
A common use case for AJAX are dependent select lists. For example, a user selects from a list of States in the first list and the list of Cities is updated based on the selected State. Wicket makes this easy.
Then he goes out and shows you how to create these two interlinked components with little effort. In the blog format it looks harder then it is (the formatting isn’t too clear). I think I’ll try to convince Nick to donate the example to our example documents.
Update: from the comments, our own Wicket has its own document, written by Gwyn Evans: Drop Down Choice Examples
July 18th, 2006 at 3:03 pm
There’s an alternative example on the Wiki under DropDownExamples which might be easier to see - I think so, but then as I wrote it, you’d hope so!
/Gwyn
http://www.wicket-wiki.org.uk/wiki/index.php/DropDownChoice_Examples
July 20th, 2006 at 7:22 am
Apologies for the formatting, but it was based on code I’m using in production so it seemed clear enough to me. If you’re interested, I’m happy to donate it, but Gwyn’s looks a little better.