• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I make services available across Handlers?

 
Mirrell Knabe
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can access plyService from PlyHandler and posService from PosHandler, but I need to access posService from PlyHandler...when I try to do this I get a NullPointerException...Must I make another entry (like the entries below) in my config file? If so, what would the syntax be...I tried making posService a
property of plyHandler but get the error: Unable to create property descriptor posService for bean class


 
Tim Holloway
Saloon Keeper
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must have entered something incorrectly. Just copy the managed property definitions for posService from posHandler to the PlyHandler definition in your faces-config file, then copy the setter methods from the PosHandler bean to to PlyHandler bean.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic