You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ds...@apache.org on 2004/04/16 01:26:38 UTC
cvs commit: jakarta-tapestry/doc/src/ComponentReference contrib.FormConditional.html index.html
dsolis 2004/04/15 16:26:38
Modified: . status.xml
contrib/src/org/apache/tapestry/contrib/form
FormConditional.java
doc/src/ComponentReference index.html
Added: doc/src/ComponentReference contrib.FormConditional.html
Log:
Fix bug 28936 (Add FormConditional to Component Reference)
Revision Changes Path
1.45 +5 -1 jakarta-tapestry/status.xml
Index: status.xml
===================================================================
RCS file: /home/cvs/jakarta-tapestry/status.xml,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- status.xml 14 Apr 2004 16:41:23 -0000 1.44
+++ status.xml 15 Apr 2004 23:26:37 -0000 1.45
@@ -243,6 +243,10 @@
Workbench/Upload exception when no file specified
</action>
+ <action type="fix" dev="DS" fixes-bug="28396">
+ Add FormConditional to Component Reference
+ </action>
+
</release>
<!-- Use due-to to give acknowledgement for patches. -->
1.6 +2 -2 jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/form/FormConditional.java
Index: FormConditional.java
===================================================================
RCS file: /home/cvs/jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/form/FormConditional.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- FormConditional.java 19 Feb 2004 17:37:38 -0000 1.5
+++ FormConditional.java 15 Apr 2004 23:26:38 -0000 1.6
@@ -36,7 +36,7 @@
* hidden fields during rendering and are taken from those fields during the rewind,
* thus no StaleLink exceptions occur.
*
- * [<a href="../../../../../ComponentReference/Conditional.html">Component Reference</a>]
+ * [<a href="../../../../../ComponentReference/contrib.FormConditional.html">Component Reference</a>]
*
* @author Mindbridge
* @version $Id$
1.42 +2 -2 jakarta-tapestry/doc/src/ComponentReference/index.html
Index: index.html
===================================================================
RCS file: /home/cvs/jakarta-tapestry/doc/src/ComponentReference/index.html,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- index.html 7 Jan 2004 01:14:28 -0000 1.41
+++ index.html 15 Apr 2004 23:26:38 -0000 1.42
@@ -137,7 +137,7 @@
<td width="18%"><a href="contrib.TableView.html">TableView</a></td>
</tr>
<tr>
- <td width="18%"><a href="../api/org/apache/tapestry/contrib/form/FormConditional.html">FormConditional</a></td>
+ <td width="18%"><a href="contrib.FormConditional.html">FormConditional</a></td>
<td width="2%"> </td>
<td width="18%"><a href="../api/org/apache/tapestry/contrib/valid/NumericField.html">NumericField</a></td>
<td width="2%"> </td>
1.1 jakarta-tapestry/doc/src/ComponentReference/contrib.FormConditional.html
Index: contrib.FormConditional.html
===================================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- $Id: contrib.FormConditional.html,v 1.1 2004/04/15 23:26:38 dsolis Exp $ -->
<html>
<head>
<title>contrib:FormConditional</title>
<link rel="stylesheet" type="text/css" href="Tapestry.css" title="style">
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<!-- Previous component in alphabetical order. -->
<td align="left"><a href="contrib.Choose.html"><img alt="contrib:Choose" src="common-images/prev.png"></a></td>
<td align="middle"><a href="index.html"><img alt="Component Index" src="common-images/home.png" ></a></td>
<!-- Next component in alphabetical order. -->
<td align="right"><a href="contrib.FormTable.html"><img alt="contrib:FormTable" src="common-images/next.png"></a></td>
<tr>
<tr>
<td colspan="3"><hr></td>
</tr>
<tr>
<td colspan="3">
<table border="0" cellpadding="4" cellspacing="4" width="100%">
<tr valign="top">
<td>
<table>
<tr>
<td><font size="+2"><b>contrib:FormConditional</b></font></td>
</tr>
<tr>
<td> <A href="../api/org/apache/tapestry/contrib/form/FormConditional.html">org.apache.tapestry.contrib.form.FormConditional</a>
</td>
</tr>
</table>
</td>
<td>
<table align="right" valign="middle" bgcolor="#c0c0c0" cellpadding="8">
<tr>
<td> Non Visual Component</td>
</tr>
</table>
</td>
</tr>
<tr valign="center">
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">
<p><b>Description</b> <br>
FormConditional is a variant of <a href="Conditional.html">Conditional</a>
designed to be used in a <a href="Form.html">Form</a>, similar to
the relationship between <a href="Foreach.html">Foreach</a> and
<a href="ListEdit.html">ListEdit</a>. It is used to guarantee that
the data will be the same during rendering and rewind when a form
is submitted avoiding a stale link.<br>
On render, FormConditional reads condition parameter, stores it
into a hidden field, and could render or not according to condition
value. On rewind, the FormConditional ignores condition parameter,
reads the stored value, and could render or not matching previous
render.</p>
</td>
</tr>
<tr>
<td colspan="2">
<b>See Also</b>
<br>
<A href="Conditional.html">Conditional</a>,
<A href="Form.html">Form</a>
</td>
</tr>
<tr>
<td colspan="2">
<b>Parameters</b>
<br>
<table border="1" cellpadding="4" cellspacing="4" class="parameters">
<tr>
<th>Name</th>
<th>Type</th>
<th>Direction</th>
<th>Required</th>
<th>Default</th>
<th>Description</th>
</tr>
<tr>
<td>condition</td>
<td>boolean</td>
<td>in</td>
<td>yes</td>
<td> </td>
<td>The condition to evaluate.</td>
</tr>
<tr>
<td>element</td>
<td>String</td>
<td>in</td>
<td>no</td>
<td> </td>
<td>The element to emulate.</td>
</tr>
<tr>
<td>listener</td>
<td>String</td>
<td>in</td>
<td>no</td>
<td> </td>
<td>The listener, informed <u></u>at render.</td>
</tr>
<tr>
<td>conditionValue</td>
<td>boolean</td>
<td>custom</td>
<td>no</td>
<td> </td>
<td>The value of the condition. During render this is obtained
from the condition parameter. During rewind it is the submitted
condition.</td>
</tr>
</table>
<p> Body: <strong>rendered</strong><br>
Informal parameters: <strong>allowed</strong><br>
Reserved parameters: invert</p>
</td>
</tr>
<tr>
<td colspan="2">
<b>Examples</b>
<p>
This example is under construction.
</p>
</td></tr></table>
</td></tr>
<tr>
<td colspan="3"><hr></td>
</tr>
<tr>
<!-- Previous component in alphabetical order. -->
<td align="left"><a href="contrib.Choose.html"><img alt="contrib:Choose" src="common-images/prev.png"></a></td>
<td align="middle"><a href="index.html"><img alt="Component Index" src="common-images/home.png" ></a></td>
<!-- Next component in alphabetical order. -->
<td align="right"><a href="contrib.FormTable.html"><img alt="contrib:FormTable" src="common-images/next.png"></a></td>
</tr>
</table>
</body>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org