Nobody else want to do such kind of things?I dont think what i am trying to achieve is something special.There must be a way
On Sat, Apr 28, 2012 at 12:59 AM, Dimitris Zenios <dimitris.zen...@gmail.com> wrote: > Anyone? > > On Fri, Apr 27, 2012 at 9:04 PM, Dimitris Zenios > <dimitris.zen...@gmail.com> wrote: >> Ok let me explain the problem. >> >> I am following >> http://tawus.wordpress.com/2011/08/01/tapestry-mixins-classtransformations/ >> page in order to add an asterisk(*) in all labels that have a filed of >> required.The main problem though is that even though the field has the >> isRequired method to tell me if its required,it does not apply when >> using javax.validations and NotNull with tapestry-bean-validation.The >> only way i can think of that fixes this problem right now is to check >> manually what validators are attached on the field and decide from >> there what you can do.Even though the isRequired method is good i >> think it will be better to also know what validators are currently >> attached to the Field >> >> Regards >> Dimitris Zenios >> >> On Fri, Apr 27, 2012 at 8:08 PM, Thiago H. de Paula Figueiredo >> <thiag...@gmail.com> wrote: >>> On Fri, 27 Apr 2012 12:09:56 -0300, Dimitris Zenios >>> <dimitris.zen...@gmail.com> wrote: >>> >>>> How can i find what validators are attached on a field? >>> >>> >>> Unless you've set the validators yourself (validate parameter of many form >>> field components), the ones that are attached automatically can be checked >>> by putting a breakpoint at the createDefaultValidator() method of >>> FieldValidatorDefaultSourceImpl. >>> >>> -- >>> Thiago H. de Paula Figueiredo >>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and >>> instructor >>> Owner, Ars Machina Tecnologia da Informação Ltda. >>> http://www.arsmachina.com.br --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org