You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ar...@apache.org on 2010/03/30 22:44:04 UTC
svn commit: r929268 - in
/myfaces/trinidad/branches/jsf2_ajax.3/trinidad-examples/trinidad-demo/src/main/webapp/components:
editor.xhtml inputFile.xhtml
Author: arobinson74
Date: Tue Mar 30 20:44:04 2010
New Revision: 929268
URL: http://svn.apache.org/viewvc?rev=929268&view=rev
Log:
Create facelets versions of two files
Added:
myfaces/trinidad/branches/jsf2_ajax.3/trinidad-examples/trinidad-demo/src/main/webapp/components/editor.xhtml (with props)
myfaces/trinidad/branches/jsf2_ajax.3/trinidad-examples/trinidad-demo/src/main/webapp/components/inputFile.xhtml (with props)
Added: myfaces/trinidad/branches/jsf2_ajax.3/trinidad-examples/trinidad-demo/src/main/webapp/components/editor.xhtml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/jsf2_ajax.3/trinidad-examples/trinidad-demo/src/main/webapp/components/editor.xhtml?rev=929268&view=auto
==============================================================================
--- myfaces/trinidad/branches/jsf2_ajax.3/trinidad-examples/trinidad-demo/src/main/webapp/components/editor.xhtml (added)
+++ myfaces/trinidad/branches/jsf2_ajax.3/trinidad-examples/trinidad-demo/src/main/webapp/components/editor.xhtml Tue Mar 30 20:44:04 2010
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ 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. The ASF licenses this file
+ to you 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.
+
+-->
+<ui:composition
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:tr="http://myfaces.apache.org/trinidad"
+ xmlns:trh="http://myfaces.apache.org/trinidad/html">
+ <tr:table var="row" rows="100" value="#{editor.attributes}"
+ summary="Attributes">
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Name"/>
+ </f:facet>
+ <tr:outputText value="#{row.name}"/>
+ </tr:column>
+ <tr:column>
+ <f:facet name="header">
+ <tr:outputText value="Value"/>
+ </f:facet>
+ <tr:inputText immediate="true"
+ readOnly="#{row.name == 'value' ||
+ row.name == 'var' ||
+ row.name == 'currencyKey' ||
+ row.name == 'currencyString' ||
+ row.name == 'rowKey' ||
+ row.name == 'id' ||
+ row.name == 'rendererType' ||
+ row.name == 'submittedValue'}"
+ rendered="#{row.type == 'string'}"
+ value="#{row.value}"
+ shortDesc="Type to change '#{row.name}'"/>
+ <tr:inputText immediate="true"
+ readOnly="#{row.name == 'rowIndex'}"
+ rendered="#{row.type == 'integer'}"
+ value="#{row.value}"
+ shortDesc="Type to change '#{row.name}'">
+ <f:converter converterId="javax.faces.Integer"/>
+ </tr:inputText>
+ <tr:inputText immediate="true"
+ rendered="#{row.type == 'date'}"
+ value="#{row.value}"
+ shortDesc="Type to change '#{row.name}'">
+ <f:facet name="help">
+ <tr:outputText value="Sample format: 2004-07-15"/>
+ </f:facet>
+ <f:convertDateTime pattern="yyyy-MM-dd"/>
+ </tr:inputText>
+ <tr:selectBooleanCheckbox rendered="#{row.type == 'boolean'}"
+ readOnly="#{row.name == 'localValueSet' ||
+ row.name == 'valid' ||
+ row.name == 'transient'}"
+ immediate="true" value="#{row.value}"
+ shortDesc="Click to change '#{row.name}'"/>
+ </tr:column>
+ <f:facet name="footer">
+ <tr:commandButton text="Update"
+ action="#{editor.update}" partialSubmit="true"/>
+ </f:facet>
+ </tr:table>
+</ui:composition>
\ No newline at end of file
Propchange: myfaces/trinidad/branches/jsf2_ajax.3/trinidad-examples/trinidad-demo/src/main/webapp/components/editor.xhtml
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/trinidad/branches/jsf2_ajax.3/trinidad-examples/trinidad-demo/src/main/webapp/components/inputFile.xhtml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/jsf2_ajax.3/trinidad-examples/trinidad-demo/src/main/webapp/components/inputFile.xhtml?rev=929268&view=auto
==============================================================================
--- myfaces/trinidad/branches/jsf2_ajax.3/trinidad-examples/trinidad-demo/src/main/webapp/components/inputFile.xhtml (added)
+++ myfaces/trinidad/branches/jsf2_ajax.3/trinidad-examples/trinidad-demo/src/main/webapp/components/inputFile.xhtml Tue Mar 30 20:44:04 2010
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+ 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. The ASF licenses this file
+ to you 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.
+
+-->
+<ui:composition
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:tr="http://myfaces.apache.org/trinidad"
+ xmlns:trh="http://myfaces.apache.org/trinidad/html">
+ <tr:document title="InputFile Demo">
+ <tr:form usesUpload="true">
+ <tr:panelGroupLayout layout="vertical">
+ <f:facet name="separator">
+ <tr:separator/>
+ </f:facet>
+ <tr:panelGroupLayout layout="horizontal" partialTriggers="cb1">
+ <tr:commandLink immediate="true" text="Component Guide" action="guide"/>
+ <tr:spacer width="10"/>
+ <tr:goLink destination="http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_inputFile.html"
+ text="Tag Documentation"/>
+ </tr:panelGroupLayout>
+ <tr:outputFormatted styleUsage="instruction" value="<b>inputFile</b>"/>
+ <tr:inputFile binding="#{editor.component}" label="Label"
+ valueChangeListener="#{ui.fileUploaded}"
+ partialTriggers="cb1" />
+ <tr:commandButton text="Submit" id="cb1" partialSubmit="true" />
+ <ui:include src="editor.xhtml"/>
+ </tr:panelGroupLayout>
+ </tr:form>
+ </tr:document>
+</ui:composition>
Propchange: myfaces/trinidad/branches/jsf2_ajax.3/trinidad-examples/trinidad-demo/src/main/webapp/components/inputFile.xhtml
------------------------------------------------------------------------------
svn:eol-style = native