How take a field to a form so that it can manage within submit on the same
form?

Form form=new Form("f");
        form.add(new
RequiredTextField("integerInRangeProperty").add(NumberValidator.range(0,
100)));        
        form.add(new Button("execute") {
        public void onSubmit() {
               //int increase = ((PriceIncrease) command).getPercentage();
// I would like keep the value of field integerInRangeProperty
               int increase = ....
               productManager.increasePrice(increase);
        }
        });
        add(form);
-- 
View this message in context: 
http://www.nabble.com/How-take-a-field-to-a-form-so-that-it-can-manage-within-submit-on-the-same-form--tp18760796p18760796.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to