[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jibx-devs
Subject:    [jibx-devs] [jira] Created: (JIBX-203) Jibx needs to create the
From:       "Soundararajan Thevaraj (JIRA)" <jira () codehaus ! org>
Date:       2008-01-27 2:02:57
Message-ID: 29789879.1201399377187.JavaMail.haus-jira () codehaus01 ! managed ! contegix ! com
[Download RAW message or body]

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


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

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic