This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.