This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Application Frameworks and the fly likes Tapestry5 help with IOC service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Tapestry5 help with IOC service" Watch "Tapestry5 help with IOC service" New topic
Author

Tapestry5 help with IOC service

sandeeprajsingh tandon
Ranch Hand

Joined: Mar 06, 2009
Posts: 70
HiGuys,

Please help me with some pointers on this.

I have created my own Service TestService and in the method getMessagesAll() in TestService.java i want to use A built In tapestry 5 ioc service.

ie.

public class TabLocatorImpl implements TabLocator {

@Inject
private ClassNameLocator classNameLocation ;
public List<String> getMessagesAll() {


return classNameLocation.locateClassNames("MyPackageName); ;

}


The above class while running is giving me a null pointer exception for the line classNameLocation.locateClassName(); i.e classNameLocation service is not being injected. May i know the reason why. The same code is working when i use the classNameLocation.locateClassNames() in one of my Components.






}


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tapestry5 help with IOC service