You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/03/26 21:32:02 UTC

svn commit: r928046 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java

Author: lu4242
Date: Fri Mar 26 20:32:02 2010
New Revision: 928046

URL: http://svn.apache.org/viewvc?rev=928046&view=rev
Log:
MYFACES-2626 Application.createResource does not trip extension from resource name when try to resolve composite component class automatically

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java?rev=928046&r1=928045&r2=928046&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java (original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/application/ApplicationImpl.java Fri Mar 26 20:32:02 2010
@@ -1128,7 +1128,9 @@ public class ApplicationImpl extends App
                  * re-throw it. If any other exception is thrown, log the exception and continue to the next step.
                  */
 
-                fqcn = componentResource.getLibraryName() + "." + componentResource.getResourceName();
+                String name = componentResource.getResourceName();
+                String className = name.substring(0, name.lastIndexOf('.'));
+                fqcn = componentResource.getLibraryName() + "." + className;
 
                 try
                 {