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.

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 PROTECTED]> wrote:
> 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.setPageCreator(new ModalWindow.PageCreator(){
>                 public Page createPage()
>                 {
>                     Page nav =
> ((AppSession)getSession()).getNav();
>                     if (nav == null){
>                         nav = new Navigation(Main.this);
>
> ((AppSession)getSession()).setNav(nav);
>                         return nav;
>                     }
>                     else{
>                         return nav;
>                     }
>                 }
>             });
>
> ibNavigation = new AjaxLink("ibNavigation");
>
> The onClick event for the Ajax Link: modal.show(evt.getAjaxRequestTarget
());
>
> The part of the code when the Tree is instantiated:  tree = new
Tree("tree",
> createTreeModel());
>
> Any idea?
> Thanks
>
>
>
>  On 4/19/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> >
> > 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 ModalWindow
> > > (modal2.show(evt.getAjaxRequestTarget ());) when clicked.
> > > Inside this modal window, I have a
> > > wicket.extensions.markup.html.tree.Tree object.
> > >
> > > The problem is: The user "changes the status" of this Tree
(collapsing
> the
> > > nodes), then closes this ModalWindow.
> > > When the user clicks again on the AjaxLink (and the ModalWindow is
> showed
> > > again), my Tree object looses the status (meaning all the user
> modifications
> > > on nodes) is missed...
> > >
> > > Anyone, have any idea on how to make the tree status persistent for
me?
> > >
> > > Thanks!
> > > Renan Camponez
> > >
> > >
>
-------------------------------------------------------------------------
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
>
-------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to