jon 01/06/12 18:12:09
Modified: src/java/org/apache/turbine/util/template SelectorBox.java
Log:
The patch below properly initializes the Option object using the value
rather than the name.
Kurt Grafius <[EMAIL PROTECTED]>
Revision Changes Path
1.7 +3 -3
jakarta-turbine/src/java/org/apache/turbine/util/template/SelectorBox.java
Index: SelectorBox.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine/src/java/org/apache/turbine/util/template/SelectorBox.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- SelectorBox.java 2001/05/06 17:06:47 1.6
+++ SelectorBox.java 2001/06/13 01:12:07 1.7
@@ -100,7 +100,7 @@
* </pre>
*
* @author <a href="mailto:[EMAIL PROTECTED]">Jon S. Stevens</a>
- * @version $Id: SelectorBox.java,v 1.6 2001/05/06 17:06:47 jvanzyl Exp $
+ * @version $Id: SelectorBox.java,v 1.7 2001/06/13 01:12:07 jon Exp $
*/
public class SelectorBox
{
@@ -241,8 +241,8 @@
sel.setName(name);
for (int f=0;f<values.length;f++)
{
- Option opt = new Option((String)names[f]);
- opt.addElement((String)values[f]);
+ Option opt = new Option((String)values[f]);
+ opt.addElement((String)names[f]);
if ( selected != null && selected[f] == true )
{
opt.setSelected(true);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]