Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-5356

Unmapped Java bindings being added to to <bean> configs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • LATER
    • None
    • smooks
    • None
    • Hide

      You can delete the property nodes from the bean in the Java Mapping window.

      This solves the immediate problem, but is not the right solution because you may want add a mapping on that property some time later. In this case, you wouldn't see the property on the bean (because you deleted it). Getting it back means using the "Add Value Binding" option on the right-click menu, which just drops in a "NULL" property... you have to rename it correctly etc... all very messy IMO.

      Show
      You can delete the property nodes from the bean in the Java Mapping window. This solves the immediate problem, but is not the right solution because you may want add a mapping on that property some time later. In this case, you wouldn't see the property on the bean (because you deleted it). Getting it back means using the "Add Value Binding" option on the right-click menu, which just drops in a "NULL" property... you have to rename it correctly etc... all very messy IMO.

      Bean value/wiring configs are added for all bean properties, even if no mappings were made onto the property.

      Example... the <value> config in the following should have a data attribute if a mapping was made onto the property. No mapping => no data attribute => we should just omit that <value> config.

      <jb:bindings beanId="header" class="example.model.Header" createOnElement="json">
      <jb:value property="date"/>
      </jb:bindings>

      Note... it is not mandatory for a mapping to be made onto a bean property!!

            tfennelly_jira Tom Fennelly (Inactive)
            tfennelly_jira Tom Fennelly (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: