Wicket javascript callback get variable

2010-09-26 Thread goody44
Hi guys, I'm trying to call wicket from javascript. I have figured out how to do this but its not quite behaving as I expect. On the code below I would expect the success handler (alert('first')) to be fired before the alert('second') but this doesn't prove to be the case.

Dropdownchoice selection to trigger change of form

2010-07-06 Thread goody44
Hi, I would of thought that this would be fairly basic to figure out but I just can't get it to work. I have a dropdownchoice in one form and then another form below it. Based on the selection of the dropdown I want the contents of the other form to change. I have an ajax listener that add the

RE: Dropdownchoice selection to trigger change of form

2010-07-06 Thread goody44
Thanks for your reply. I tried what you said plus a lot of variation but haven't got it to work yet. Using the ajax debugger I noticed that the panel is getting rerendered but not with the new data. Could be a problem with my models. How would you do it if you had a child panel that has a nested

dropdownchoice onchange event called before propertymodel updates

2010-07-01 Thread goody44
Hi, I have a dropdownchoice which determines what details that a form holds. The problem that I am having is that the ajax event is being called before the property model updates the field. So the addVehicleFormPanel is being rendered with the old value and now the new selected one. Hopefully