FormComponentPanel.convertInput()

2013-02-13 Thread Richard W. Adams
I'm writing my first FormComponentPanel, and have a couple of books showing how to do this. Most of it seems straightforward, except one point: In the books' examples, FormComopnentPanel.convertInput() creates a new model object and populates it from a series of calls to getConvertedInput() on

Re: FormComponentPanel.convertInput()

2013-02-13 Thread Sven Meier
Hi, #convertInput() should not modify the current model object, because form submission might still fail with a conversion error on another field. Pushing the new input in the FormComponent's model is done later in #updateModel(). Hope this helps Sven On 02/13/2013 03:33 PM, Richard W.

Re: FormComponentPanel.convertInput()

2013-02-13 Thread Richard W. Adams
You're right: The later in #updateModel() was the piece I wasn't considering. Tks. From: Sven Meier s...@meiers.net To: users@wicket.apache.org Date: 02/13/2013 08:48 AM Subject:Re: FormComponentPanel.convertInput() Hi, #convertInput() should not modify the current model