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.

Reply via email to