aspose file tools
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
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: 16395
    
  23

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
Don't get me started about those stupid light bulbs.
 
subject: How can I make services available across Handlers?