Hello,
� I've been reading through chapter 11 in Chuck's book dealing with the 
validator and I have a couple of questions about example 11-1 (things I 
don't get) that maybe someone knows off the top of their head. 
Hopefully my questions aren't too obvious!

�First, what exactly are the arg0 elements used for? From the 
description I gather that they are used to pass in values for the error 
message ( �'{0} is not found' etc.) - right? If that is the case, does 
arg0 correspond to "required" and arg1 to "mask" - this is TOTALLY a 
guess.
�For the arg1, how does the ${var:minlength} thing work?
�Second, according to the book, the var element is used to pass 
information to a validation method- where does ${zip} come from? Why 
are ${} used?

Other question, does "postalCode" correspond to a field on the actual 
html form?

<formset>
� � � � <form name="checkoutForm">
� � � � � � � � <field property="postalCode" depends="required,mask">
� � � � � � � � � � � � <arg0 
key="registrationForm.firstname.displayname"/>
� � � � � � � � � � � � <arg1 name="minlength" key="${var:minlength}" 
resource="false"/>
� � � � � � � � � � � � <var>
� � � � � � � � � � � � � � � � <var-name>mask</var-name>
� � � � � � � � � � � � � � � � <var-value>${zip}</var-value>
� � � � � � � � � � � � </var>
� � � � � � � � </field
� � � � </form>
</formset>

-Thanks,
� Ryan

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to