myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1564159 - /myfaces/site/cms-site/trunk/content/wiki/commons/user-guide/myfaces-commons-converters.mdtext
Date Tue, 04 Feb 2014 02:25:00 GMT
Author: lu4242
Date: Tue Feb  4 02:25:00 2014
New Revision: 1564159

URL: http://svn.apache.org/r1564159
Log:
test how to fix documentation

Modified:
    myfaces/site/cms-site/trunk/content/wiki/commons/user-guide/myfaces-commons-converters.mdtext

Modified: myfaces/site/cms-site/trunk/content/wiki/commons/user-guide/myfaces-commons-converters.mdtext
URL: http://svn.apache.org/viewvc/myfaces/site/cms-site/trunk/content/wiki/commons/user-guide/myfaces-commons-converters.mdtext?rev=1564159&r1=1564158&r2=1564159&view=diff
==============================================================================
--- myfaces/site/cms-site/trunk/content/wiki/commons/user-guide/myfaces-commons-converters.mdtext
(original)
+++ myfaces/site/cms-site/trunk/content/wiki/commons/user-guide/myfaces-commons-converters.mdtext
Tue Feb  4 02:25:00 2014
@@ -14,35 +14,35 @@ postback requests).</p>
 
 <p>To understand this, take a look at this example:</p>
 
-:::xml
-<h:form id="form1">
-    <h:messages showDetail="false" showSummary="true" ></h:messages>
-    <h:panelGrid columns="3">
-
-	<h:outputLabel for="type" value="Insert a type" />
-	<h:selectOneMenu id="type" immediate="true"
-value="#{numberBean.type}" >
-	    <f:selectItem itemLabel="number" itemValue="number"/>
-	    <f:selectItem itemLabel="currency" itemValue="currency"/>
-	    <f:selectItem itemLabel="percent" itemValue="percent"/>
-	</h:selectOneMenu>
-	<h:message for="type" styleClass="error" />
-
-	<h:outputLabel for="number1" value="Insert a number" />
-        <h:inputText id="number1" value="#{numberBean.numberMap['number1']('number1'.html)
-}" required="true">
-	    <mcc:convertNumber destType="java.lang.Double"
-type="#{mc:findComponent('form1:type').value}"/>
-	</h:inputText>
-	<h:message for="number1" styleClass="error" />
-
-	<h:commandButton id="validateButton"
-         value="#{example_messages['button_submit']('button_submit'.html)
-}"
-	 action="#{numberBean.submit}" />
+    :::xml
+    <h:form id="form1">
+        <h:messages showDetail="false" showSummary="true" ></h:messages>
+        <h:panelGrid columns="3">
+
+        <h:outputLabel for="type" value="Insert a type" />
+        <h:selectOneMenu id="type" immediate="true"
+    value="#{numberBean.type}" >
+            <f:selectItem itemLabel="number" itemValue="number"/>
+            <f:selectItem itemLabel="currency" itemValue="currency"/>
+            <f:selectItem itemLabel="percent" itemValue="percent"/>
+        </h:selectOneMenu>
+        <h:message for="type" styleClass="error" />
+
+        <h:outputLabel for="number1" value="Insert a number" />
+            <h:inputText id="number1" value="#{numberBean.numberMap['number1']('number1'.html)
+    }" required="true">
+            <mcc:convertNumber destType="java.lang.Double"
+    type="#{mc:findComponent('form1:type').value}"/>
+        </h:inputText>
+        <h:message for="number1" styleClass="error" />
+
+        <h:commandButton id="validateButton"
+             value="#{example_messages['button_submit']('button_submit'.html)
+    }"
+         action="#{numberBean.submit}" />
 
-    </h:panelGrid>
-</h:form>
+        </h:panelGrid>
+    </h:form>
 
 <p>It is a <code>&lt;h:selectOneMenu&gt;</code> that allows you
to choose a
 type that is then read by a converter. This can't work with



Mime
View raw message