The following issue has been updated:

    Updater: Dennis Sosnoski (mailto:[EMAIL PROTECTED])
       Date: Fri, 6 Aug 2004 3:22 PM
    Comment:
This is the expected behavior for an optional value with no default supplied. If you'd 
like to have a value be optional for unmarshalling but always present when 
marshalling, you can specify a default value that is invalid, then check for this 
default and change it to something else in a pre-get method.

For the particular case of an item count, you could use a default of -1, then check 
for this in a post-set method and change it to 0. That way your value will always be 
marshalled.
    Changes:
             assignee changed to Dennis Sosnoski
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/browse/JIBX-35?page=history

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/JIBX-35

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JIBX-35
    Summary: If the element value is of type numerical and the value is zero, the 
marshallDocument() is not including the element in the output XML.
       Type: Bug

     Status: Open
   Priority: Critical

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: JiBX
 Components: 
             core
   Versions:
             1.0-beta3c

   Assignee: Dennis Sosnoski
   Reporter: Omkaram Sangem

    Created: Mon, 2 Aug 2004 7:21 AM
    Updated: Fri, 6 Aug 2004 3:22 PM
Environment: JiBX version beta3c-1.0 
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

Description:
If the element value is of type numerical and the value is zero, the 
marshallDocument() is not including the element in the output XML.

This situation arises usually if count related elements have zero values.

For example:

Logically NoOfAccounts can be zero and it must be included in the Marshalled XML 
document.




---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
jibx-devs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to