>From: "Iakouchev Alexander-EAL027C" <[EMAIL PROTECTED]> 
>
> 
> 
> I have a question. 
> 
> Is this possible to pass dynamically information from a beans as a shale 
> method parameter? 
> 
> The main idea is - I need to know about bean Ids then valuator invoked. 
> 
> 
> 
> Solution, like below does not works. 
> 
><s:commonsValidator type="validateQuoteHoursValue" 
>arg="#{mtJobOperation.operationID}" server="true"
>client="false"/>
> 
> 
> 
> ,or something like this... 
> 
><s:commonsValidator
>  type="validateQuoteHoursValue"
>  arg="QuoteHours"
>  min="#{mtJobOperation.operationID}"
>  server="true"
>  client="false"
>/>
>
> 
> 
Yes, this should work.  The CommonsValidatorTag uses a utility class to 
evaluate the attribtues before passing them on to the validator.   This is done 
in the createValidator method of the CommonsValidatorTag.
http://svn.apache.org/viewvc/shale/trunk/shale-core/src/main/java/org/apache/shale/taglib/CommonsValidatorTag.java?view=markup
http://svn.apache.org/viewvc/shale/trunk/shale-core/src/main/java/org/apache/shale/util/Tags.java?view=markup

> 
> Alex Yakushev. 
> 

Gary

> 
> 
> 

Reply via email to