This class creates a <Option> tag.
The Option tag now defaults to having a closing </Option> (as is now required). This can be overridden by setNeedClosingTag(false).
This change means that you should construct select options element in the following manner:
rather than new org.apache.ecs.html.Select .addElement(new option("value1").addElement("text1")) .addElement(new option("value2").addElement("text2"))
(this change should not break existing code too badly since browsers generally display the output from the above correctly). new org.apache.ecs.html.Select .addElement(new option("value1").addElement("text1") .addElement(new option("value2").addElement("text2")))
Alternatively, you could use the new option constructor and do something like
or even new org.apache.ecs.html.Select .addElement(new option("text1","value1","text1")) .addElement(new option("text2","value2","text2"))
new org.apache.ecs.html.Select .appendOption("text1","value1","text1") .appendOption("text2","value2","text2")
@version $Id: Option.java,v 1.6 2003/04/27 09:22:12 rdonkin Exp $ @author Stephan Nagy @author Jon S. Stevens
|
|
|
|
|
|
|
|