On Tue, 1 Oct 2002 23:42, Jason van Zyl wrote: > Just wondering what the standard way of modifying a configuration at > runtime is?
Generally the component can not modify it's own configuration. The container *may* modify it and pass it back to the component using Reconfigurable (but if it does the semantics are not clearly defined). > Or if this isn't generally practiced how do you add new elements to > DefaultConfiguration or CascadingConfiguration. The Javadocs for > setValue(String s) aren't exactly clear as to what a value is? Is this > an XML fragment? No - just the content of an element. To add a new Node at runtime I believe the name of the methods are addChild()/removeChild(). The one thing that you can't do is to remove a attribute (though you can set it to null). I think this is a bug we just never got around to fixing ;) -- Cheers, Peter Donald He strains to hear a whisper who refuses to hear a shout. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
