You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/09/15 13:49:56 UTC
svn commit: r289213 - /myfaces/examples/trunk/sandbox/autoUpdateDataTable.jsp
Author: mmarinschek
Date: Thu Sep 15 04:49:52 2005
New Revision: 289213
URL: http://svn.apache.org/viewcvs?rev=289213&view=rev
Log:
renamed beans to be consistent with jsp file names
Added:
myfaces/examples/trunk/sandbox/autoUpdateDataTable.jsp
Added: myfaces/examples/trunk/sandbox/autoUpdateDataTable.jsp
URL: http://svn.apache.org/viewcvs/myfaces/examples/trunk/sandbox/autoUpdateDataTable.jsp?rev=289213&view=auto
==============================================================================
--- myfaces/examples/trunk/sandbox/autoUpdateDataTable.jsp (added)
+++ myfaces/examples/trunk/sandbox/autoUpdateDataTable.jsp Thu Sep 15 04:49:52 2005
@@ -0,0 +1,83 @@
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
+<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
+<html>
+
+<!--
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * 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.
+ */
+//-->
+
+<%@include file="inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+ <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+ <h:panelGroup id="body">
+
+ <h:panelGrid columns="1">
+ <h:commandLink action="go_country" immediate="true">
+ <h:outputText value="#{example_messages['new_country']}" styleClass="standard" />
+ </h:commandLink>
+ <h:commandLink action="go_edit_table" immediate="true">
+ <h:outputText value="#{example_messages['country_edit_table']}" styleClass="standard" />
+ </h:commandLink>
+ </h:panelGrid>
+ <f:verbatim><br></f:verbatim>
+
+ <h:form>
+
+ <s:autoUpdateDataTable id="data1"
+ rows="5"
+ styleClass="standardTable"
+ headerClass="standardTable_Header"
+ footerClass="standardTable_Header"
+ rowClasses="standardTable_Row1,standardTable_Row2"
+ columnClasses="standardTable_Column,standardTable_ColumnCentered,standardTable_Column"
+ var="number"
+ value="#{autoUpdateDataTableBean.testList}"
+ preserveDataModel="true"
+ frequency="5"
+ >
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="#{example_messages['label_country_name']}" />
+ </f:facet>
+ <x:commandLink action="#" immediate="true" >
+ <h:outputText value="#{number}" />
+ </x:commandLink>
+ </h:column>
+
+ </s:autoUpdateDataTable>
+
+ </h:form>
+
+ <f:verbatim><br></f:verbatim>
+
+ </h:panelGroup>
+
+</f:view>
+
+<%@include file="inc/page_footer.jsp" %>
+
+</body>
+
+</html>