Well, if it does its job I think it should be ok :)
I got it working, but I'm not sure if the way I did it is correct. Here's the
final code:
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-selection-won-t-update-form-fields-tp4413980p4417640.html
Se
I got it working, but I'm not sure if the way I did it is correct. Here's the
final code:
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-selection-won-t-update-form-fields-tp4413980p4417640.html
Sent from the Users forum mailing list archive at Nabble
This is strange. Can you post the code of the full page?
Once again, you make it simpler than I thought it would be. Thanks again.
Finally, how do I reset the form from the onSubmit button of the form? I
tried this:
But it doesn't work. The form never gets reset. I'm able to get the updated
li
Once again, you make it simpler than I thought it would be. Thanks again.
Finally, how do I reset the form from the onSubmit button of the form? I
tried this:
But it doesn't work. The form never gets reset. I'm able to get the updated
list from the DB and repopulate the list. And the list is up
Maybe the problem is with resetButton. The code inside onSubmit breaks
the model chain. If you want to reset form's field try just with
form.setModelObject(new ConfigTypeDTO());
I jumped the gun on that one. It didn't work.
I was still calling the old page from my menu. Once I fixed that and I
I jumped the gun on that one. It didn't work.
I was still calling the old page from my menu. Once I fixed that and I am
now calling a new page with your suggestions, the form objects never get
updated. Here's the code:
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com
That worked. Thanks!
The only downside is that the wicket plugin for netbeans is throwing a bunch
of errors at me due to the way it's now set up.
It's saying that everything I add to the form is a child in Java and not in
HTML.
--
View this message in context:
http://apache-wicket.1842946.n4.n
Hi,
you can clean up your page using a CompundPropertyModel for your form
and a Model for dropDownChoice. I would make a chain of models passing
Model to CompoundPropertyModel:
model = new Model(configType);//for dropDownChoice
CompoundPropertyModel cpm = new CompoundPropertyModel(model) //f
Also, the drop down is not part of the form. Here's the HTML:
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-selection-won-t-update-form-fields-tp4413980p4414035.html
Sent from the Users forum mailing list archive at Nabble.com.
--
I have a dropdownchoice populated from a database call. When a user selects
an item from the drop down, I want to load the values of the drop down
object into the form.
I can't seem to be able to just get the form to reload with the chosen
object. But I can change the form fields individually by
10 matches
Mail list logo