Hi,

for porting an existing web application to Wicket I needed to refresh the contents of DropDownChoice without a new request (for speedy selection). As this is a common technique for selecting categories (things like Computer - Hardware - RAM - DDR or Branch / Company / Person) I decided to create a reusable Wicket component exactly for this. And as having Wicket saved my a lot of time the last weeks I thought I should contribute that back. Well, here are the facts:

- I did a component called WicktorDropDownChoice. It's exactly the same as Wickets original DropDownChoice except for a little method called "connectListForAjaxRefresh(WicktorDropDownChoice choice)". Every list that is connected somehow this way gets reloaded automatically using JavaScript / AJAX at runtime - It works for the current version of IE, Firefox and Safari but it doesn't have a non-JavaScript fallback. So if you want to use it for a public web application some work is still needed - You can download it from http://www.dreivier.net/wicktor.zip , it includes the component sources and a simple example page - Little extra: "WicktorCheckBox and HideableWebMarkupContainer". You can connect the HideableWebMarkupContainer to the WicktorCheckBox and the container gets shown/hidden by state state of the checkbox at the client side. Warning: these two work, but I'm not very proud about the way they work. I have the feeling this could be done in a more elegant way... Any ideas? - Yes, I'm sorry for the stupid name. Wicktor is my wicket-test project for playing around with wicket.
- Any feedback/ideas is highly appreciated.

Good night :)

Regards,
Ralf Ebert


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to