The data provider should be as before. Just start with empty List and put
the values into the List in onSubmit().
Read about static vs. dynamic models at
https://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models
You need dynamic data provider.

Martin Grigorov
Wicket Training and Consulting


On Tue, May 27, 2014 at 4:29 PM, kumar ramanathan
<[email protected]>wrote:

> Martin,I have tried to put the data view code out side the submit method
> ,it
> throwed the below error.java.lang.IllegalArgumentException: argument
> [dataProvider] cannot be null     at
> org.apache.wicket.markup.repeater.data.DataViewBase.(DataViewBase.java:59)
> at org.apache.wicket.markup.repeater.data.DataView.(DataView.java:81)Can
> you
> please tell how to put the data view code in the form while constructing
> itself . If possible please give some example.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Errors-in-data-view-req-for-help-to-fix-the-error-in-code-tp4666025p4666041.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to