File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 16158
    
  21

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I make services available across Handlers?