there is no need for pragmatic control on this. how often does this
need to be under pragmatic control? a textfield is either autocomplete
or not.
further, in order not to add state for something used for 1% usecase
this would have to be an overridable method such as
isBrowserAutocompleteEnabled() { return true; } which the user would
have to override to return false -- at which point you might as well
create a simple subclass.
-igor
On Wed, Nov 12, 2008 at 2:23 PM, Bruno Borges <[EMAIL PROTECTED]> wrote:
> Looks like I've changed my opinion after that...
>
> +1
>
>
> Bruno Borges
> blog.brunoborges.com.br
> +55 21 76727099
>
> "The glory of great men should always be
> measured by the means they have used to
> acquire it."
> - Francois de La Rochefoucauld
>
>
> On Wed, Nov 12, 2008 at 8:03 PM, Jörn Zaefferer <
> [EMAIL PROTECTED]> wrote:
>
>> Its part of html5:
>> http://www.w3.org/html/wg/html5/#the-autocomplete-attribute
>> And every major browser already supports it.
>>
>> Jörn
>>
>> On Wed, Nov 12, 2008 at 8:44 PM, <[EMAIL PROTECTED]> wrote:
>> >> I'm having a tough time imagining why you'd want this under programmatic
>> >
>> > control.
>> >
>> > For dynamic user preferences.
>> >
>> > But your argument about this attribute not being part of HTML spec is
>> > reasonable.
>> >
>> > So, -1 for this... :-)
>> >
>> > Bruno
>> >
>> > On Nov 12, 2008 4:28pm, John Krasnay <[EMAIL PROTECTED]> wrote:
>> >>
>> >> -1 for me. Why should we give special attention to this one particular
>> >>
>> >> attribute and not others, especially considering the autocomplete
>> >>
>> >> attribute isn't even in the HTML spec?
>> >>
>> >>
>> >>
>> >> Besides, for the times I've needed it I just put the attribute right
>> >>
>> >> in the HTML. I'm having a tough time imagining why you'd want this under
>> >>
>> >> programmatic control.
>> >>
>> >>
>> >>
>> >> jk
>> >>
>> >>
>> >>
>> >> On Wed, Nov 12, 2008 at 09:18:18AM -0800, [EMAIL PROTECTED] wrote:
>> >>
>> >> > Does anybody else thinks this is an interesting feature to be added?
>> If
>> >>
>> >> > yes, I will submit a patch.
>> >>
>> >> >
>> >>
>> >> > Thanks,
>> >>
>> >> > Bruno
>> >>
>> >> >
>> >>
>> >> > On Nov 12, 2008 11:21am, James Carman wrote:
>> >>
>> >> > >Ahhhh, sorry.
>> >>
>> >> > >
>> >>
>> >> > >
>> >>
>> >> > >
>> >>
>> >> > >On Wed, Nov 12, 2008 at 8:16 AM, wrote:
>> >>
>> >> > >
>> >>
>> >> > >> That's for Ajax...
>> >>
>> >> > >
>> >>
>> >> > >>
>> >>
>> >> > >
>> >>
>> >> > >> I'm talking about the attribute 'autocomplete' that browsers handle
>> >
>> > by
>> >>
>> >> > >
>> >>
>> >> > >> themselves.
>> >>
>> >> > >
>> >>
>> >> > >>
>> >>
>> >> > >
>> >>
>> >> > >>
>> >>
>> >> > >
>> >>
>> >> > >>
>> >>
>> >> > >
>> >>
>> >> > >> On Nov 12, 2008 11:11am, James Carman wrote:
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>> Have you tried using AutoCompleteTextField?
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>> On Wed, Nov 12, 2008 at 8:08 AM, wrote:
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>> > I'm finding myself coding the same code over and over, on
>> >
>> > different
>> >>
>> >> > >
>> >>
>> >> > >>
>> >>
>> >> > >
>> >>
>> >> > >> projects
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>> > (for different customers), having to provide a subclass of
>> >
>> > TextField
>> >>
>> >> > >
>> >>
>> >> > >>
>> >>
>> >> > >
>> >>
>> >> > >> with an
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>> > option to setAutocomplete(boolean) where it will add(or not) the
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>> > 'autocomplete' tag for during the componentTag method -
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>> > saving from creating an instance of AttributeModifier
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>> >
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>> > What about adding that to TextField?
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>> >
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>> > Regards,
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>> > Bruno
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>> >
>> >>
>> >> > >
>> >>
>> >> > >>>
>> >>
>> >> > >
>> >>
>> >> > >>
>> >>
>> >> > >
>> >>
>> >
>>
>