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.
The moose likes JSF and the fly likes How can I make services available across Handlers? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How can I make services available across Handlers?" Watch "How can I make services available across Handlers?" New topic
Author

How can I make services available across Handlers?

Mirrell Knabe
Ranch Hand

Joined: Oct 13, 2008
Posts: 32
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

Joined: Jun 25, 2001
Posts: 17166
    
  27

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.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I make services available across Handlers?
 
It's not a secret anymore!