Title: [waffle-scm] [283] trunk/distribution/src/site/content: adding date and time tag doc
Revision
283
Author
gas
Date
2007-07-25 14:18:01 -0500 (Wed, 25 Jul 2007)

Log Message

adding date and time tag doc

Modified Paths


Added Paths

Removed Paths

Diff

Modified: trunk/distribution/src/site/content/sitemap.xml (282 => 283)

--- trunk/distribution/src/site/content/sitemap.xml	2007-07-25 19:10:06 UTC (rev 282)
+++ trunk/distribution/src/site/content/sitemap.xml	2007-07-25 19:18:01 UTC (rev 283)
@@ -34,6 +34,7 @@
    <page>taglib/taglib.html</page>
    <page>taglib/button.html</page>
    <page>taglib/calendar.html</page>
+   <page>taglib/date.html</page>
    <page>taglib/hidden.html</page>
    <page>taglib/number.html</page>
    <page>taglib/submit.html</page>

Copied: trunk/distribution/src/site/content/taglib/date.html (from rev 282, trunk/distribution/src/site/content/taglib/number.html) (0 => 283)

--- trunk/distribution/src/site/content/taglib/date.html	                        (rev 0)
+++ trunk/distribution/src/site/content/taglib/date.html	2007-07-25 19:18:01 UTC (rev 283)
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<title>Date or Time Tag</title>
+</head>
+<body>
+
+
+<h2>Date Tag</h2>
+<p>The <i>w:date</i> tag creates an input field with the
+given <i>value</i> represented as a date. It receives its value as a <i>java.util.Date</i>. The
+number will be formated using the current <i>user locale</i> or the given <i>pattern</i> .</p>
+<p>Example using the user locale:</p>
+
+<textarea class="java:nogutter:nocontrols" name="code">
+  &lt;w:date name=&quot;client.birthday&quot; dateStyle=&quot;medium&quot; /&gt;
+</textarea>
+
+<p>The <i>dateStyle</i> is an optional attribute which can receive either &lt;short&gt;, &lt;medium&gt;, &lt;long&gt; or &lt;full&gt;.</p>
+
+<p>Example using a specific pattern:</p>
+
+<textarea class="java:nogutter:nocontrols" name="code">
+  &lt;w:date name=&quot;client.birthday&quot; pattern=&quot;dd.MM.yyyy&quot; /&gt;
+</textarea>
+
+<h2>Time Tag</h2>
+<p>The <i>w:time</i> tag works exactly in the same way as the <i>w:date</i>, but it supports the <i>timeStyle</i> attribute.</p>
+
+</body>
+
+</html>

Deleted: trunk/distribution/src/site/pt/content/taglib/form/date.apt (282 => 283)

--- trunk/distribution/src/site/pt/content/taglib/form/date.apt	2007-07-25 19:10:06 UTC (rev 282)
+++ trunk/distribution/src/site/pt/content/taglib/form/date.apt	2007-07-25 19:18:01 UTC (rev 283)
@@ -1,37 +0,0 @@
-Data
-
-	Para criar um campo para mostar a data em seu formulário você pode utilizar a tag <s:date>. Essa tag recebe um atributo
-	chamado value, que será do tipo java.util.Date. 
-
-	Por exemplo, usando html e fmt para mostrar a hora formatada você escreveria:
-	
-+--------------------
-<input type="text" name="fornecedor.nascimento" value="<fmt:formatDate value="${fornecedor.nascimento}" type="date" dateStyle="medium"/>" />
-+--------------------
-	
-	Com <s:date>:
-
-+-------------------- 
-<s:date name="fornecedor.nascimento" value="${fornecedor.nascimento}" dateStyle="medium"/>
-+--------------------
-
-	O atributo <dateStyle> pode ter os seguintes valores: <short>, <medium>, <long>, <full> e <default>. 
-	Ele pode ser omitido (usa-se o <default>).
-
-	Se você omitir o atributo <value>, o valor padrão será o <_expression_ language> do seu <fornecedor.nascimento>, portanto o código:	
-
-+--------------------
-<s:date name="fornecedor.nascimento" dateStyle="medium"/>
-+--------------------
-
-	é igual o código anterior. Ou usando o valor padrão para o atributo <dateStyle>:
-
-+--------------------
-<s:date name="fornecedor.nascimento"/>
-+--------------------
-
-	Você tamém pode utilizar o atributo <pattern>:
-
-+--------------------
-<s:date name="fornecedor.nascimento" pattern="dd/MM/yyyy"/>
-+--------------------
\ No newline at end of file

Deleted: trunk/distribution/src/site/pt/content/taglib/form/time.apt (282 => 283)

--- trunk/distribution/src/site/pt/content/taglib/form/time.apt	2007-07-25 19:10:06 UTC (rev 282)
+++ trunk/distribution/src/site/pt/content/taglib/form/time.apt	2007-07-25 19:18:01 UTC (rev 283)
@@ -1,37 +0,0 @@
-Hora
-
-	Para criar um campo para a hora em seu formulário você pode utilizar a tag <s:time>. Essa tag recebe um atributo
-	chamado value, que será <java.util.Date>. 
-
-	Por exemplo, usando html e fmt para mostrar a hora formatada você escreveria:
-	
-+--------------------
-<input type="text" name="fornecedor.nascimento" value="<fmt:formatDate value="${fornecedor.nascimento}" type="time" timeStyle="medium"/>" />
-+--------------------
-	
-	Com <s:time>:
-
-+--------------------
-<s:time name="fornecedor.nascimento" value="${fornecedor.nascimento}" timeStyle="medium"/>
-+--------------------
-
-	O atributo <timeStyle> pode ter os seguintes valores: <short>, <medium>, <long>, <full> e <default>. 
-	Ele pode ser omitido (usa-se o <default>).
-
-	Se você omitir o atributo <value>, o valor padrão será o <_expression_ language> do seu <fornecedor.nascimento>, portanto o código:	
-
-+--------------------
-<s:time name="fornecedor.nascimento" timeStyle="medium"/>
-+--------------------
-
-	é igual o código anterior. Ou usando o valor padrão para o atributo timeStyle:
-
-+--------------------
-<s:time name="fornecedor.nascimento"/>
-+--------------------
-
-	Você tamém pode utilizar o atributo <pattern>:
-
-+--------------------
-<s:time name="fornecedor.nascimento" pattern="hh:mm"/>
-+--------------------
\ No newline at end of file


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to