Java Wickets Delete Multiple Entries CheckboxGroup

2017-02-22 Thread ASHU_JAVA
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

AW: AW: NullPointerException on submitting a form in a modal window

2017-02-22 Thread Christoph.Manig
I found the line which set the modalWindow to null. Thanks for your help Mit freundlichen Grüßen Christoph Manig -Ursprüngliche Nachricht- Von: Manfred Bergmann [mailto:m...@software-by-mabe.com] Gesendet: Mittwoch, 22. Februar 2017 14:19 An: users@wicket.apache.org Betreff: Re: AW:

Re: NullPointerException on submitting a form in a modal window

2017-02-22 Thread Francois Meillet
When the RemarkForm is instancied, addButtons() is called. At this point the modalWindow is null. So the modalWindow argument given to the AddRemarkButton constructor is null. You should modify the RemarkForm constructor to something like public RemarkForm(String id, ModalWindow modalWindow) {

Re: AW: NullPointerException on submitting a form in a modal window

2017-02-22 Thread Manfred Bergmann
It it's that line, than only the modalWindow instance variable can be null. Can you confirm that by either adding a log line or debug into there. If it is indeed null something in the surrounding of the classes you show makes it null, or cleans it up. Some concurrency going on maybe? Manfred

Re: NullPointerException on submitting a form in a modal window

2017-02-22 Thread christophManig
The line which throws the exception is modalWindow.close(target); in AddRemarkButton. I do not copy the import statements so there are less lines in my copied code. -- View this message in context:

AW: NullPointerException on submitting a form in a modal window

2017-02-22 Thread Christoph.Manig
The line which throws the exception is modalWindow.close(target); in AddRemarkButton. I do not copy the import statements so there are less lines in my copied code. Mit freundlichen Grüßen Christoph Manig -Ursprüngliche Nachricht- Von: Manfred Bergmann

Re: NullPointerException on submitting a form in a modal window

2017-02-22 Thread Manfred Bergmann
Maybe not all of those classes are in separate files. Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/NullPointerException-on-submitting-a-form-in-a-modal-window-tp4677161p4677164.html Sent from the Users forum mailing list archive at Nabble.com.

Re: NullPointerException on submitting a form in a modal window

2017-02-22 Thread Francois Meillet
The AddRemarkButton source code you show is not the one who generated the exception. The exception has been thrown line 32 in the submit method. The source code you show has only 22 lines Put a breakpoint in the onSubmit method. François > Le 22 févr. 2017 à 11:16, Manfred Bergmann

Re: NullPointerException on submitting a form in a modal window

2017-02-22 Thread Manfred Bergmann
Hi. What's on line 32 of AddRemarkButton.java? Manfred -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/NullPointerException-on-submitting-a-form-in-a-modal-window-tp4677161p4677162.html Sent from the Users forum mailing list archive at Nabble.com.

NullPointerException on submitting a form in a modal window

2017-02-22 Thread Christoph.Manig
Hello, I have a page which contains a table form. Inside this table there are some message objects and their data shown. Moreover the user can select some of the messages and trigger some action on them. Then there should be a modal window where the user have to set a remark for the selected

Re: Java Wickets Delete and Checkbox

2017-02-22 Thread ASHU_JAVA
Thanks Martin. It worked now. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Java-Wickets-Delete-and-Checkbox-tp4677014p4677159.html Sent from the Users forum mailing list archive at Nabble.com. -