myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (MYFACES-3641) ViewDeclarationLanguageFactoryImpl.getViewDeclarationLanguage(String viewId) should not throw exception if no associate VDL can be found
Date Wed, 14 Nov 2012 22:00:13 GMT
Leonardo Uribe created MYFACES-3641:
---------------------------------------

             Summary: ViewDeclarationLanguageFactoryImpl.getViewDeclarationLanguage(String
viewId) should not throw exception if no associate VDL can be found
                 Key: MYFACES-3641
                 URL: https://issues.apache.org/jira/browse/MYFACES-3641
             Project: MyFaces Core
          Issue Type: Bug
            Reporter: Leonardo Uribe


This exception is thrown from ViewDeclarationLanguageFactoryImpl.getViewDeclarationLanguage(String
viewId):

javax.faces.FacesException: Cannot find a valid PDL for view id /hxome.view.xml
        org.apache.myfaces.view.ViewDeclarationLanguageFactoryImpl.getViewDeclarationLanguage(ViewDeclarationLanguageFactoryImpl.java:93)
        org.apache.myfaces.application.ViewHandlerImpl.getViewDeclarationLanguage(ViewHandlerImpl.java:179)
        org.apache.myfaces.shared.application.DefaultViewHandlerSupport.checkResourceExists(DefaultViewHandlerSupport.java:546)
        org.apache.myfaces.shared.application.DefaultViewHandlerSupport.handleSuffixMapping(DefaultViewHandlerSupport.java:484)
        org.apache.myfaces.shared.application.DefaultViewHandlerSupport.calculateViewId(DefaultViewHandlerSupport.java:114)
        org.apache.myfaces.application.ViewHandlerImpl.deriveLogicalViewId(ViewHandlerImpl.java:118)
        org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:157)
        org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:170)
        org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)

Instead throw an exception it return null, which indicates that the viewId has not associate
VDL. Other algorithms in myfaces has already expect that, like DefaultViewHandlerSupport.checkResourceExists()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message