[
http://jira.codehaus.org/browse/JIBX-203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski closed JIBX-203.
--------------------------------
> Jibx needs to create the empty element when the field value becomes null and
> the usage attribute is required
> ------------------------------------------------------------------------------------------------------------
>
> Key: JIBX-203
> URL: http://jira.codehaus.org/browse/JIBX-203
> Project: JiBX
> Issue Type: Bug
> Components: core
> Affects Versions: JiBX 1.1.5
> Environment: WindowsXP, Weblogic Server 8.1
> Reporter: Soundararajan Thevaraj
> Assignee: Dennis Sosnoski
>
> Hi,
> Below is a piece of scrab of my binding xml.
> <mapping class="com.proj.isw.valueobjects.SSPFirmSaleValue"
> abstract="true" type-name="account_address">
> <value name="AddressLine1" field="blCntCN" usage="required"/>
> <value name="AddressLine2" field="blCntTP"/>
> <value name="UnitType" field="blCntEX" default=""/>
> <value name="UnitValue" field="blCntFN" usage="optional"
> default=""/>
> <value name="City" field="blCntFN" usage="optional" default=""/>
> <value name="State" field="blCntEM" default=""/>
> <value name="Zip" field="blCntFN" default=""/>
> <value name="Country" constant="840"/>
> <value style="attribute" name="geoCode" constant="89830983098"/>
> <value style="attribute" name="skipValidation" constant="Y"/>
> <value style="attribute" name="checkId" constant=""/>
> <value style="attribute" name="statusCode" constant=""/>
> <value style="attribute" name="statusCategory" constant=""/>
> <value style="attribute" name="statusDescription" constant=""/>
> </mapping>
> When the field blCntCN value becomes null and usage="required", I expect jibx
> marshalling should create the empty tag <AddressLine1/>. But its not
> happening. When do the marshalling jibx missing out element completly.
> <AccountAddress geoCode="89830983098" skipValidation="Y" checkId=""
> statusCode="" statusCategory="" statusDescription="">
> <AddressLine2>APt 1100</AddressLine2>
> <UnitValue>CTG</UnitValue>
> <City>Irving</City>
> <Zip>75038</Zip>
> <Country>840</Country>
> </AccountAddress>
> Our requirement is, If any of the value becomes null and its a required field
> then we need to send the empty tag of that element. Is it a bug in Jibx
> 1.1.5? or do we have someother way to accomplish this. Your help would be
> help ful
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs