• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using @ManagedProperty

 
Shilpa Mishra
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to access methods from 1 managed bean to the other using ManagedProperty. I have the getter and setters but still I get NPE.

I get Null Pointer Exception when trying to access from roomInfoBean

System.out.println("Roomtype is : " + roomInfoBean.getRoomtype());

Can anyone help me figure out what I am missing?

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!