yep, use request cycle metadata - that is the quicker/cleanest way

-igor


On Thu, Feb 14, 2008 at 6:14 PM, Warren <[EMAIL PROTECTED]> wrote:
> I am storieng org.apache.wicket.security.hive.authorization.Principal
>  objects that are associated with why a user was denied access to a page. I
>  then want to access the names of these Principals from my "Accessed Denied"
>  page in order to construct a "Accessed Denied" message. I want to store
>  these Principals from MySwarmStrategy object.
>
>
>
>  > -----Original Message-----
>  > From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
>  > Sent: Thursday, February 14, 2008 5:46 PM
>  > To: [email protected]
>  > Subject: Re: RequestCycle Request and storeing objects?
>  >
>  >
>  > what is the usecase of storing something in the request?
>  >
>  > -igor
>  >
>  > On Thu, Feb 14, 2008 at 5:02 PM, Warren
>  > <[EMAIL PROTECTED]> wrote:
>  > > What is the proper way to store objects into the request and
>  > retrieve them
>  > >  in your page? Is this the correct way:
>  > >
>  > >  RequestCycle.get().getPageParameters().put("myObject", myObect);
>  > >
>  > >  And from my Page:
>  > >
>  > >  MyObject myObect =
>  > >  (MyObect)getWebRequestCycle().getPageParameters().get("myObject");
>  > >
>  > >  And can you extend WebRequest the same way you can extend Session and
>  > >  configure it in MyApp by extending newWebRequest()? And will
>  > this cause my
>  > >  app to use my extended WebRequest? I don't think I am doing
>  > something right.
>  > >
>  > >  Thanks,
>  > >
>  > >  Warren
>  > >
>  > >
>  > >  ---------------------------------------------------------------------
>  > >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > >  For additional commands, e-mail: [EMAIL PROTECTED]
>  > >
>  > >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to