Re: BreadCrumb and page parameters

2012-08-28 Thread Sandor Feher
Had a workaround to store calling parameters in session in a HashMap. This is
good enough for me right now.





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/BreadCrumb-and-page-parameters-tp4651412p4651564.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



BreadCrumb and page parameters

2012-08-21 Thread Sandor Feher
Hi,

I have the following scenario:

Page A

  It's the home page without any params.
  Calls page B.

Page B

   Calls Page C with a modelobject.

   Link teljlink = new Link(beosztottak) {

@Override
public void onClick() {
   
HRPortalWebSession.getSession().setCurrentPage(BeosztottjaimPage.class);
setResponsePage(new
BeosztottjaimPage(model.getObject()));
// storing the next page in session and calling it with
a modelobject.
}
};
add(teljlink);

Page C

Calls Page D with two params.

Link Blink = new Link(kerdoivkitoltes) {

@Override
public void onClick() {
   
HRPortalWebSession.getSession().setCurrentPage(KerdoivKitoltesPage.class);
setResponsePage(new
KerdoivKitoltesPage(model.getObject(),entity));
// storing the next page in session and calling it with
a modelobject and an entity param.
}
};
add(Blink);

Page D
 

My goal is when users click on the breadcrumb path _anywhere_ (eg. Page B)
the page should be called with the appropriate parameters. I store the
current page in my session. Is it possible somehow ?

Thank you in advance!

Regards, Sandor




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/BreadCrumb-and-page-parameters-tp4651412.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org