Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9830

Date picker without time yields null value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 7.52.0.Final
    • Forms Modeler
    • None
    • False
    • False
    • NEW
    • NEW
    • Undefined
    • Hide

      In attachment a sample reproducer:form-date-picker-null.zip

      1. Start the process filling in a date for the 3 date pickers
      2. A new task is create where only one field is correctly initialized

      Another way to check the problem is exploring the process variables where you can check that only the field corresponding to the date picker with the time is correctly initialized.

      Show
      In attachment a sample reproducer: form-date-picker-null.zip Start the process filling in a date for the 3 date pickers A new task is create where only one field is correctly initialized Another way to check the problem is exploring the process variables where you can check that only the field corresponding to the date picker with the time is correctly initialized.

      When the date picker is configured to not show the time, the form at runtime yield a null value.

      In the logs:

      18:45:30,369 WARN  [org.kie.workbench.common.forms.dynamic.backend.server.context.generation.dynamic.impl.marshalling.models.ModelMarshaller] (default task-52) Error modifying object 'com.sandbox.form.Information@5ecbd7f0': cannot set value 'null' to property 'dateTest'
      18:45:30,369 WARN  [org.kie.workbench.common.forms.dynamic.backend.server.context.generation.dynamic.impl.marshalling.models.ModelMarshaller] (default task-52) Caused by:: org.apache.commons.beanutils.ConversionException: No value specified for 'Date'
      	at deployment.business-central.war//org.apache.commons.beanutils.converters.AbstractConverter.handleMissing(AbstractConverter.java:328)
      	at deployment.business-central.war//org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:149)
      	at deployment.business-central.war//org.apache.commons.beanutils.converters.ConverterFacade.convert(ConverterFacade.java:61)
      

              rh-ee-pefernan Pere Fernandez Perez
              dmarrazz@redhat.com Donato Marrazzo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: