Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.5.7
-
None
-
None
Description
In Wicket 1.5.7, if you have a Palette where the choices model returns one object and the (selected) model returns zero objects, the palette will appear empty.
I believe this was a result of the change in WICKET-4528. In the method Recorder.updateIds, it used to look like this
private void updateIds(final String value)
{
if (Strings.isEmpty(value))
else
{ ids = value.split(","); }}
Now it looks like this
private void updateIds(final String value)
{
getSelectedIds().clear();
for (final String id : Strings.split(value, ','))
{ getSelectedIds().add(id); }}
Which means that if value is "", Strings.split returns one empty string, so getSelectedIds() contains one empty string, resulting in getUnselectedList() deciding that the selected and choices lists are both size one and therefore there is nothing available to display in the unselected list.
Attachments
Attachments
Issue Links
- is broken by
-
WICKET-4528 make recorder component of wicket-extensions palette more efficient for large number of items and easier to extend
- Resolved
- is related to
-
SYNCOPE-188 Upgrade to Apache Wicket 1.5.8
- Closed