On 8/31/05, Ken Weiner <[EMAIL PROTECTED]> wrote:
> The Spring JSF integration I've seen focuses on enabling Spring IoC for JSF
> managed beans. There is a way to enable IoC for JSF Converters, Validators,
> and UIComponents too. I posted information on the Spring JSF Wiki:
> http://opensource.atlassian.com/confluence/spring/x/Qgo
> I was hoping Spring would incorporate the SpringApplication and
> SpringApplicationFactory code in a future release, but there haven't yet
> been comments on the Wiki page.
Thanks!
I've been needing this for converters.
Up to this point, I've had to hardcode my bean names in the converter java code.
ValueBinding binding =
FacesContext.getCurrentInstance().getApplication().createValueBinding("#{coreWorkMgmtDataStore}");
CoreWorkMgmtDataStore coreWorkMgmtDataStore =
(CoreWorkMgmtDataStore)binding.getValue(FacesContext.getCurrentInstance());