Hello,
I'm facing another odd issue.
I have a managed Bean declared at request scope in my faces-config.xml.
The bean is intended to grap a search result values.
I populate it by an actionListener called within a button (just say #{
serachModel.search}) by calling
public class SearchModel {
//.....members...
public String search(){
String nextView ="result";
FacesContext.current
FacesContext ctx = FacesContext.getCurrentInstance();
MyResultBean myResult=ctx.getApplication
().createValueBinding("#{myResultBean}").getValue(ctx);
myResult.load(...);
return ret;
}
}
(load is a method of MyResultBean receiving a Collection as argument).
My issue is that the bean is once instantiated during *excute* *phase *(that's
ok).
Then another instance is created during RENDER phase causing preloaded
values to be lost.
Have you faced the same?
Any suggestion would be greatly appreciated.
TIA
Harry.