You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2004/07/29 16:11:16 UTC
cvs commit: jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/palette Palette.java
hlship 2004/07/29 07:11:16
Modified: . Tag: branch-3-0 status.xml
contrib/src/org/apache/tapestry/contrib/palette Tag:
branch-3-0 Palette.java
Log:
[30384] Palette does not clear its selected list when no selections are made.
Revision Changes Path
No revision
No revision
1.47.2.4 +4 -0 jakarta-tapestry/status.xml
Index: status.xml
===================================================================
RCS file: /home/cvs/jakarta-tapestry/status.xml,v
retrieving revision 1.47.2.3
retrieving revision 1.47.2.4
diff -u -r1.47.2.3 -r1.47.2.4
--- status.xml 22 Jul 2004 14:19:37 -0000 1.47.2.3
+++ status.xml 29 Jul 2004 14:11:15 -0000 1.47.2.4
@@ -266,6 +266,10 @@
Provide a public implementation of ITemplateParserDelegate.
</action>
+ <action type="fix" dev="HLS" fixes-bug="30384">
+ Palette does not clear its selected list when no selections are made.
+ </action>
+
</release>
<release version="3.0" date="Apr 18 2004">
No revision
No revision
1.13.2.1 +5 -7 jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/palette/Palette.java
Index: Palette.java
===================================================================
RCS file: /home/cvs/jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/palette/Palette.java,v
retrieving revision 1.13
retrieving revision 1.13.2.1
diff -u -r1.13 -r1.13.2.1
--- Palette.java 9 Mar 2004 20:17:20 -0000 1.13
+++ Palette.java 29 Jul 2004 14:11:15 -0000 1.13.2.1
@@ -206,9 +206,7 @@
* </pre>
*
* @author Howard Lewis Ship
- * @version $Id$
- *
- **/
+ */
public abstract class Palette extends BaseComponent implements IFormComponent
{
@@ -448,8 +446,8 @@
if (sortUser)
{
- Iterator i = selectedOptions.iterator();
- while (i.hasNext())
+ Iterator i = selectedOptions.iterator();
+ while (i.hasNext())
{
PaletteOption o = (PaletteOption) i.next();
selectedColumn.addOption(o);
@@ -479,8 +477,8 @@
int count = Tapestry.size(values);
- if (count == 0)
- return;
+ // Build a new ArrayList and fill it with the selected
+ // objects, if any.
List selected = new ArrayList(count);
IPropertySelectionModel model = getModel();
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org