You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Freeman Long (JIRA)" <de...@myfaces.apache.org> on 2005/11/11 05:00:03 UTC

[jira] Created: (MYFACES-811) DEFAULT_SUFFIX_PARAM_NAME shuould be ViewHandler.DEFAULT_SUFFIX_NAME ?!

DEFAULT_SUFFIX_PARAM_NAME shuould be ViewHandler.DEFAULT_SUFFIX_NAME ?!
-----------------------------------------------------------------------

         Key: MYFACES-811
         URL: http://issues.apache.org/jira/browse/MYFACES-811
     Project: MyFaces
        Type: Bug
  Components: JSR-127  
    Versions: Nightly    
    Reporter: Freeman Long
    Priority: Minor


according to the JSF spec 1.1 part 2.2.1 

If suffix mapping (such as "*.faces") is used for FacesServlet, the viewId is
set from the servlet path information of the request URI, after replacing the
suffix with the value of the context initialization parameter named by the
symbolic constant ViewHandler.DEFAULT_SUFFIX_NAME (if no such context
initialization parameter is present, use the value of the symbolic constant
ViewHandler.DEFAULT_SUFFIX as the replacement suffix).

but I found in javax.faces.application.ViewHandler is 

public static final String DEFAULT_SUFFIX_PARAM_NAME = "javax.faces.DEFAULT_SUFFIX";

and I think it should be
ViewHandler.DEFAULT_SUFFIX_NAME 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (MYFACES-811) DEFAULT_SUFFIX_PARAM_NAME shuould be ViewHandler.DEFAULT_SUFFIX_NAME ?!

Posted by "Bruno Aranda (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-811?page=all ]
     
Bruno Aranda closed MYFACES-811:
--------------------------------

    Resolution: Won't Fix

Well, that's another discrepancy between the spec document and the javadocs (which are considered part of the spec). In this, we follow the javadocs to allow full compatibility with the RI. I've seen that the spec for JSF 1.2 has corrected this issue and the variable name will be ViewHandler.DEFAULT_SUFFIX_PARAM_NAME, so it is better to leave things as they are now.

Thanks for noticing that, Freeman,

> DEFAULT_SUFFIX_PARAM_NAME shuould be ViewHandler.DEFAULT_SUFFIX_NAME ?!
> -----------------------------------------------------------------------
>
>          Key: MYFACES-811
>          URL: http://issues.apache.org/jira/browse/MYFACES-811
>      Project: MyFaces
>         Type: Bug
>   Components: JSR-127
>     Versions: Nightly
>     Reporter: Freeman Long
>     Priority: Minor

>
> according to the JSF spec 1.1 part 2.2.1 
> If suffix mapping (such as "*.faces") is used for FacesServlet, the viewId is
> set from the servlet path information of the request URI, after replacing the
> suffix with the value of the context initialization parameter named by the
> symbolic constant ViewHandler.DEFAULT_SUFFIX_NAME (if no such context
> initialization parameter is present, use the value of the symbolic constant
> ViewHandler.DEFAULT_SUFFIX as the replacement suffix).
> but I found in javax.faces.application.ViewHandler is 
> public static final String DEFAULT_SUFFIX_PARAM_NAME = "javax.faces.DEFAULT_SUFFIX";
> and I think it should be
> ViewHandler.DEFAULT_SUFFIX_NAME 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira