Néstor,

Wow, I didn't know that existed, thanks for the link. Since it's not a
standard Struts attribute, here's a couple of ideas:
- creating a custom tag library that extends the standard HTML tag lib
and tld, but this seems like overkill.
- If you want to turn autocomplete on for every text field, you could
create a filter that added the attribute for every page that's sent
too, but it sounds like a lot of work and there could be performance
problems.
- You could create a javascript function that would go through a
page's DOM, getting all elements of type text and loop through them,
enabling this attribute for each one. You could then call this
function in the <body onload=> attribute.

These are just off the top of my head, there's probably better and/or
more efficient ways of doing this.

-ed

On 6/21/05, Néstor Boscán <[EMAIL PROTECTED]> wrote:
> Hi
> 
> Thanks for the quick reply.
> 
> If the client has the autocomplete turned on you can control with Internet
> Explorer which forms or input fields can apply the autocomplete feature with
> the autocomplete attribute (Check
> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/forms/aut
> ocomplete_ovr.asp). My question is how can I set this attribute in a
> <html:form> or <html:text> tag if it doesn't have this attribute.
> 
> Regards,
> 
> Néstor Boscán
> 
> -----Mensaje original-----
> De: Ed Griebel [mailto:[EMAIL PROTECTED]
> Enviado el: Tuesday, June 21, 2005 3:48 PM
> Para: Struts Users Mailing List
> Asunto: Re: How to set "autocomplete" attribute in <html:form>
> 
> Hello!
> 
> This question was asked about a month or two ago on this list. To summarize,
> it's dependant on a setting in the client browser and depends on a user's
> entries into a field with the same name on prior form submissions. It is not
> controllable on a HTML form nor field tag.
> Google does something like autocomplete by using XmlHttpRequest, a.k.a.
> AJAX, and Frank Zametti has written a library which integrates AJAX and
> Struts.
> 
> -ed
> 
> On 6/21/05, Néstor Boscán <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > How do I set the "autocomplete" attribute in the html:form tag.
> >
> > Regards,
> >
> > Néstor Boscán
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
>

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

Reply via email to