I've tried this but my WebApplicationContext is null ...

Stephane


SergeEby a écrit :
> Hi,
>
> Just import and inject the WAC in your page:
>
> import org.springframework.web.context.WebApplicationContext;
>
> class Foo {
>
> ...
>  @Inject
>  private WebApplicationContext  wac;
>
> ...
> }
>
>
>
>
> /Serge
>
>
>
> cyrille37 wrote:
>   
>> Fidel Chavarria a écrit :
>>     
>>> Hi
>>> I think this willhelp you,
>>> http://tapestry.apache.org/tapestry5/tapestry-spring/
>>>   
>>>       
>> Thanks,
>> but if you had read my mail, I should see that I'm talked about this page.
>>
>> In this page in "Limitations" chapter it is writte that we can't inject 
>> Spring session bean but we have to retreive the WebApplicationContext 
>> and use it.
>> But I don't know howto retreive this so famous WebApplicationContext 
>> when I'm in a tapestry code page or component.
>>
>> cyrille.
>>     
>>> cyrille37 wrote:
>>>   
>>>       
>>>> Hi,
>>>>
>>>> In the T5 tapestry-spring documentation it is writed to don't use other 
>>>> Spring beans than Singleton ones.
>>>> Inject the WebApplicationContext instead.
>>>> http://tapestry.apache.org/tapestry5/tapestry-spring/
>>>>
>>>> But howto inject the WebApplicationContext ?
>>>>
>>>> thanks
>>>> cyrille
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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