I have a class that extends DropDownChoice, called TCOChooser. It is for some
very minor things (overriding wantOnSelectionChanged, the choice renderer, etc
). I have a page that uses TCOChooser to allow the user to select a TCO that
changes the data displayed in a table lower on the page.
If you call setNullValid(true) the default "null" value will be an empty string instead of "Choose One"
Andy
"When I reach with the selection in a combo box, to the first item in the list, wicket places a "Choose one" option as the first item in the combo. Am I doing something wrong or ...
At wit's end here so I'm going to post my code. Can't for the life of me figure out why the form won't reset, even when I re-initialize the underlying model object.
Code follows:
AccountPage.java
public class AccountPage extends DefaultPage{ /* The user to edit, or null (for a new user) */
That PropertyModel is used inside some custom FormComponents that I have that do their own logic on whether to add the RequiredValidator or not depending on the Boolean object returned from the binding RequiredFieldContainer.CLASSIFIED_ACCOUNT_TYPE which is the isClassifiedAccountType method
Title: Wicket-user digest, Vol 1 #2423 - 3 msgs
How would I go about resetting a form to a blank state after it validates it's data and stores it to a database? Subsequent visits to the Page the form is on still contains the data from the last submission.
I tried re-initializing the object
Would that answer be relevant for 1.2 or is this something that should be working in 1.1.1? I can't seem to get that to work.
AndyBean bean=3Dnew Bean();Form.setModelObject(bean);where bean is the bean backing the form, and form has the compound model,-IgorOn 4/26/06, Andrew Strickland [EMAIL
My apologies for leaving all that reply text in my last response. Hopefully it
doesn't confuse anyone too much.
Andy
winmail.dat
would you remove the validator? Would you do it by index or by instance?Its not very clean either way. Check out IFormValidator, I think it fitsyour usecase better then an IValidator.-IgorOn 4/25/06, Andrew Strickland [EMAIL PROTECTED] wrote: Was the capability added in 1.2 to remove Validators from