Author: manaRH
Date: 2011-05-02 05:01:54 -0400 (Mon, 02 May 2011)
New Revision: 14094
Modified:
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/navigation/SafeActions.java
Log:
JBPAPP-6283
Modified:
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/navigation/SafeActions.java
===================================================================
---
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/navigation/SafeActions.java 2011-04-27
18:17:04 UTC (rev 14093)
+++
branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/navigation/SafeActions.java 2011-05-02
09:01:54 UTC (rev 14094)
@@ -63,7 +63,8 @@
String viewId = id.substring(0, loc);
String action = "\"#{" + id.substring(loc+1) +
"}\"";
- InputStream is =
FacesContext.getCurrentInstance().getExternalContext().getResourceAsStream(viewId);
+ // adding slash as it otherwise won't find a page viewId by getResource*
+ InputStream is =
FacesContext.getCurrentInstance().getExternalContext().getResourceAsStream("/"
+viewId);
if (is==null) throw new IllegalStateException("Unable to read view " +
"/" + viewId + " to execute action " + action);
BufferedReader reader = new BufferedReader( new InputStreamReader(is) );
try
Show replies by date