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 2009/05/27 17:02:48 UTC
svn commit: r779204 - in
/myfaces/tobago/trunk/example/addressbook/war/src/main/webapp: error.jsp
error.xhtml
Author: lofwyr
Date: Wed May 27 15:02:48 2009
New Revision: 779204
URL: http://svn.apache.org/viewvc?rev=779204&view=rev
Log:
error page as facelet
Added:
myfaces/tobago/trunk/example/addressbook/war/src/main/webapp/error.xhtml (contents, props changed)
- copied, changed from r778711, myfaces/tobago/trunk/example/addressbook/war/src/main/webapp/error.jsp
Removed:
myfaces/tobago/trunk/example/addressbook/war/src/main/webapp/error.jsp
Copied: myfaces/tobago/trunk/example/addressbook/war/src/main/webapp/error.xhtml (from r778711, myfaces/tobago/trunk/example/addressbook/war/src/main/webapp/error.jsp)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/addressbook/war/src/main/webapp/error.xhtml?p2=myfaces/tobago/trunk/example/addressbook/war/src/main/webapp/error.xhtml&p1=myfaces/tobago/trunk/example/addressbook/war/src/main/webapp/error.jsp&r1=778711&r2=779204&rev=779204&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/addressbook/war/src/main/webapp/error.jsp (original)
+++ myfaces/tobago/trunk/example/addressbook/war/src/main/webapp/error.xhtml Wed May 27 15:02:48 2009
@@ -1,4 +1,6 @@
-<%--
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
@@ -13,6 +15,41 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
---%>
+-->
+
+<f:view xmlns:tc="http://myfaces.apache.org/tobago/component"
+ xmlns:tx="http://myfaces.apache.org/tobago/extension"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core">
+ <tc:loadBundle basename="resource" var="bundle"/>
+
+ <tc:page label="Error" width="600" height="600">
+ <f:facet name="layout">
+ <tc:gridLayout rows="*;fixed;*" columns="*;400px;*"/>
+ </f:facet>
+
+ <tc:cell spanX="3"/>
+
+ <tc:cell/>
+ <tc:box label="Error">
+ <f:facet name="layout">
+ <tc:gridLayout rows="fixed;fixed"/>
+ </f:facet>
+
+ <tc:out value="Sorry, an error has occured."/>
+
+ <tc:panel>
+ <f:facet name="layout">
+ <tc:gridLayout columns="*;fixed"/>
+ </f:facet>
+
+ <tc:cell/>
+ <tc:button link="/index.jsp" label="Home"/>
+ </tc:panel>
+
+ </tc:box>
+ <tc:cell/>
-Sorry, an error has occured. (Todo: make a "real" error page)
\ No newline at end of file
+ <tc:cell spanX="3"/>
+ </tc:page>
+</f:view>
Propchange: myfaces/tobago/trunk/example/addressbook/war/src/main/webapp/error.xhtml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/war/src/main/webapp/error.xhtml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL