fixed

-Igor


On 5/31/06, cowwoc <[EMAIL PROTECTED]> wrote:

        There seems to be a bug in this example. I select the last entry, and
keep on clicking on the first button. Eventually, it moves the entry
from the right side to the left, even though I am clicking on the arrow
pointing from left to right. I am expecting the entry to remain on the
right. Can anyone else reproduce this?

Gili

Philip A. Chapman wrote:
> The palette component:
>
> http://www.wicket-library.com/wicket-examples/compref;jsessionid=1964CEEDBD5270FCDA54CFE3AFAE4CB7?wicket:bookmarkablePage=:wicket.examples.compref.PalettePage
>
> On Wed, 2006-05-31 at 23:32 -0300, Bruno Borges wrote:
>> I don't know how to name it, but "Shuttle" was the name I've seen
>> people using to specify this kind of component:
>>
>>  ________        ________
>> | Item 1 |  >>  | Item 3 |
>> | Item 2 |  >   | Item 4 |
>> |        |      |        |
>> |        |  <   |        |
>> |________|  <<  |________|
>>
>>
>> Where:
>> >> : move all right
>> >   : move all selected right
>> ... same, but to left side
>>
>>
>> If there's nothing like this ready-to-use, can somebody shot an idea
>> on how to implement? Some first steps would be nice... :)
>>
>> In the model, would be something like:
>> - In the left <select>, a list of "available" categories
>> - In the right <select>, a list of "associated" categories
>>
>>
>> I think on something like this:
>>
>> ShuttleList s = new ShuttleList("shuttle", new
>> ShuttleModel(availableItems, selectedItems) {
>>     public void populateItem(Item i) {
>>         ...
>>     }
>> }));
>>
>>
>> And then:
>>
>> List newSelectedItems ((ShuttleModel) s.getModel()).getSelectedItems();
>>
>>
>> Now, 'newSelectedItems' should have objects that came from
>> 'availableItems' and shouldn't have objects removed from 'selectedItems'.
>>
>> []'s
>>
>> --
>> Bruno Borges
>> Summa Technologies Inc.
>> www.summa-tech.com <http://www.summa-tech.com>
>> (11) 8565-7739 - (11) 3846-1622
>
> --
> Philip A. Chapman
>
> Desktop and Web Application Development:
> Java, .NET, PostgreSQL, MySQL, MSSQL
> Linux, Windows 2000, Windows XP
>




Reply via email to