myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Holmes" <ja...@jamesholmes.com>
Subject RE: svn commit: r382525 - /myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/webapp/webxml/WebXml.java
Date Thu, 02 Mar 2006 22:51:36 GMT
Are you going to remove the call to init() in the Faces Servlet code as
well? I think it should removed there for consistency.

James

-----Original Message-----
From: mmarinschek@apache.org [mailto:mmarinschek@apache.org] 
Sent: Thursday, March 02, 2006 4:53 PM
To: commits@myfaces.apache.org
Subject: svn commit: r382525 -
/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/webapp/we
bxml/WebXml.java

Author: mmarinschek
Date: Thu Mar  2 13:53:23 2006
New Revision: 382525

URL: http://svn.apache.org/viewcvs?rev=382525&view=rev
Log:
webXml is now inited whenever needed - thanks to James Holmes for pointing
this out.

Modified:
 
myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/webapp/web
xml/WebXml.java

Modified:
myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/webapp/web
xml/WebXml.java
URL:
http://svn.apache.org/viewcvs/myfaces/shared/trunk/core/src/main/java/org/ap
ache/myfaces/shared/webapp/webxml/WebXml.java?rev=382525&r1=382524&r2=382525
&view=diff
============================================================================
==
---
myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/webapp/web
xml/WebXml.java (original)
+++
myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/webapp/web
xml/WebXml.java Thu Mar  2 13:53:23 2006
@@ -118,8 +118,7 @@
         WebXml webXml =
(WebXml)context.getApplicationMap().get(WEB_XML_ATTR);
         if (webXml == null)
         {
-            log.error(WebXml.class.getName() + ".init must be called
before!");
-            throw new IllegalStateException(WebXml.class.getName() + ".init
must be called before!");
+            init(context);
         }
         return webXml;
     }



Mime
View raw message