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
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:
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) {
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
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:
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
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.
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
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.
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
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.
-
11 matches
Mail list logo