I have made a Q in Tap so if anyone is willing to help thank you! 

http://stackoverflow.com/questions/26547184/assigning-passing-value-from-java-function-to-js-jquery-function

> From: wintertime0...@outlook.com
> To: users@tapestry.apache.org
> Subject: RE: Putting property values in Validate
> Date: Fri, 24 Oct 2014 12:53:22 +0100
> 
> Hello, I have searched for Tap documentation and found out FieldValidator 
> would serve my cause.
> 
> I have done following:
> 
>   @InjectComponent
>     private TextField brojPolja;
>     @Inject
>     private FieldValidatorSource fieldValidatorSource;
> 
>     public FieldValidator<?> getBrojValidator() 
>      {
>         return fieldValidatorSource.createValidators(brojPolja, 
> "required,min=" + getBroj());
>     }
> 
> and in my tml code
> 
> <input class="form-control" validate="prop:brojValidator"   
> t:type="TextField" value="tiketProdajaKolicina" t:id="brojPolja">
> 
> However I don't get any result from it, value can be any, but I have made it 
> clear to follow logic from getBroj() function? What may be the cause to it?
> 
> > From: wintertime0...@outlook.com
> > To: users@tapestry.apache.org
> > Subject: Putting property values in Validate
> > Date: Fri, 24 Oct 2014 01:48:50 +0100
> > 
> > Lets say I have an input field with validation parameter something like
> > 
> > 
> > <input validate="max=${number}">
> > 
> > 
> > and in my Java code I have a public function
> > 
> > getNumber(){
> > 
> > }
> > 
> > 
> > Now is it possible to manipulate with Validation like this and how can I 
> > achieve it?
> >                                       
>                                         
                                          

Reply via email to