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 2011/04/01 05:29:58 UTC
svn commit: r1087569 -
/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
Author: lu4242
Date: Fri Apr 1 03:29:57 2011
New Revision: 1087569
URL: http://svn.apache.org/viewvc?rev=1087569&view=rev
Log:
MYFACES-3102 FaceletViewDeclarationLanguage.getRenderedViewId is not necessary anymore since JSF 2.0
Modified:
myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java?rev=1087569&r1=1087568&r2=1087569&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java (original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java Fri Apr 1 03:29:57 2011
@@ -1605,6 +1605,10 @@ public class FaceletViewDeclarationLangu
return writer;
}
+ /**
+ * @deprecated this code is not used anymore
+ */
+ @Deprecated
protected String getDefaultSuffix(FacesContext context) throws FacesException
{
if (_defaultSuffix == null)
@@ -1619,25 +1623,13 @@ public class FaceletViewDeclarationLangu
return _defaultSuffix;
}
+ /**
+ * @deprecated
+ */
+ @Deprecated
protected String getRenderedViewId(FacesContext context, String actionId)
{
- ExternalContext eContext = context.getExternalContext();
- String viewId = actionId;
- if (eContext.getRequestPathInfo() == null)
- {
- String viewSuffix = getDefaultSuffix(context);
-
- StringBuilder builder = new StringBuilder(viewId);
-
- viewId = builder.replace(viewId.lastIndexOf('.'), viewId.length(), viewSuffix).toString();
- }
-
- if (log.isLoggable(Level.FINEST))
- {
- log.finest("ActionId -> ViewId: " + actionId + " -> " + viewId);
- }
-
- return viewId;
+ return actionId;
}
/**