That should work and you will get a validation error, the only problem
is that it won't show up on the xhtml theme, so you will have to use
<s:fielderrors />

musachy

On 10/23/07, chengas123 <[EMAIL PROTECTED]> wrote:
>
> Does anyone have any ideas on how the dojo ajax tags can be validated
> (autocompleter, datetimepicker, etc.)?  I was told this was fixed in 2.1,
> which I am using, but I cannot get it to work.  I'd like to make my
> autocompleter required and have it validate the same as my other fields.
> Can I validate its key?  What I'd really like to do is have the following
> autocompleter:
>         <sx:autocompleter label="Site" value="%{system.site.name}"
>                 forceValidOption="true"
>                 cssStyle="width:132px; height:18px; border:1px solid #7B9EBD"
>                 name="site" required="true" href="%{siteList}"
>                 loadOnTextChange="true" showDownArrow="false" 
> dropdownWidth="300"
>                 searchType="substring" />
>
> And then have this in my validation file:
>   <field name="siteKey">
>     <field-validator type="requiredstring">
>       <message>Field is required</message>
>     </field-validator>
>   </field>
>
> --
> View this message in context: 
> http://www.nabble.com/Validation-of-Ajax-Tags-tf4680440.html#a13373975
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to