I am looking at moving our application from Wicket to Vaadin. The Wicket “palette” component (similar to Vaadin TwinColSelect) has a manual sort feature i.e. you can sort the items in the selected list by selecting an item, then clicking the up or down arrow icon to move the item up or down in the list.
How much work would this be to implement in Vaadin and how would one go about it?
I am not sure which component you are referring to - your suggestion of using two tables plus drag-and-drop? Should I be creating a new component that implements this? How do I create a new component? (Sorry - I am still trying to get to grips with the basics of Vaadin. No fault of yours - the documentation I have seen so far is excellent.)
Or are you referring to the Wicket-style component that I mentioned, with the up / down arrows for sorting? What would be involved in modifying the existing Vaadin / GWT component to include this?
An implementation using two tables, drag-and-drop and up and down buttons (for those who prefer this approach) can be wrapped in a CustomComponent (or a
CustomField if you want to implement the Field API) with server side component composition, without any custom client side components. Server side add-ons are also easier to take into use as no custom widgetset is needed.
So, you could create a subclass of CustomComponent with a suitable API and package that as a simple Vaadin add-on. For server side add-ons, this is simply a JAR with a suitable manifest and some license information etc. See
the authoring instructions for some more information.