wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucast <lucastol...@hotmail.com>
Subject getting values from FormComponentPanel outside form.onSubmit()
Date Fri, 14 Feb 2014 17:14:00 GMT
Dear forum,

I have implemented a FormComponentPanel as suggested both in the Apache
Wicket Cookbook (chapter 2) and  wicket guide (chapter 12.8)
<http://wicket.apache.org/guide/guide/forms2.html#forms2_8>  .

Before I submit the form, I would like to have the option of adding the
content from FormComponentPanel to a list.

I have made use of AjaxButton and  I have set 
AjaxButton.setDefaultFormProcessing( false).

In order to get value from FormComponentPanel when performing 
form.onSubmit(), one calls FormComponentPanel.getConvertedInput(), which in
turns calls FormComponentPanel.convertInput().

The problem is that if I call FormComponentPanel.getConvertedInput() from
inside AjaxButton.onSubmit(), FormComponentPanel.convertInput() is never

My question is, how can I get the contents from FormComponentPanel using a
AjaxSubmitLink or AjaxButton without having to go via form.onSubmit()?

Is there, perhaps another form component that I could use to achieve my

Thanks in advance,

View this message in context: http://apache-wicket.1842946.n4.nabble.com/getting-values-from-FormComponentPanel-outside-form-onSubmit-tp4664462.html
Sent from the Users forum mailing list archive at Nabble.com.

To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

View raw message