I just created a page Template
<t:layout xmlns:t='http://tapestry.apache.org/schema/tapestry_5_3.xsd'> <form action='' t:id="addToShoppingCartForm" t:type="form"> <t:errors/> <t:label for="productAmount"/> <input t:id="productAmount" t:validate="required,regexp,min=1" t:type="textField" size="3" t:value='email' style="ime-mode:disabled;"/> <input type="submit" value="${message:add.to.shopping.cart}"/> </form> </t:layout> Java Page import org.apache.tapestry5.annotations.Property; public class TestPage { @Property private String email; } Properties file productAmount-regexp=^[1-9][0-9]* and it works :) regards Taha On May 18, 2012, at 2:24 PM, Fight Ice wrote: >>> <form t:id="addToShoppingCartForm" t:type="form"> >>> <t:label for="productAmount"/><input t:id="productAmount" >>> t:validate="required,regexp,min=1" t:type="textField" size="3" >>> style="ime-mode:disabled;"/> >>> <t:textField t:id="itemId" style="display:none;"/> >>> <input type="submit" value="${message:add.to.shopping.cart}"/> >>> </form> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org