I have encountered a problem that is a mystery to me. I have a JSP page that prints out a property (payerAccountId) of a managed bean and then passes the same property to an EJB methodd. The property gets displayed without problems. Then I want to call a method from the same managed bean (whose only purpose is to call the EJB method and pass it the property payerAccountId as one if its parameters). The problem is that the property payerAccountId is null at the point when I need to pass it as a parameter to the EJB method.
The JSP page:
The method transfer() that gets called from the commandButton:
Faces-config.xml entry for this managed bean:
Does anyone have any idea why the property prints out, but becomes null after that?
I'm using JSF 1.2, JDK 1.6 and Glassfish V2.
BTW: is there any way how to debug the servlets that are created from JSPs?
Thank you for any input.
Joined: Dec 26, 2008
I've found out where the problem was. The scope of the managed bean was request.
subject: Managed bean property gets displayed on a page, but then becomes null