Hi all, dear wicket experts!
I have some issue in my code, I suspect that it is because of ajax behavior,
that I not quite understand.
I have a MyPanel extends CheckedFolderT, that I create in
NestedTree.newContentComponent() {}. This MyPanel has some public data,
boolean bChanged for example.
Addition:
NestedTree and ModalWindow is placed on a TreePage:
TreePage.html
div wicket:id=modaleditdialog/div
div wicket:id=tree[tree]/div
TreePage.java
public TreePage () {
dialog = new ModalEditDialog(modaleditdialog);
dialog.setResizable(true);
dialog.setAutoSize(true);
Hi,
The problem is that EditPage when deserialized creates a new copy of
MyPanel instance and its bChanged member field.
The best/simplest way is to use a Panel as ModalWindow content instead of a
Page.
Another way to share bChanged between the pages is to store it in the
session (i.e.
Thanks Martin!
I tried to use a reference to bChanged through the first page, but it
permanently bind ModalWindow with first page and I cant use it in another
pages.
For the first way - There will be no serialization/deserialization when I
will use Panel insted of a Page in ModalWindow?
Best