No, I only throw them if input was incorrect. i.e. checkbox not checked and
it's required (using validators:required), or the pulldown value selected
was equal to the "noSelectionValue" (see ValidPropertySelection source code
in link below).
example:
<component id="someSelection" type="ValidPropertySelection">
<binding name="value" value="foo"/>
<binding name="model" value="barList"/>
<binding name="validators" value="validators:required"/>
<binding name="displayName" value="literal:some selection"/>
<binding name="noSelectionValue" value="literal:[Choose a value]"/>
</component>
When ever a user chooses the "noSelectionValue" which is the default, it's
recorded in the validation delegate.
Is this what you're going for?
----- Original Message -----
From: "Christian Mittendorf" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Tuesday, January 31, 2006 4:56 PM
Subject: Re: Using fieldTrackings
That might be a solution: do ValidPropertySelection and ValidCheckbox
record their input values to the ValidationDelegate in any case, even if
no error occured?
Am 01.02.2006 um 01:44 schrieb Daniel Lydiard:
I was actually using the ValidPropertySelection and ValidCheckbox in my
T3 code (http://issues.apache.org/bugzilla/show_bug.cgi? id=29535) and
ported it over to T4. I basically took the existing T4 source for
PropertySelection/Checkbox and added in the code to work with
ValidationDelegate (by throwing ValidatorException in
rewindFormComponent()). It was pretty straight forward.
Is this what you were going for?
----- Original Message ----- From: "Christian Mittendorf"
<[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Tuesday, January 31, 2006 4:34 PM
Subject: Re: Using fieldTrackings
Am 01.02.2006 um 01:20 schrieb Jesse Kuhnert:
Hmmm...I know the tapestry workbench demo application has a sample
"ShowErrors" sort of component for this.
Ok, I think I'll have to check it.
The biggest reason I suggested the ValidationDelegate approach is
because
you're guaranteed to get every fields value and error written out
properly
as everything is passed in as a paramter to you.
Are you sure that this approach is also working with
PropertySelection or
Checkboxes?
Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]