got5 / tapestry5-jquery

Tapestry5-jquery module is focusing on overriding some core component like Datefield & providing a collections of jQuery components
Other
112 stars 69 forks source link

Autocomplete Multiselect Tag #107

Open ghost opened 12 years ago

ghost commented 12 years ago

Do you guys have any plans to create a multiselect similar to facebook? From what I can see, Jizmoz created an extension in JSFiggle, http://jsfiddle.net/sgxKJ/ . I'm not sure if that would help to create something sooner.

Features I think it should have. Single field tag Multi field tag with options for vertical or horizontal display. It would also need to except an object similar to most tapestry components so that it could be used as an alternative to a traditional select menu.

I'm more than willing to work on the project, however I'm still pretty new to jQuery.

thackel commented 12 years ago

There is an other project which allows this functionality for tapestry5:

https://github.com/argoyle/tapestry-tagselect/wiki

ghost commented 12 years ago

Yes, I'm aware of the project. I helped build it early on, but our company changed js frameworks a couple months ago and I didn't see the component available here. I have since rebuilt it for jquery, just not ready to be shared yet, still needs work.

znuamaan commented 12 years ago

chriman17, is the component you are referring to this by any chance? http://textextjs.com/ or you built one from scratch to work with tapestry5?

thackel commented 12 years ago

If you could share it, it would be great if you could include it into this project here. I am sick of the fragmentation of the component libraries for tapestry. Tapestry needs more components which are maintainted by a bigger community than streight shot projects of single people.

thackel commented 12 years ago

The integration of https://github.com/alexgorbatchev/jquery-textext would be a good start ;)

ghost commented 12 years ago

No it's not textextjs, however I must say textextjs is a much nicer version. I planned to donate my component to the community once I was able to get back to it and make it more generic. Our current project has been a bit of a rush, so I just quickly extended the jquery ui autocomplete component. After looking at Textextjs really quick, it might make better sense to use theirs instead. I'm not sure what kind of license agreements there is though.

znuamaan commented 12 years ago

I agree. Is there a tutorial available that walks you through what needs to be done to integrate a plugin like jquery-textext into this project?

ghost commented 12 years ago

I may have some available time coming up where I could help out with this project.

thackel commented 12 years ago

Also good solution for tapestry:

http://tawus.wordpress.com/2011/12/28/multivalue-autocomplete-for-tapestry/

But as i said in an other comment, "somebody" has to bind all the nice stuff together in one bigger component library to avoid fragmentation and dying code...

Thanks HLS, instead of reinventing the wheel with Plastik and your IOC, more components would have been fine...

ghost commented 12 years ago

I'm now using tawus solution which works fine. I had to make a few changes to it in order to get it to support additional features provided in the jquery component. I also have support to handle single value fields. If anybody's interested, I'd be more than happy to donate the code.

thackel commented 12 years ago

A pure jquery/tapestry-jquery solution would be fine. I am pretty sure the got5 guys would be happy to include your code if it meets their standards and you provide a testcase :)

ghost commented 12 years ago

Thackel, it's nothing other than a modified version of this, http://tawus.wordpress.com/2011/12/28/multivalue-autocomplete-for-tapestry/

Unfortunately I have very tight time constraints and don't have the time to create a testcase, however if anybody else has that time, I'd be more than willing to donate the code.

dragansah commented 12 years ago

Here is another one: http://harvesthq.github.com/chosen/ There should be a vote or something like this on the mailing list perhaps. I'm prepared to work on the component but there needs to be an agreement on which js component will be used.

Cheers