You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by btakacs <ta...@gmail.com> on 2008/08/28 13:40:48 UTC

EJB usage in ResourceLoader

Hi

I started to use wicket-contrib-javaee, and it is working for pages and
models (I injected the listener into the Application file). But I would like
to use EJB in a ResourceLoader too.

In the project home page i did not found anything about that.
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaee

Do I need to lookup manually are there any more elegant solution for that?

Any Tips?

Thanks:
   Bence
-- 
View this message in context: http://www.nabble.com/EJB-usage-in-ResourceLoader-tp19198798p19198798.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: EJB usage in ResourceLoader

Posted by btakacs <ta...@gmail.com>.
Thanks, it works!


igor.vaynberg wrote:
> 
> it will only work for subclasses of component
> 
> if you want to inject something else you have to do it manually via
> injectorholder.getinjector().inject(this) in the constructor
> 
> -igor
> 
> On Thu, Aug 28, 2008 at 5:10 AM, btakacs <ta...@gmail.com> wrote:
>>
>> I used addComponentInstantiationListener(new
>> JavaEEComponentInjector(this));
>> in the Application init method. Why doesn't it work for a ResourceLoader?
>>
>>
>> btakacs wrote:
>>>
>>> Hi
>>>
>>> I started to use wicket-contrib-javaee, and it is working for pages and
>>> models (I injected the listener into the Application file). But I would
>>> like to use EJB in a ResourceLoader too.
>>>
>>> In the project home page i did not found anything about that.
>>> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaee
>>>
>>> Do I need to lookup manually are there any more elegant solution for
>>> that?
>>>
>>> Any Tips?
>>>
>>> Thanks:
>>>    Bence
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/EJB-usage-in-ResourceLoader-tp19198798p19199250.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/EJB-usage-in-ResourceLoader-tp19198798p19221022.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: EJB usage in ResourceLoader

Posted by Igor Vaynberg <ig...@gmail.com>.
it will only work for subclasses of component

if you want to inject something else you have to do it manually via
injectorholder.getinjector().inject(this) in the constructor

-igor

On Thu, Aug 28, 2008 at 5:10 AM, btakacs <ta...@gmail.com> wrote:
>
> I used addComponentInstantiationListener(new JavaEEComponentInjector(this));
> in the Application init method. Why doesn't it work for a ResourceLoader?
>
>
> btakacs wrote:
>>
>> Hi
>>
>> I started to use wicket-contrib-javaee, and it is working for pages and
>> models (I injected the listener into the Application file). But I would
>> like to use EJB in a ResourceLoader too.
>>
>> In the project home page i did not found anything about that.
>> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaee
>>
>> Do I need to lookup manually are there any more elegant solution for that?
>>
>> Any Tips?
>>
>> Thanks:
>>    Bence
>>
>
> --
> View this message in context: http://www.nabble.com/EJB-usage-in-ResourceLoader-tp19198798p19199250.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: EJB usage in ResourceLoader

Posted by btakacs <ta...@gmail.com>.
I used addComponentInstantiationListener(new JavaEEComponentInjector(this));
in the Application init method. Why doesn't it work for a ResourceLoader? 


btakacs wrote:
> 
> Hi
> 
> I started to use wicket-contrib-javaee, and it is working for pages and
> models (I injected the listener into the Application file). But I would
> like to use EJB in a ResourceLoader too.
> 
> In the project home page i did not found anything about that.
> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaee
> 
> Do I need to lookup manually are there any more elegant solution for that?
> 
> Any Tips?
> 
> Thanks:
>    Bence
> 

-- 
View this message in context: http://www.nabble.com/EJB-usage-in-ResourceLoader-tp19198798p19199250.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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