You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ilya Obshadko <il...@gmail.com> on 2014/05/29 18:59:33 UTC

[T5.4] autocomplete mixin issues

Just started to migrate my autocomplete-based controls to 5.4.

Several issues I've discovered immediately:

- list presentation it is no longer configurable, like it was in 5.3.x
version
- the mixin itself heavily modifies markup (in fact it breaks form styling
completely)

I guess the best option is to create my own typeahead.js-based mixin
instead of default one?
(That's not very difficult anyway)

Any other suggestions?

-- 
Ilya Obshadko

Re: [T5.4] autocomplete mixin issues

Posted by Ilya Obshadko <il...@gmail.com>.
I'm using jQuery. If fact I have already completed a replacement component
which does exactly what's needed.

I have a kind of specific case which cannot be covered by a mixin. But I
would like to point out that there are several issues with Typeahead &
Bootstrap CSS compatibility. You might want to check
https://github.com/twitter/typeahead.js/issues/378 and related fiddle
http://jsfiddle.net/kuroe/qrtua/14/

I have used CSS from the latter and it (almost) fixes my problem. There's
still an issue with Bootstrap input add-on which receives incorrect size
after Typeahead initialization, but that's not a critical issue for me
right now.

BTW, it might be a good idea to use Typeahead bundled with Bloodhound
engine (like Twitter guys recommend). It gives a lot of flexibility.



On Fri, May 30, 2014 at 7:45 PM, Thiago H de Paula Figueiredo <
thiagohp@gmail.com> wrote:

> Are you using the jQuery or Prototype infrastructure in your 5.4 projects?
> If Prototype, I'd just copy the 5.3.x Autocomplete and use it.
>
>
> On Thu, 29 May 2014 13:59:33 -0300, Ilya Obshadko <il...@gmail.com>
> wrote:
>
>  Just started to migrate my autocomplete-based controls to 5.4.
>>
>> Several issues I've discovered immediately:
>>
>> - list presentation it is no longer configurable, like it was in 5.3.x
>> version
>> - the mixin itself heavily modifies markup (in fact it breaks form styling
>> completely)
>>
>> I guess the best option is to create my own typeahead.js-based mixin
>> instead of default one?
>> (That's not very difficult anyway)
>>
>> Any other suggestions?
>>
>>
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Ilya Obshadko

Re: [T5.4] autocomplete mixin issues

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
Are you using the jQuery or Prototype infrastructure in your 5.4 projects?  
If Prototype, I'd just copy the 5.3.x Autocomplete and use it.

On Thu, 29 May 2014 13:59:33 -0300, Ilya Obshadko  
<il...@gmail.com> wrote:

> Just started to migrate my autocomplete-based controls to 5.4.
>
> Several issues I've discovered immediately:
>
> - list presentation it is no longer configurable, like it was in 5.3.x
> version
> - the mixin itself heavily modifies markup (in fact it breaks form  
> styling
> completely)
>
> I guess the best option is to create my own typeahead.js-based mixin
> instead of default one?
> (That's not very difficult anyway)
>
> Any other suggestions?
>


-- 
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org