Title: [waffle-scm] [149] trunk/distribution/src/site: submit and hidden tag docs

Diff

Added: trunk/distribution/src/site/apt/taglib/hidden.apt (0 => 149)

--- trunk/distribution/src/site/apt/taglib/hidden.apt	                        (rev 0)
+++ trunk/distribution/src/site/apt/taglib/hidden.apt	2007-06-10 22:43:18 UTC (rev 149)
@@ -0,0 +1,23 @@
+Hidden fields
+
+	You can use the <hidden> tag in order to create hidden html fields:
+
++--------------------
+<w:hidden name="fornecedor.id" value="${fornecedor.id}"/>
++--------------------
+
+	The <<w:hidden>> tag does not add rows to your form, if it has some type of table display.
+
+Default value
+
+	The default <value> attribute value is the _expression_ language evaluation of the name attribute. Therefore the result from writing:
+
++--------------------
+<w:hidden name="supplier.id" value="${supplier.id}"/>
++--------------------
+
+	Is the same one as:
+
++--------------------
+<w:hidden name="supplier.id"/>
++--------------------

Added: trunk/distribution/src/site/apt/taglib/submit.apt (0 => 149)

--- trunk/distribution/src/site/apt/taglib/submit.apt	                        (rev 0)
+++ trunk/distribution/src/site/apt/taglib/submit.apt	2007-06-10 22:43:18 UTC (rev 149)
@@ -0,0 +1,22 @@
+Submit buttons
+
+  In order to submit your form, use the <<w:submit>> tag:
+
++--------------------
+<w:submit value="submit"/>
++--------------------
+
+Multiple submit buttons on the same form
+
+  You can create one form with multiple submit buttons to different actions by setting the action attribute:
+
++--------------------
+<w:form action="" type="table" id="myform">
+	<w:hidden name="supplier.id"/>
+	<w:text name="supplier.name"/>
+	<w:submit value="update" action=""
+	<w:submit value="remove" action=""
+</w:form>
++--------------------
+
+  In order to such form work, one needs to add some _javascript_ code, therefore do not forge to define a unique <id> attribute in your form.

Modified: trunk/distribution/src/site/pt/apt/taglib/form/submit.apt (148 => 149)

--- trunk/distribution/src/site/pt/apt/taglib/form/submit.apt	2007-06-10 21:52:22 UTC (rev 148)
+++ trunk/distribution/src/site/pt/apt/taglib/form/submit.apt	2007-06-10 22:43:18 UTC (rev 149)
@@ -1,29 +1,29 @@
-Botões de enviar
+Botões de submit
 
-	Para efetuar o envio do seu formulário, utilize a tag <<s:submit>>, sendo o seu uso clássico com o atributo <<value>>:
+  Para efetuar o envio do seu formulário, utilize a tag <<w:submit>>, sendo o seu uso comum com o atributo <<value>>:
 	
 +--------------------
-<s:submit value="enviar"/>
+<w:submit value="enviar"/>
 +--------------------
 
 Como criar um formulário com dois botões de envio
 
-	Diversas vezes desejamos ter, em um único formulário, dois botões de envio diferentes, cada um para lógicas separadas.
+  Diversas vezes desejamos ter dois botões de envio diferentes no mesmo formulário, cada um para lógicas separadas.
 	
-	Por exemplo, imagine um formulário que mostra um fornecedor e permite alterá-lo (<<fornecedor.altera.logic>) ou removê-lo (<<fornecedor.remove.logic>>). 
+  Por exemplo, imagine um formulário que mostra um fornecedor e permite alterá-lo (<<fornecedor.altera.logic>) ou removê-lo (<<fornecedor.remove.logic>>).
 	
-	Através do atributo <<action>> você pode determinar qual lógica seu botão deve executar:
+  Através do atributo <<action>> você pode determinar qual lógica seu botão deve executar:
 
 +--------------------
-<s:form action="" type="table" id="meuForm">
-	<s:hidden name="fornecedor.id"/>
-	<s:text name="fornecedor.nome"/>
-	<s:submit value="alterar" action=""
-	<s:submit value="remover" action=""
-</s:form>
+<w:form action="" type="table" id="meuForm">
+	<w:hidden name="fornecedor.id"/>
+	<w:text name="fornecedor.nome"/>
+	<w:submit value="alterar" action=""
+	<w:submit value="remover" action=""
+</w:form>
 +--------------------
 
-	Note que para esse atributo funcionar é necessário código _javascript_ e que seu formulário possua um atributo chamado <<id>>, único em toda
-	sua página.
+  Note que para esse atributo funcionar é necessário código _javascript_ e que seu formulário possua um atributo chamado <<id>>, único em toda
+  sua página.
 
-	Caso sua url inicie com uma barra, o nome da sua aplicação será adicionada a url para que seu link funcione relativo a aplicação.
+  Caso sua url inicie com uma barra, o nome da sua aplicação será adicionada a url para que seu link funcione relativo a aplicação.

Modified: trunk/distribution/src/site/site.xml (148 => 149)

--- trunk/distribution/src/site/site.xml	2007-06-10 21:52:22 UTC (rev 148)
+++ trunk/distribution/src/site/site.xml	2007-06-10 22:43:18 UTC (rev 149)
@@ -57,6 +57,8 @@
             <item name="Index" href=""
             <item name="Button" href=""
             <item name="Text" href=""
+            <item name="Submit" href=""
+            <item name="Hidden" href=""
         </menu>
 
         <menu name="Misc...">

Modified: trunk/distribution/src/site/site_pt.xml (148 => 149)

--- trunk/distribution/src/site/site_pt.xml	2007-06-10 21:52:22 UTC (rev 148)
+++ trunk/distribution/src/site/site_pt.xml	2007-06-10 22:43:18 UTC (rev 149)
@@ -1,40 +1,42 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <project name="Waffle">
-    <skin>
-        <groupId>org.codehaus.waffle</groupId>
-        <artifactId>waffle-skin</artifactId>
-        <version>1.0-SNAPSHOT</version>
-    </skin>
-    <bannerLeft>
-        <name>Waffle</name>
-        <src>./images/waffle-logo.png</src>
-        <href>http://waffle.codehaus.org/</href>
-    </bannerLeft>
-    <poweredBy>
-        <logo name="Hosted at Codehaus"
-              href=""
-              img="http://ci.codehaus.org/codehaus-small.png"/>
-        <logo name="Build with Maven 2"
-              href=""
-              img="images/logos/maven-feather.png"/>
-        <logo name="The best Java IDE"
-              href=""
-              img="http://www.jetbrains.com/idea/opensource/img/banners/idea88x31_white.gif"/>
-    </poweredBy>
-    <body>
-        <links>
-            <item name="English" href=""
-            <item name="Waffle Home" href=""
-        </links>
+  <skin>
+    <groupId>org.codehaus.waffle</groupId>
+    <artifactId>waffle-skin</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </skin>
+  <bannerLeft>
+    <name>Waffle</name>
+    <src>./images/waffle-logo.png</src>
+    <href>http://waffle.codehaus.org/</href>
+  </bannerLeft>
+  <poweredBy>
+    <logo name="Hosted at Codehaus"
+          href=""
+          img="http://ci.codehaus.org/codehaus-small.png"/>
+    <logo name="Build with Maven 2"
+          href=""
+          img="images/logos/maven-feather.png"/>
+    <logo name="The best Java IDE"
+          href=""
+          img="http://www.jetbrains.com/idea/opensource/img/banners/idea88x31_white.gif"/>
+  </poweredBy>
+  <body>
+    <links>
+      <item name="English" href=""
+      <item name="Waffle Home" href=""
+    </links>
 
-        <menu name="Taglib">
-            <item name="Index" href=""
-            <item name="Button" href=""
-            <item name="Text" href=""
-        </menu>
+    <menu name="Taglib">
+      <item name="Index" href=""
+      <item name="Button" href=""
+      <item name="Text" href=""
+      <item name="Submit" href=""
+      <item name="Hidden" href=""
+    </menu>
 
-        ${reports}
+    ${reports}
 
-    </body>
+  </body>
 
 </project>


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to