JiBX
  1. JiBX
  2. JIBX-144

binding defintion works wrong with xml parser

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Environment:
      Mac OS X and Windows XP
    • Number of attachments :
      0

      Description

      ...
      <value name="street" field="street1" usage="optional"/>
      <value name="street" field="street2" usage="optional"/>
      ...

      will cause that the street2 variable is NULL in the mapping class !!

      Same in green

      <structure field="person" usage="optional">
      <value name="street" field="street1" usage="optional"/>
      </structure>
      <value name="street" field="street2" usage="optional"/>

      will cause that the street1 variable in the person class is correct and the value of the street2 variable in the mapping class is NULL !!

        Activity

        Hide
        Tobias Anstett added a comment -

        I will make following workaround for my problem:
        Writing own setter methods to set the second value, when first one is set.

        Show
        Tobias Anstett added a comment - I will make following workaround for my problem: Writing own setter methods to set the second value, when first one is set.
        Hide
        Dennis Sosnoski added a comment -

        You appear to be expecting the value of the element to be duplicated into the two fields. Is this what you want? JiBX is not intended to handle that case.

        Show
        Dennis Sosnoski added a comment - You appear to be expecting the value of the element to be duplicated into the two fields. Is this what you want? JiBX is not intended to handle that case.

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Tobias Anstett
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: