A quick look at your code and I see that you missing the % before your message 
in the validators:
 
bad:
    <input jwcid="[EMAIL PROTECTED]" value="ognl:glueSyringe.name"
displayName="Name" validators="validators:minLength=15[Sorbole]"/>
 
good:
    <input jwcid="[EMAIL PROTECTED]" value="ognl:glueSyringe.name"
displayName="Name" validators="validators:minLength=15[%Sorbole]"/>

 
Good luck !
 
Carl Pelletier

----- Original Message ----
From: marcopar <[EMAIL PROTECTED]>
To: users@tapestry.apache.org
Sent: Tuesday, May 23, 2006 11:32:48 AM
Subject: about validation error messages


Hi, i'm following the EnjoyWebDevWithTapestry book and i'm trying to
display error messages coming from the validators. The only difference is
that i'm trying to do it without using .page files.

- First of all i want to say that i still not had understood clearly the
notation for passing parameters to the components, for example:
<form jwcid="[EMAIL PROTECTED]" success="doSubmit"> IS GOOD
and
<form jwcid="[EMAIL PROTECTED]" success="listener:doSubmit"> IS GOOD TOO
and
<label jwcid="@FieldLabel" field="component:name">Name</label> IS GOOD
but
<label jwcid="@FieldLabel" field="name">Name</label> IS NOT GOOD

i can't actually understand what is the correct syntax in all cases

- Now with the error messages problem:
the relevant HTML stuff is:
<form jwcid="[EMAIL PROTECTED]" success="doSubmit" delegate="beans.delegate">
<input jwcid="[EMAIL PROTECTED]" value="ognl:pid"/>
<span jwcid="@Delegator" delegate="beans.delegate.firstError"></span>
<table border="1" cellspacing="1" cellpadding="2">
<tbody>
<tr>
<td><label jwcid="@FieldLabel" field="component:name">Name</label></td>
<td><input jwcid="[EMAIL PROTECTED]" value="ognl:glueSyringe.name"
displayName="Name" validators="validators:minLength=15[Sorbole]"/></td>
</tr>

the relevant JAVA stuff is:
@Bean
public abstract ValidationDelegate getDelegate();

on the @Form line i get the error:
Error converting value for template parameter delegate: No type converter
for type org.apache.tapestry.valid.IValidationDelegate is available.



ciao


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

Reply via email to