I have code which works fine under 1.0, but under 1.1 rather
than just delete one element from my enclosing element, it
sets the enclosing element to null. Under 1.0, the following
code runs OK, but under 1.1 of ECS, I get a stack trace
indicating that the object s1 is null.  Which is correct? I
think 1.0 is probably right.

import java.io.*;
import org.apache.ecs.html.*;

public class tsel
{
        private static void doit()
        {
                Select s1 = new Select ("empnam1", 1);

                s1.addElement(
                        "NOONE",
                        new Option("-1")
                                .addElement("No one else")
                );
                s1.addElement(
                        "SOMEONE",
                        new Option("5")
                                .addElement("Some one")
                );

                s1.removeElement("NOONE");
                System.out.println("rjb " + s1.toString());
        }

        public static void main(String[] args)
        {
                doit();
        }
}



--
------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to