you could do it with a popup and then do it complete on the client side with _javascript_.

on the server side if you don't want to touch the models in any way you want to set the rawinput variable of formcomponent
this is something done completely internally now don't know at the moment if we just can open that up..
Because it has somekind of lifecycle right now.

johan


On 4/8/06, MailingWicketUser <[EMAIL PROTECTED]> wrote:

Hi!

I have a use-case I'd like to solve. Unfortunately I see no way to realize it with Wicket. I searched the lists for a similar question but found nothing.

I have a Form containing various FormComponents, one of it is a DropDownChoice. Because the list of choices is very long, I'd like to allow the User to click on a button which takes him to a separate page where he can select a choice from a list, which he can sort and filter. Upon selecting a choice he should be taken back to the page with the DropDownChoice and the DropDownChoice should show the choice he just picked from the list.

Unfortunately, I see no way of setting the value of the DropDownChoice in the way it would have happened if the user selected a value using only the DropDownChoice itself. Basically I want to "emulate" the user operating the DropDownChoice using the method described above. I.e. it is not an option the change the underlying model. Everything has to happen before/without validation. I cannot touch/update the model until the user clicks the "save" (submit) button due to persistency constraints.

Can anyone think of a way I could implement this use-case with Wicket?

Regards,

Timo Verhoeven


Reply via email to