Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      A null pointer expression occurs when an expression is used for the disabled property:
      https://groups.google.com/a/kuali.org/group/rice.usergroup.krad/browse_thread/thread/52bbf392a44c312d#

      Reported by Bob Hurt via rice.usergroup.krad@kuali.org:

      I have a TableCollectionSection and one of its items is:

      <bean parent="Uif-InputField" p:propertyName="startTimeAmPm"
      p:refreshWhenChanged="#lp.startTime">
      <property name="control">
      <bean parent="Uif-DropdownControl"
      p:options-ref="hctime-options"
      p:disabled="@

      {#empty(#lp.startTime)}

      "/>
      </property>
      </bean>

      This field is a dropdown for selecting "am" or "pm", and should be disabled when the field directly in front of it, startTime, is empty. The control's "disabled" property works when the page is initially displayed, but when startTime is changed I get the following runtime exception:

      java.lang.RuntimeException: Exception evaluating expression: #empty(.startTime) at
      ...
      < stacktrace left out >

        Attachments

          Activity

          vpremcha Venkat PremChandran (Inactive) created issue -
          kunadawa Eric Njogu (Inactive) made changes -
          Field Original Value New Value
          Description A null pointer expression occurs when an expression is used for the disabled property:
          https://groups.google.com/a/kuali.org/group/rice.usergroup.krad/browse_thread/thread/52bbf392a44c312d#
          A null pointer expression occurs when an expression is used for the disabled property:
          https://groups.google.com/a/kuali.org/group/rice.usergroup.krad/browse_thread/thread/52bbf392a44c312d#

          Reported by Bob Hurt via rice.usergroup.krad@kuali.org:

          I have a TableCollectionSection and one of its items is:

          <bean parent="Uif-InputField" p:propertyName="startTimeAmPm"
                p:refreshWhenChanged="#lp.startTime">
              <property name="control">
                  <bean parent="Uif-DropdownControl"
                        p:options-ref="hctime-options"
                        p:disabled="@{#empty(#lp.startTime)}"/>
              </property>
          </bean>

          This field is a dropdown for selecting "am" or "pm", and should be disabled when the field directly in front of it, startTime, is empty. The control's "disabled" property works when the page is initially displayed, but when startTime is changed I get the following runtime exception:

          java.lang.RuntimeException: Exception evaluating expression: #empty(.startTime) at
          ...
          < stacktrace left out >
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Fix Version/s 2.2 [ 16411 ]
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Start Date
          Fix Date 2012-08-31 [ set to sprint end date ]
          kunadawa Eric Njogu (Inactive) made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          kunadawa Eric Njogu (Inactive) made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          kunadawa Eric Njogu (Inactive) made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          jcoltrin Jessica Coltrin (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          spatterson Shem Patterson (Inactive) made changes -
          Workflow custom [ 138104 ] Copy of custom for rice [ 214117 ]
          spatterson Shem Patterson (Inactive) made changes -
          Workflow Copy of custom for rice [ 214117 ] custom [ 223865 ]
          spatterson Shem Patterson (Inactive) made changes -
          Workflow custom [ 223865 ] Rice Workflow [ 233613 ]

            People

            • Assignee:
              kunadawa Eric Njogu (Inactive)
              Reporter:
              vpremcha Venkat PremChandran (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: