You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2011/10/05 09:45:57 UTC

svn commit: r1179085 - in /myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp: 404.xhtml WEB-INF/web.xml

Author: lofwyr
Date: Wed Oct  5 07:45:57 2011
New Revision: 1179085

URL: http://svn.apache.org/viewvc?rev=1179085&view=rev
Log:
error page for 404

Added:
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/404.xhtml
Modified:
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml

Added: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/404.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/404.xhtml?rev=1179085&view=auto
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/404.xhtml (added)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/404.xhtml Wed Oct  5 07:45:57 2011
@@ -0,0 +1,19 @@
+<f:view xmlns:f="http://java.sun.com/jsf/core"
+        xmlns:tc="http://myfaces.apache.org/tobago/component">
+  <tc:loadBundle basename="overview" var="overviewBundle"/>
+  <tc:page label="Test" id="page" width="1000px" height="750px">
+    <f:facet name="layout">
+      <tc:gridLayout/>
+    </f:facet>
+
+    <tc:panel>
+      <f:facet name="layout">
+        <tc:gridLayout rows="auto;*;*" />
+      </f:facet>
+
+      <tc:messages />
+      <tc:out value="The page was not found!"/>
+    </tc:panel>
+
+  </tc:page>
+</f:view>

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml?rev=1179085&r1=1179084&r2=1179085&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/WEB-INF/web.xml Wed Oct  5 07:45:57 2011
@@ -98,7 +98,11 @@
       <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
   </filter-mapping>
   
-  
+  <error-page>
+    <error-code>404</error-code>
+    <location>/faces/404.xhtml</location>
+  </error-page>
+
   <jsp-config>
     <jsp-property-group>
       <url-pattern>*.jsp</url-pattern>