You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tomas KRAMAR <kr...@gmail.com> on 2007/07/10 15:16:50 UTC

[1.3.8] input autocomplete="off"

Hi folks,
I need to turn off the autocompletion feature on a html text input. I am
using my own ajax autocompletion, but the default autocompletion interferes
with mine. I have read, that struts taglib does not support this, as it is
not part of HTML specification. It it is a worthwhile trade for me, because
my autocompletion is now unusable.
I have read that struts provides some hooks to change the default behaviour,
but couldnt' find something more specific. I dont feel like modifying struts
tlds and taglibs. Can you guys give me some hint how to add
autocomplete="off" support? It seems to me like a common request, and I
dont't want to reinvent the wheel.

Thanks in advance.

-- 
Tomas Kramar

Re: [1.3.8] input autocomplete="off"

Posted by Niall Pemberton <ni...@gmail.com>.
On 7/11/07, Tomas KRAMAR <kr...@gmail.com> wrote:
> This seems like exactly what I need, but I just can't figure out how to use
> it. My search in google showed nothing. I was hoping to find some
> configuration file inside struts-taglib.jar, but nothing too.
> Could you point me to the right direction?

There is nothing else - you have to create your own custom tag
implementation(s) (with tlds) with the code for any your new
attributes - it just provides a method that implementations can
override at an appropriate point so that all you need are the
getters/setters for your new attribute(s) and the logic to render the
attribute in that method.

Niall

> 2007/7/10, Niall Pemberton <ni...@gmail.com>:
> >
> > On 7/10/07, Tomas KRAMAR <kr...@gmail.com> wrote:
> > > Hi folks,
> > > I need to turn off the autocompletion feature on a html text input. I am
> > > using my own ajax autocompletion, but the default autocompletion
> > interferes
> > > with mine. I have read, that struts taglib does not support this, as it
> > is
> > > not part of HTML specification. It it is a worthwhile trade for me,
> > because
> > > my autocompletion is now unusable.
> > > I have read that struts provides some hooks to change the default
> > behaviour,
> > > but couldnt' find something more specific. I dont feel like modifying
> > struts
> > > tlds and taglibs. Can you guys give me some hint how to add
> > > autocomplete="off" support? It seems to me like a common request, and I
> > > dont't want to reinvent the wheel.
> >
> > The "hooks" are methods in the tags where custom attributes can be
> > added - which is the only mechanism provided:
> >
> > http://tinyurl.com/3ydoop
> >
> > Niall
> >
> > > Thanks in advance.
> > >
> > > --
> > > Tomas Kramar

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [1.3.8] input autocomplete="off"

Posted by Tomas KRAMAR <kr...@gmail.com>.
This seems like exactly what I need, but I just can't figure out how to use
it. My search in google showed nothing. I was hoping to find some
configuration file inside struts-taglib.jar, but nothing too.
Could you point me to the right direction?

2007/7/10, Niall Pemberton <ni...@gmail.com>:
>
> On 7/10/07, Tomas KRAMAR <kr...@gmail.com> wrote:
> > Hi folks,
> > I need to turn off the autocompletion feature on a html text input. I am
> > using my own ajax autocompletion, but the default autocompletion
> interferes
> > with mine. I have read, that struts taglib does not support this, as it
> is
> > not part of HTML specification. It it is a worthwhile trade for me,
> because
> > my autocompletion is now unusable.
> > I have read that struts provides some hooks to change the default
> behaviour,
> > but couldnt' find something more specific. I dont feel like modifying
> struts
> > tlds and taglibs. Can you guys give me some hint how to add
> > autocomplete="off" support? It seems to me like a common request, and I
> > dont't want to reinvent the wheel.
>
> The "hooks" are methods in the tags where custom attributes can be
> added - which is the only mechanism provided:
>
> http://tinyurl.com/3ydoop
>
> Niall
>
> > Thanks in advance.
> >
> > --
> > Tomas Kramar
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Tomas Kramar

Re: [1.3.8] input autocomplete="off"

Posted by Niall Pemberton <ni...@gmail.com>.
On 7/10/07, Tomas KRAMAR <kr...@gmail.com> wrote:
> Hi folks,
> I need to turn off the autocompletion feature on a html text input. I am
> using my own ajax autocompletion, but the default autocompletion interferes
> with mine. I have read, that struts taglib does not support this, as it is
> not part of HTML specification. It it is a worthwhile trade for me, because
> my autocompletion is now unusable.
> I have read that struts provides some hooks to change the default behaviour,
> but couldnt' find something more specific. I dont feel like modifying struts
> tlds and taglibs. Can you guys give me some hint how to add
> autocomplete="off" support? It seems to me like a common request, and I
> dont't want to reinvent the wheel.

The "hooks" are methods in the tags where custom attributes can be
added - which is the only mechanism provided:

http://tinyurl.com/3ydoop

Niall

> Thanks in advance.
>
> --
> Tomas Kramar

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org