You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2008/02/06 18:05:21 UTC
svn commit: r619074 - in /tapestry/tapestry5/trunk/tapestry-core/src/main:
java/org/apache/tapestry/corelib/components/
java/org/apache/tapestry/corelib/pages/
resources/org/apache/tapestry/corelib/components/
Author: hlship
Date: Wed Feb 6 09:05:08 2008
New Revision: 619074
URL: http://svn.apache.org/viewvc?rev=619074&view=rev
Log:
TAPESTRY-2076: Component report should break out as one class per page and include examples
Added:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/ActionLink.xdoc
- copied unchanged from r617192, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/ActionLink.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/BeanDisplay.xdoc
- copied unchanged from r618751, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/BeanDisplay.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/BeanEditForm.xdoc
- copied unchanged from r618505, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/BeanEditForm.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/BeanEditor.xdoc
- copied unchanged from r618505, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/BeanEditor.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Checkbox.xdoc
- copied unchanged from r617192, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Checkbox.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/DateField.xdoc
- copied unchanged from r618505, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/DateField.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Delegate.xdoc
- copied unchanged from r617192, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Delegate.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Errors.xdoc
- copied unchanged from r617192, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Errors.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/EventLink.xdoc
- copied unchanged from r617192, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/EventLink.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Form.xdoc
- copied unchanged from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Form.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Grid.xdoc
- copied unchanged from r618751, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Grid.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/If.xdoc
- copied unchanged from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/If.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Label.xdoc
- copied unchanged from r617192, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Label.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Loop.xdoc
- copied, changed from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Loop.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/PageLink.xdoc
- copied unchanged from r618751, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/PageLink.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Palette.xdoc
- copied, changed from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Palette.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/PasswordField.xdoc
- copied unchanged from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/PasswordField.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Radio.xdoc
- copied unchanged from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Radio.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/RadioGroup.xdoc
- copied unchanged from r618505, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/RadioGroup.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Select.xdoc
- copied, changed from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Select.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Submit.xdoc
- copied unchanged from r617192, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Submit.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/TextArea.xdoc
- copied unchanged from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/TextArea.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/TextField.xdoc
- copied, changed from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/TextField.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/TextOutput.xdoc
- copied unchanged from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/TextOutput.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/beandisplay_ref.png
- copied unchanged from r618505, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/beandisplay_ref.png
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/beaneditform_ref_customized.png
- copied unchanged from r618379, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/beaneditform_ref_customized.png
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/beaneditform_ref_simple.png
- copied unchanged from r618379, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/beaneditform_ref_simple.png
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/beaneditform_ref_validation1.png
- copied unchanged from r618379, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/beaneditform_ref_validation1.png
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/beaneditform_ref_validation2.png
- copied unchanged from r618379, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/beaneditform_ref_validation2.png
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/datefield_ref1.png
- copied unchanged from r618505, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/datefield_ref1.png
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/datefield_ref2.png
- copied unchanged from r618505, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/datefield_ref2.png
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/grid_ref1.png
- copied unchanged from r618505, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/grid_ref1.png
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/grid_ref2.png
- copied unchanged from r618505, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/grid_ref2.png
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/palette_ref.png
- copied unchanged from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/palette_ref.png
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/radio_ref.png
- copied unchanged from r618505, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/radio_ref.png
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/select_ref1.png
- copied unchanged from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/select_ref1.png
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/select_ref2.png
- copied unchanged from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/select_ref2.png
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/textfield_ref.png
- copied unchanged from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/textfield_ref.png
Removed:
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/ActionLink.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/BeanDisplay.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/BeanEditForm.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/BeanEditor.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Checkbox.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/DateField.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Delegate.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Errors.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/EventLink.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Form.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Grid.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/If.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Label.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Loop.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/PageLink.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Palette.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/PasswordField.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Radio.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/RadioGroup.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Select.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Submit.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/TextArea.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/TextField.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/TextOutput.xdoc
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/beandisplay_ref.png
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/beaneditform_ref_customized.png
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/beaneditform_ref_simple.png
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/beaneditform_ref_validation1.png
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/beaneditform_ref_validation2.png
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/datefield_ref1.png
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/datefield_ref2.png
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/grid_ref1.png
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/grid_ref2.png
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/palette_ref.png
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/radio_ref.png
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/select_ref1.png
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/select_ref2.png
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/textfield_ref.png
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/pages/ExceptionReport.java
Copied: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Loop.xdoc (from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Loop.xdoc)
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Loop.xdoc?p2=tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Loop.xdoc&p1=tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Loop.xdoc&r1=618850&r2=619074&rev=619074&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Loop.xdoc (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Loop.xdoc Wed Feb 6 09:05:08 2008
@@ -29,7 +29,6 @@
</p>
-
</subsection>
Copied: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Palette.xdoc (from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Palette.xdoc)
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Palette.xdoc?p2=tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Palette.xdoc&p1=tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Palette.xdoc&r1=618850&r2=619074&rev=619074&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Palette.xdoc (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Palette.xdoc Wed Feb 6 09:05:08 2008
@@ -141,7 +141,7 @@
<p>
The Palette can be further customized through a mix of CSS and by replacing the images
- used for its various buttons.Ã
+ used for its various buttons.
</p>
</section>
</body>
Copied: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Select.xdoc (from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Select.xdoc)
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Select.xdoc?p2=tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Select.xdoc&p1=tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Select.xdoc&r1=618850&r2=619074&rev=619074&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/Select.xdoc (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Select.xdoc Wed Feb 6 09:05:08 2008
@@ -35,17 +35,17 @@
</p>
<p>
- Here the label displayed to the user is the same as the value used to update the property, but that doesn't
- have to be the case. By specifying a value and a label, we can control the server side value without
+ Here the label displayed to the user is the same as the value used to update the property, but that
+ doesn't
+ have to be the case. By specifying a value and a label, we can control the server side value without
changing how the UI appears to the user:
</p>
-<source>
-<![CDATA[
+ <source>
+ <![CDATA[
<t:select t:id="color" model="literal:FF0000=Red,00FF00=Green,0000FF=Blue"/>
]]>
-</source>
-
+ </source>
</subsection>
@@ -57,7 +57,9 @@
<p>Working with Enums is, amazingly, even easier (and more so than with the Radio component).</p>
<p>
- Most of this example is the same as for the <a href="Radio.html">Radio</a> component, except that
+ Most of this example is the same as for the
+ <a href="Radio.html">Radio</a>
+ component, except that
we're using a single Select component instead of multiple Radio components:
</p>
@@ -120,22 +122,27 @@
<subsection name="Payment.properties">
<p>
- Once again, we need to slightly customize Tapestry's guess at the label for the enum value DINERS_CLUB.
- In the Radio example, we overrode the label for the dinersClub <em>component</em>. Here there is just the Select component,
+ Once again, we need to slightly customize Tapestry's guess at the label for the enum value
+ DINERS_CLUB.
+ In the Radio example, we overrode the label for the dinersClub<em>component</em>. Here there is just
+ the Select component,
but we still have an option: override how the DINERS_CLUB enum value is displayed:
</p>
<source><![CDATA[DINERS_CLUB=Diner's Club]]></source>
- <p>Tapestry looks inside a component's message catalog for entries before "humanizing" the name. In the <em>very rare</em>
- event that there's a naming conflict, you may qualify the enum value with its class name:
- </p>
+ <p>Tapestry looks inside a component's message catalog for entries before "humanizing" the name. In the
+ <em>very rare</em>
+ event that there's a naming conflict, you may qualify the enum value with its class name:
+ </p>
<source><![CDATA[CardType.DINERS_CLUB=Diner's Club]]></source>
- <p>And, of course, all of this is case insensitive. The use of case here helps to identify how the values
- are to be used.</p>
+ <p>And, of course, all of this is case insensitive. The use of case here helps to identify how the
+ values
+ are to be used.
+ </p>
</subsection>
</section>
Copied: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/TextField.xdoc (from r618850, tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/TextField.xdoc)
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/TextField.xdoc?p2=tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/TextField.xdoc&p1=tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/TextField.xdoc&r1=618850&r2=619074&rev=619074&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/TextField.xdoc (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/TextField.xdoc Wed Feb 6 09:05:08 2008
@@ -2,9 +2,15 @@
<body>
<section name="Related Components">
<ul>
- <li><a href="Form.html">Form</a></li>
- <li><a href="PasswordField.html">PasswordField</a></li>
- <li><a href="TextArea.html">TextArea</a></li>
+ <li>
+ <a href="Form.html">Form</a>
+ </li>
+ <li>
+ <a href="PasswordField.html">PasswordField</a>
+ </li>
+ <li>
+ <a href="TextArea.html">TextArea</a>
+ </li>
</ul>
</section>
@@ -12,7 +18,9 @@
<p>
Once again, we're basing the example on the order payment screen
- from the <a href="Radio.html">Radio</a> examples. This time we're focusing in on
+ from the
+ <a href="Radio.html">Radio</a>
+ examples. This time we're focusing in on
the text field used for entering the credit card number, and we're going to validate
that number using a regular expression:
</p>
@@ -22,18 +30,18 @@
</p>
<subsection name="Payment.tml (partial)">
-<source><![CDATA[
+ <source><![CDATA[
<t:label for="cardNumber"/>:
<t:textfield t:id="cardNumber" validate="required,regexp" size="20"/>]]></source>
<p>
- The validate parameter is used to specify validations for the field. When it is omitted,
- the @Validate annotation of the property is used (if present). In any case, this references
+ The validate parameter is used to specify validations for the field. When it is omitted,
+ the @Validate annotation of the property is used (if present). In any case, this references
two of the built-in validations: "required" and "regexp".
</p>
<p>
- The "required" validation requires no extra configuration. On the other hand, "regexp"
+ The "required" validation requires no extra configuration. On the other hand, "regexp"
needs to know the regular expression to enforce ... and it should also have a
user presentable message.
</p>
@@ -42,15 +50,15 @@
<subsection name="Payment.properties (partial)">
-<source><![CDATA[
+ <source><![CDATA[
cardnumber-regexp-message=Credit Card numbers consist of 16 digits
cardnumber-regexp=\\d{4}(\\-?\\d{4}){3}]]></source>
<p>
Tapestry uses the page's message catalog as a source of extra validation information.
- The key is the component id, the name of the validation. The value is given to the validator
+ The key is the component id, the name of the validation. The value is given to the validator
object ... here it's the regular expression for a credit card number (four sets of four digits,
- optionally seperated by dashes). The "-message" entry allows the normal error message
+ optionally seperated by dashes). The "-message" entry allows the normal error message
for the validator to be overridden.
</p>
</subsection>
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/pages/ExceptionReport.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/pages/ExceptionReport.java?rev=619074&r1=619073&r2=619074&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/pages/ExceptionReport.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/pages/ExceptionReport.java Wed Feb 6 09:05:08 2008
@@ -29,7 +29,7 @@
/**
* Responsible for reporting runtime exceptions. This page is quite verbose and is usually overridden in a production
- * application.
+ * application. When {@link org.apache.tapestry.TapestryConstants#PRODUCTION_MODE_SYMBOL} is "true", it is very abbreviated.
*/
@Meta("tapestry.response-content-type=text/html")
public class ExceptionReport implements ExceptionReporter