Found the problem, registryList Vector is not updated when you remove
something and toString() tries to use non-existing element.
It's in ConcreteElement:
public Element removeElementFromRegistry(String hashcode) {
registry.remove(hashcode);
// ADD NEXT LINE
registryList.remove(hashcode);
return(this);
}
Sorry, I'm new with CVS, but I'm working on it.
At 19:46 21.12.99 -0500, you wrote:
>
>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]
Zeljko Trogrlic
____________________________________________________________
@-solutions GmbH
Grillparzer Str. 14; D-81675 Muenchen
Tel.: 089/45 79 0-351; Fax.: 089/45 79 0-321
Email: mailto:[EMAIL PROTECTED] WWW: http://www.at-solutions.de
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]