webtier@glassfish.java.net

Re: [webtier] JSF Mojarra 1.2 implemenation MessageFactory

From: <webtier_at_javadesktop.org>
Date: Fri, 24 Apr 2009 11:11:23 PDT

Hello Ryan,

thank you for responding to this thread. Of course, the tutorial-related question might not be so important. It is clear that the MessageFactory class in the tutorial is a copy of the MessageFactory in the Mojarra, stripped here and there of some calls, like those:

ApplicationFactory afactory = (ApplicationFactory)
FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
return (afactory.getApplication());

in the getApplication() method.

The point of my question was what happens if you create an Application object in the business classes of your JSF web application. How does it interact with the Application instanciated by Mojarra itself (suppose you use Mojarra as the JSF implementation). Since the tutorial decided to eliminate those calls from its MessageFactory (regard it as just a class as any in the web app called bookstore6), it must be for some reason, avoiding something unallowed.

Thanks and sorry for insisiting.
[Message sent by forum member 'vladbalan' (vladbalan)]

http://forums.java.net/jive/thread.jspa?messageID=343688