Hi,

Do not use " String users = group.getDefaultModelObjectAsString();"
group.getModelObject() will return a List<User> which you can use to do the
DB operations.

The problem is in your DAO code so it is not Wicket issue. You should ask
in some other forum for help.
I'd recommend you to improve your DAO to work with List and execute batch
update, e.g. DELETE FROM Users where username IN (?). This way it will
execute 1 SQL query instead of N.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Feb 22, 2017 at 7:14 PM, ASHU_JAVA <ashu....@gmail.com> wrote:

> Hello All,
>
> I've been using CheckBoxGroup in my application and followed the below
> example URL:-
> http://examples7x.wicket.apache.org/compref/wicket/
> bookmarkable/org.apache.wicket.examples.compref.CheckGroupPage;jsessionid=
> A65260928022BEDC4A2943D0F5FD6996?0
> <http://examples7x.wicket.apache.org/compref/wicket/
> bookmarkable/org.apache.wicket.examples.compref.CheckGroupPage;jsessionid=
> A65260928022BEDC4A2943D0F5FD6996?0>
>
> I need to remove single, multiple or all entries from database by selecting
> checkbox.
>
> <http://apache-wicket.1842946.n4.nabble.com/file/n4677171/sample_2.png>
>
> On clicking the delete button, I was able to fetch the corresponding
> entries
> like "Manoj", "Neeraj" and then I performed below operation in my panel:-
>
>
>
> For first username record, deleteUserStoreDomain() method return TRUE but
> for each next username record it returns FALSE.
>
> Thus, I'm unable to perform 'multiple' and 'all' username records deletion.
>
> Kindly suggest solutions for this issue.
> Thanks in advance.
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Java-Wickets-Delete-Multiple-Entries-
> CheckboxGroup-tp4677171.html
> Sent from the Users forum 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