Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-3477

Form modeler can't add boolean fields from custom POJOs, when getter starts with "is"

XMLWordPrintable

      Description of problem:
      When you have an externally created java bean, which defines boolean field with accessor method starting with "is" (compliant with java beans convetion), then form modeler doesn't display this field in 'Add fields by origin'.

      Version-Release number of selected component (if applicable):
      BPMS 6.0.1 ER2

      How reproducible:
      Always

      Steps to Reproduce:
      1. Create a POJO class with a boolean field and provide accessor starting with
      "is". E.g.:

      public class MyPojo {
      private boolean cool;
      public boolean isCool()

      { return cool; }

      public void setCool(boolean cool)

      { this.cool = cool; }

      }

      2. Package it to jar, upload this jar to business-central artifact repository and declare as a dependency of your project.

      3. Create new form modeler form in that project and add your custom pojo as Form Data Origin.
      4. Go to Add fields by origin

      Actual results:
      You will not see the cool boolean field defined in POJO.

      Expected results:
      All POJO's properties should be visible in 'Add fields by origin'

              rh-ee-pefernan Pere Fernandez Perez
              jhrcek Jan Hrcek (Inactive)
              Pavel Kralik Pavel Kralik (Inactive)
              Pavel Kralik Pavel Kralik (Inactive)
              Edson Tirelli, Kris Verlaenen, Marek Baluch, Michael Biarnes Kiefer, Rajesh Rajasekaran, Walter Medvedeo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: