Hallo,
I found such things in my code:
In an static method of an application scoped bean I fetch a session
scoped bean and read some data from it.
It seems to work. But is it really allowed?
Georg
I'd not do that...
generally fetching beans by using the EL API is not that good.
Use a real DI container for that
-M
On Mon, Apr 27, 2009 at 11:22 AM, Georg Füchsle wrote:
> Hallo,
>
> I found such things in my code:
>
> In an static method of an application scoped bean I fetch a session
> sco
Thanks Matthias,
I do not use EL API, and I don't understand what you mean by DI-container.
But I can show you the following example:
I have an application scoped bean and a session scoped bean (MbSessionBean)
In my application scoped bean I found code like that:
public String getImag
Instead of binding your application scoped bean code to access session, why
don't you just pass the layout param to the getImageUrl method.
Also in JSF you can't inject managed beans with short scopes to longer ones,
so you can't inject a request bean to a session scoped bean using jsf ioc,
or ses
On Mon, Apr 27, 2009 at 12:09 PM, Georg Füchsle wrote:
> Thanks Matthias,
>
> I do not use EL API, and I don't understand what you mean by DI-container.
in fact, you are using the API:
javax.faces.el.ValueBinding vb =app
cleaner solution is using some DI container
(e.g. spring)
>
>
> But I
Hi Matthias, Catagay,
please describe your approach with DI, especially interested in
Master-Detail scenario - how would you do that with DI
for example:
SearchBeanA returns the list of BeanA - and showing them in h:dataTable ()
now user chooses an item in table and a detail page must be shown -
6 matches
Mail list logo