Author: norman.richards(a)jboss.com
Date: 2009-03-27 20:57:36 -0400 (Fri, 27 Mar 2009)
New Revision: 10224
Modified:
trunk/src/main/org/jboss/seam/navigation/Pages.java
Log:
JBSEAM-4035
Modified: trunk/src/main/org/jboss/seam/navigation/Pages.java
===================================================================
--- trunk/src/main/org/jboss/seam/navigation/Pages.java 2009-03-27 14:32:22 UTC (rev
10223)
+++ trunk/src/main/org/jboss/seam/navigation/Pages.java 2009-03-28 00:57:36 UTC (rev
10224)
@@ -244,25 +244,9 @@
private Page getCachedPage(String viewId)
{
- Page result = pagesByViewId.get(viewId);
- if (result==null)
- {
- //workaround for what I believe is a bug in the JSF RI
- viewId = replaceExtension( viewId, getSuffix() );
- if (viewId!=null)
- {
- result = pagesByViewId.get(viewId);
- }
- }
- return result;
+ return pagesByViewId.get(viewId);
}
- private static String replaceExtension(String viewId, String suffix)
- {
- int loc = viewId.lastIndexOf('.');
- return loc<0 ? null : viewId.substring(0, loc) + suffix;
- }
-
/**
* Get the stack of Page objects, from least specific to
* most specific, that match the given view id.
Show replies by date