atom feed16 messages in org.apache.myfaces.usersRE: managed properties
FromSent OnAttachments
Dhananjay PrasannaJun 21, 2006 7:03 pm 
Ondrej SvetlikJun 21, 2006 7:36 pm 
Dhananjay PrasannaJun 21, 2006 7:43 pm 
RickJun 21, 2006 8:02 pm 
Craig McClanahanJun 21, 2006 8:58 pm 
Dhananjay PrasannaJun 21, 2006 9:06 pm 
Craig McClanahanJun 21, 2006 9:32 pm 
RickJun 22, 2006 7:24 am 
Surapuraju, VamsiJun 22, 2006 10:41 am 
Cosma ColanicchiaJun 23, 2006 2:21 am 
Bill SchneiderJun 23, 2006 8:16 am 
Dhananjay PrasannaJun 25, 2006 4:41 pm 
Craig McClanahanJun 25, 2006 5:15 pm 
Dhananjay PrasannaJun 25, 2006 5:49 pm 
Craig McClanahanJun 25, 2006 6:43 pm 
Dhananjay PrasannaJun 25, 2006 6:56 pm 
Subject:RE: managed properties
From:Dhananjay Prasanna (dpra@emergency.qld.gov.au)
Date:Jun 21, 2006 9:06:31 pm
List:org.apache.myfaces.users

Actually, you're working too hard. Just use:

<value>#{businessDelegate}</value>

JSF IoC container is not that powerful, I prefer to use Spring and then use the Spring delegating variable resolver.

You could also write your own JSF variable resolver and then manage the businessDelegate w/o putting it into scope.

You can accomplish that with standard managed beans my setting the <managed-bean-scope> on the "businessDelegate" bean to be "none". This is like the create-every-time mode of Spring ... you always get a new instance each time the expression is evaluated, and it is never placed into any scope.

Craig

Thanks craig & rick,

As a follow up, is there any way to organize namespaces in managed-bean-names? Apart from using underscores can I do something like:

<managed-bean-name>delegates.businessDelegate</managed-bean-name>

Im assuming the JSF EL will try to read that as:

delegate.getBusinessDelegate()

Any better way around that than really long names?

Dhanji.