| From | Sent On | Attachments |
|---|---|---|
| Dhananjay Prasanna | Jun 21, 2006 7:03 pm | |
| Ondrej Svetlik | Jun 21, 2006 7:36 pm | |
| Dhananjay Prasanna | Jun 21, 2006 7:43 pm | |
| Rick | Jun 21, 2006 8:02 pm | |
| Craig McClanahan | Jun 21, 2006 8:58 pm | |
| Dhananjay Prasanna | Jun 21, 2006 9:06 pm | |
| Craig McClanahan | Jun 21, 2006 9:32 pm | |
| Rick | Jun 22, 2006 7:24 am | |
| Surapuraju, Vamsi | Jun 22, 2006 10:41 am | |
| Cosma Colanicchia | Jun 23, 2006 2:21 am | |
| Bill Schneider | Jun 23, 2006 8:16 am | |
| Dhananjay Prasanna | Jun 25, 2006 4:41 pm | |
| Craig McClanahan | Jun 25, 2006 5:15 pm | |
| Dhananjay Prasanna | Jun 25, 2006 5:49 pm | |
| Craig McClanahan | Jun 25, 2006 6:43 pm | |
| Dhananjay Prasanna | Jun 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.
This correspondence is for the named persons only.
It may contain confidential or privileged information or both.
No confidentiality or privilege is waived or lost by any mis transmission.
If you receive this correspondence in error please delete it from your system
immediately and notify the sender.
You must not disclose, copy or relay on any part of this correspondence, if you
are not the intended recipient.
Any opinions expressed in this message are those of the individual sender except
where the sender expressly,
and with the authority, states them to be the opinions of the Department of
Emergency Services, Queensland.





