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 Android Security Essentials Live Lessons this week in the Android 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: 15961
    
  19

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.
 
 
subject: How can I make services available across Handlers?
 
Similar Threads
Please Help....NullPointerException...
Obtaining an instance of a Managed Bean declared with Application Level Scope
Accessing jsf bean from another jsf bean
access another bean information
How do I bind this bean property?