Forums de discussion
bridge:inputFile and view scoped bean
PortletFaces Community Member, modifié il y a 12 années.
bridge:inputFile and view scoped bean
Regular Member Publications: 199 Date d'inscription: 03/04/12 Publications récentes
Hi.
In a JSF view I have a form with a bridge:inputFile in it and the view is backed a view scoped bean.
However, when I submit the form, the backing bean is re-instantiated as if it was a request scoped bean.
Removing the bridge:inputFile makes the bean behave as expected, i.e. not being re-instantiated at form submit.
I should also mention that this is in a portlet environment (Liferay).
Any ideas why this is happening?
In a JSF view I have a form with a bridge:inputFile in it and the view is backed a view scoped bean.
However, when I submit the form, the backing bean is re-instantiated as if it was a request scoped bean.
Removing the bridge:inputFile makes the bean behave as expected, i.e. not being re-instantiated at form submit.
I should also mention that this is in a portlet environment (Liferay).
Any ideas why this is happening?
Neil Griffin, modifié il y a 12 années.
RE: bridge:inputFile and view scoped bean
Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
Are you able to reproduce this problem with the example JSF 2 portlet?
I think it is setup the same way as yours -- the ApplicantBackingBean is annotated with @ViewScoped.
I think it is setup the same way as yours -- the ApplicantBackingBean is annotated with @ViewScoped.