Please refer to my earlier post at
Thanks Keith and Jeremy for your replies.
I have tried to use the variable resolver in the following way
FacesContext context = FacesContext.getCurrentInstance();
MyLoginClass login = (MyLoginClass)context.getApplication().getVariable Resolver().resolveVariable(context, "login");
However in this way I get the new instance of the MyLoginClass bean. It doesn't provide me the instance with which the form data is bound.
The point here I want to make is, if I put the same bean in flow scope everything works well, I think the instance of the bean must have been added in the flow scope map as soon as it is created. However in case of Flash scope, the flash map is not updated with the instance and hence I cannot get it when I try to retrieve it either using the request context or using the variable resolver strategy.
Could there be any other solution to this problem. I have been held up at the same place for a long time.
I would really appreciate your help.