You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Aaron Dixon <at...@gmail.com> on 2009/08/04 20:49:47 UTC
Accessing Wicket Application from custom servlet
I am implementing a servlet external to my Wicket application that
needs to access my Wicket Application instance itself...
Can anyone recommend a clean way to go about this?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Accessing Wicket Application from custom servlet
Posted by Igor Vaynberg <ig...@gmail.com>.
Session.get().getApplication(), also Application.get() will work. it
usually helps to listen.
-igor
On Tue, Aug 4, 2009 at 1:02 PM, Aaron Dixon<at...@gmail.com> wrote:
> That seems to provide a solutino for WicketSession access, but what
> about access to the Application instance?
>
> On Tue, Aug 4, 2009 at 1:51 PM, Igor Vaynberg<ig...@gmail.com> wrote:
>> see WicketSessionFilter
>>
>> -igor
>>
>> On Tue, Aug 4, 2009 at 11:49 AM, Aaron Dixon<at...@gmail.com> wrote:
>>> I am implementing a servlet external to my Wicket application that
>>> needs to access my Wicket Application instance itself...
>>>
>>> Can anyone recommend a clean way to go about this?
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: Accessing Wicket Application from custom servlet
Posted by "Ames, Tim" <Ti...@ProMedica.org>.
Just a guess:
Application wicketApplication = Session.get().getApplication();
Cast like this if you need to:
MyWicketApplication wicketApplication = (MyWicketApplication) Session.get().getApplication();
-----Original Message-----
From: Aaron Dixon [mailto:atdixon@gmail.com]
Sent: Tuesday, August 04, 2009 4:02 PM
To: users@wicket.apache.org
Subject: Re: Accessing Wicket Application from custom servlet
That seems to provide a solutino for WicketSession access, but what about access to the Application instance?
On Tue, Aug 4, 2009 at 1:51 PM, Igor Vaynberg<ig...@gmail.com> wrote:
> see WicketSessionFilter
>
> -igor
>
> On Tue, Aug 4, 2009 at 11:49 AM, Aaron Dixon<at...@gmail.com> wrote:
>> I am implementing a servlet external to my Wicket application that
>> needs to access my Wicket Application instance itself...
>>
>> Can anyone recommend a clean way to go about this?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
EMAIL CONFIDENTIALITY NOTICE
This Email message, and any attachments, may contain confidential
patient health information that is legally protected. This information
is intended only for the use of the individual or entity named above.
The authorized recipient of this information is prohibited from disclosing
this information to any other party unless required to do so by law
or regulation and is required to destroy the information after its stated
need has been fulfilled. If you are not the intended recipient, you are
hereby notified that any disclosure, copying, distribution, or action
taken in reliance on the contents of this message is strictly prohibited.
If you have received this information in error, please notify
the sender immediately by replying to this message and delete the
message from your system.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Accessing Wicket Application from custom servlet
Posted by Aaron Dixon <at...@gmail.com>.
That seems to provide a solutino for WicketSession access, but what
about access to the Application instance?
On Tue, Aug 4, 2009 at 1:51 PM, Igor Vaynberg<ig...@gmail.com> wrote:
> see WicketSessionFilter
>
> -igor
>
> On Tue, Aug 4, 2009 at 11:49 AM, Aaron Dixon<at...@gmail.com> wrote:
>> I am implementing a servlet external to my Wicket application that
>> needs to access my Wicket Application instance itself...
>>
>> Can anyone recommend a clean way to go about this?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Accessing Wicket Application from custom servlet
Posted by Igor Vaynberg <ig...@gmail.com>.
see WicketSessionFilter
-igor
On Tue, Aug 4, 2009 at 11:49 AM, Aaron Dixon<at...@gmail.com> wrote:
> I am implementing a servlet external to my Wicket application that
> needs to access my Wicket Application instance itself...
>
> Can anyone recommend a clean way to go about this?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org