Hi, you can add immediate="true" to your tr:commandButton. That's the way i solved that problem...
David > Hi, > > > > I have a tr:inputText field, which can only be numeric and max 7 in > length, and a required field: > > > > <tr:inputText maximumLength="7" label="#{bundle.test}" required="true" > value="#{bean.test}"> > > <tr:convertNumber type="number"/> > > </tr:inputText> > > > > I had a tr:resetButton to reset values entered, but this only resets > values prior to post, so if the values are stored in a bean, then the > tr:resetButton does not work after the post. I have got around this by > using a tr:commandButton, wiring it to a bean method, and resetting the > values there. All is fine. > > > > But, if I select the command button to reset the form values in the > bean, and the tr:inputText field is required with no value inputted, > this always fails the client side required-field validation, so I cannot > reset my bean value on the input field. Is there a way to get around > this in Trinidad? Or an alternative? > > > > Regards, > > Darren. > > P Please consider the environment before printing this email > _________________________________________________________ > > 1. The information contained in this E-mail, including any files > transmitted with it, is confidential and may be legally privileged. This > E-mail is intended only for the personal attention of the stated > addressee(s). Any access to this E-mail, including any files transmitted > with it, by any other person is unauthorised. If you are not an addressee, > you must not disclose, copy, circulate or in any other way use or rely on > the information contained in this E-mail or any files transmitted with it. > Such unauthorised use may be unlawful. If you have received this E-mail in > error, please inform the sender immediately and delete it and all copies > from your system. You may not forward this E-mail without the permission > of the sender. > > 2. The views expressed in this E-mail are those of the author, and do not > necessarily represent the views of AMT-SYBEX. Internet communications are > not secure and AMT-SYBEX cannot, therefore, accept legal responsibility > for the contents of this message nor for any damage caused by viruses. > > AMT-SYBEX Limited is a UK company, registration number GB03036807 at > address The Spirella Building, Bridge Road, Letchworth, SG6 4ET. > AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at > address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ. > For more information on the AMT-SYBEX Group visit http://www.amt-sybex.com > _________________________________________________________ > -- David Uebelacker mailto:[EMAIL PROTECTED] http://david.uebelacker.eu/