Although..the Model is not updated on the ListMultipleChoice control. So
when I use the Remove Selected button I get the values from
listControl.getModelObject() this returns a null list.So a NP exception is
thrown.

I turned the defaultFormProcessing back on to the standard one for this'
particular button'. When I provide the required fields with data then it
works as in no NP exception and the model does return the values selected.

Any pointers? Cheers
Niv

On Thu, Jul 22, 2010 at 4:19 PM, Nivedan Nadaraj <shravann...@gmail.com>wrote:

> Thanks for that, that worked. I have used this feature before for the
> Cancel operation. Just did not occur to me.
> Cheers
>
>
>
> On Thu, Jul 22, 2010 at 3:41 PM, MattyDE <ufer.mar...@gmail.com> wrote:
>
>>
>> you could Try to set
>>
>>        /**
>>         * Sets the defaultFormProcessing property. When false (default is
>> true),
>> all validation and
>>         * form updating is bypassed and the onSubmit method of that button
>> is
>> called directly, and the
>>         * onSubmit method of the parent form is not called. A common use
>> for this
>> is to create a cancel
>>         * button.
>>         *
>>         * @param defaultFormProcessing
>>         *            defaultFormProcessing
>>         * @return This
>>         */
>>        public final Button setDefaultFormProcessing(boolean
>> defaultFormProcessing)
>>
>> to false.... on the AjaxButton (Button.class)
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Re-AjaxButton-OnSubmit-Validation-Overridden-tp2298251p2298256.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

Reply via email to