Re: [Wicket-user] Tree persistence problem

2007-04-19 Thread Renan Camponez
Uhm. I need to have it in session for other reasons, but even with this as a property, I still having the same problem.. Thanks! Any idea? On 4/19/07, Matej Knopp <[EMAIL PROTECTED]> wrote: I don't understand why you store the "nav" page in session. It should be a property of the Main page. c

Re: [Wicket-user] Tree persistence problem

2007-04-19 Thread Matej Knopp
I don't understand why you store the "nav" page in session. It should be a property of the Main page. class Main extends WebPage { private Page nav = null; } and in the PageCreator: if (nav == null) { nav = new Navigation(Main.this); } return nav; -Matej On 4/19/07, Renan Camponez <[EMAIL

Re: [Wicket-user] Tree persistence problem

2007-04-19 Thread Renan Camponez
This doesnt works.. :( Now, when I click on the Ajax Link for the second time, the Main page is showed inside the ModalWindow, instead of the page who has the tree. Following, the code: I have a Main page, who has this modal window, and the Ajax Link: modal = new ModalWindow("modal"); modal.se

Re: [Wicket-user] Tree persistence problem

2007-04-19 Thread Matej Knopp
Is there a page inside modal window? Just keep the page reference between showing the window, don't creae new page instance every time (inside the PageCreator). -Matej On 4/19/07, Renan Camponez <[EMAIL PROTECTED]> wrote: > Hi all, > Here is my problem: > > I have a Ajax Link who shows a ModalWin