Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

getting bean's fields null even though before returning fields are not null

843842Nov 20 2006 — edited Nov 21 2006
Hi All,

I have run into this weird problem. I am using sun ri 1.1_01 implementation.
I having problem getting field values from a bean on the jsp page. From my first page I click on a button and it goes to the action method in the managed bean. In this method I set the values of the fields. before returning the view Id, I print these values and everything is set. but when it goes to the next page, it does not display any values.
I have other action methods, where I am setting the same values and I am able to get those values.
The same method was working in a previous version of ear. I don't know what went wrong and it stopped working.


Here is my code of the method
this.setUserRequestedInfo(MetaDAOFactory.getDAO()
		.getAccountInfoByUID(uId));
if (this.getUserRequestedInfo() == null) {
	this.addMSGException("userRequested.not.valid");
	return NavigationResults.FAILURE;
}

this.logger.debug("\n\nBEFORE RETURNING FROM DEPART this.getUserRequestedInfo() = " 
		+ this.getUserRequestedInfo());
return NavigationResults.SUCCESS;
before the return statement, when I log the values of userRequested, it prints the details, but I don't get this value in my jsp...
Is it some class loader or JSF life cycle problem?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2006
Added on Nov 20 2006
2 comments
128 views