You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jeff Genender (JIRA)" <de...@geronimo.apache.org> on 2006/04/06 05:07:43 UTC

[jira] Created: (GERONIMO-1806) config.xml need to allow for nulls, empty string attributes and ability to remove references

config.xml need to allow for nulls, empty string attributes and ability to remove references
--------------------------------------------------------------------------------------------

         Key: GERONIMO-1806
         URL: http://issues.apache.org/jira/browse/GERONIMO-1806
     Project: Geronimo
        Type: Bug
    Security: public (Regular issues) 
    Versions: 1.0    
    Reporter: Jeff Genender
 Assigned to: Jeff Genender 
     Fix For: 1.1


config.xml needs to allow for null and empty strings, as well as the ability to remove an attribute or reference.  The following seems to be the agreed upon  syntax to enable this functionality:

1) Normal value
   <attribute name="someAttribute" value="42"/>
   <attribute name="someAttribute">42</attribute>

2) Don't set... constructor args will be injected with java default  
values
   <reference name="TomcatValveChain"/>
   <attribute name="someAttribute"/>
   <attribute name="someAttribute"></attribute>

3) Inject empty string or pass empty string to property editor and  
inject
   <attribute name="someAttribute" value=""/>

4) Inject null
   <attribute name="someAttribute" null="true"/>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (GERONIMO-1806) config.xml need to allow for nulls, empty string attributes and ability to remove references

Posted by "Jeff Genender (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-1806?page=all ]
     
Jeff Genender closed GERONIMO-1806:
-----------------------------------

    Resolution: Fixed

Fixed per r391883

> config.xml need to allow for nulls, empty string attributes and ability to remove references
> --------------------------------------------------------------------------------------------
>
>          Key: GERONIMO-1806
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1806
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>     Versions: 1.0
>     Reporter: Jeff Genender
>     Assignee: Jeff Genender
>      Fix For: 1.1

>
> config.xml needs to allow for null and empty strings, as well as the ability to remove an attribute or reference.  The following seems to be the agreed upon  syntax to enable this functionality:
> 1) Normal value
>    <attribute name="someAttribute" value="42"/>
>    <attribute name="someAttribute">42</attribute>
> 2) Don't set... constructor args will be injected with java default  
> values
>    <reference name="TomcatValveChain"/>
>    <attribute name="someAttribute"/>
>    <attribute name="someAttribute"></attribute>
> 3) Inject empty string or pass empty string to property editor and  
> inject
>    <attribute name="someAttribute" value=""/>
> 4) Inject null
>    <attribute name="someAttribute" null="true"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira