First question: Is it possible to get the for in a label component from the
pagename.properties file? like this:

<td> <t:label for="message:title-label" />:</td>

<t:textfield t:id="message:title-label" value="product.title"
t:validate="required" />

Because I get the following Exception:

Failure reading parameter for of component product/View:label

Could not find a coercion from type java.lang.String to type
org.apache.tapestry.Field.

The product object is located in the tapestry.data package

Second question:

How do I customize the error messages of the textfield, because it has a
t:validate="required" what kind of label do I have to add in the
pagename.properties file?

I want to change both the "You must correct the following errors before you
may continue." message and the "must provide a value for Title" message.

Reply via email to