Hi,
i am new to
JSF.
i have 2
JSP Pages and both of them share the same Managed bean.
For Eg.
EnterpriseLogin.jsp
UserLogin.jsp
Both share the same backing bean and managed bean. For enterprise login additional validations are required in the managed bean.
When the user navigates to UserLogin.jsp it should call userLogin(in managed bean) method during onload. Similarly onload of EnterpriseLogin.jsp it should call enterpriseLogin (in managed bean) method.
please suggest me how to achieve this functionality.
Currently i am using 2 different managed bean with common methods present in both of the classes.
For calling a method during onload, i am placing the method call in the constructor of the Managed bean.
thanks