Author: jkuhnert Date: Tue Mar 21 15:46:00 2006 New Revision: 387671 URL: http://svn.apache.org/viewcvs?rev=387671&view=rev Log: Small bugfix for multiproperty select component
Modified: jakarta/tapestry/branches/4.0/contrib/src/documentation/content/xdocs/tapestry-contrib/ComponentReference/MultiplePropertySelection.xml jakarta/tapestry/branches/4.0/contrib/src/java/org/apache/tapestry/contrib/form/MultiplePropertySelection.java jakarta/tapestry/branches/4.0/status.xml Modified: jakarta/tapestry/branches/4.0/contrib/src/documentation/content/xdocs/tapestry-contrib/ComponentReference/MultiplePropertySelection.xml URL: http://svn.apache.org/viewcvs/jakarta/tapestry/branches/4.0/contrib/src/documentation/content/xdocs/tapestry-contrib/ComponentReference/MultiplePropertySelection.xml?rev=387671&r1=387670&r2=387671&view=diff ============================================================================== --- jakarta/tapestry/branches/4.0/contrib/src/documentation/content/xdocs/tapestry-contrib/ComponentReference/MultiplePropertySelection.xml (original) +++ jakarta/tapestry/branches/4.0/contrib/src/documentation/content/xdocs/tapestry-contrib/ComponentReference/MultiplePropertySelection.xml Tue Mar 21 15:46:00 2006 @@ -53,7 +53,7 @@ </tr> <tr> <td>selectedList</td> - <td>java.util.List</td> <td>in-out</td> <td>yes</td> <td> </td> + <td>java.util.Collection</td> <td>in-out</td> <td>yes</td> <td> </td> <td> The property to set. During rendering, this property is read, and sets the default value of the options in the select. When the form is submitted, list is cleared, then has each selected option added to it. </td> Modified: jakarta/tapestry/branches/4.0/contrib/src/java/org/apache/tapestry/contrib/form/MultiplePropertySelection.java URL: http://svn.apache.org/viewcvs/jakarta/tapestry/branches/4.0/contrib/src/java/org/apache/tapestry/contrib/form/MultiplePropertySelection.java?rev=387671&r1=387670&r2=387671&view=diff ============================================================================== --- jakarta/tapestry/branches/4.0/contrib/src/java/org/apache/tapestry/contrib/form/MultiplePropertySelection.java (original) +++ jakarta/tapestry/branches/4.0/contrib/src/java/org/apache/tapestry/contrib/form/MultiplePropertySelection.java Tue Mar 21 15:46:00 2006 @@ -15,6 +15,7 @@ package org.apache.tapestry.contrib.form; import java.util.ArrayList; +import java.util.Collection; import java.util.List; import org.apache.tapestry.IMarkupWriter; @@ -103,9 +104,9 @@ */ public static final IMultiplePropertySelectionRenderer DEFAULT_CHECKBOX_RENDERER = new CheckBoxMultiplePropertySelectionRenderer(); - public abstract List getSelectedList(); + public abstract Collection getSelectedList(); - public abstract void setSelectedList(List selectedList); + public abstract void setSelectedList(Collection selectedList); protected void finishLoad() { @@ -114,7 +115,7 @@ protected void renderFormComponent(IMarkupWriter writer, IRequestCycle cycle) { - List selectedList = getSelectedList(); + Collection selectedList = getSelectedList(); if (selectedList == null) throw Tapestry.createRequiredParameterException(this, "selectedList"); Modified: jakarta/tapestry/branches/4.0/status.xml URL: http://svn.apache.org/viewcvs/jakarta/tapestry/branches/4.0/status.xml?rev=387671&r1=387670&r2=387671&view=diff ============================================================================== --- jakarta/tapestry/branches/4.0/status.xml (original) +++ jakarta/tapestry/branches/4.0/status.xml Tue Mar 21 15:46:00 2006 @@ -155,6 +155,9 @@ <action type="fix" dev="JK" fixes-bug="TAPESTRY-422" due-to="Brian K. Wallace" > Patches to Javadoc to explicitly state that URLs returned from ExternalService will already be encoded. </action> + <action type="fix" dev="JK" fixes-bug="TAPESTRY-208" > + Changed method signature to use Collection instead of List. + </action> </release> <release version="4.0" date="Jan 6 2006"> <action type="update" dev="HLS">Add link to DeveloperWorks Tapestry article</action> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]