Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-9722Error using spring expressions inside rich messaging components
      KULRICE-9079replacing a property that has a spring expression
      KULRICE-12552Invalid component property names not reported when expressions are present
      KULRICE-9578Trace stack when using spring expressions in BreadcrumbOptions
      KULRICE-7859Spring Expressions in render property not working as expected
      KULRICE-13118Stacktrace: "Configuration with Spring Service Expression" demo
      KULRICE-8126Collection control does not honor disable if disable is disabled by an expression for collection refresh
      KULRICE-5415when attempting to ajax update a component in the page, get a spring EL exception
      KULRICE-6606KSPD: Hookup JavaMelody/Spring
      KULRICE-14116AFT Failure LibraryGeneralFeaturesFocusAndJumpToAft Incident Report Exception evaluating expression: devMode
    • 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 >

        Activity

        Hide
        Eric Njogu (Inactive) added a comment -

        Looking at org.kuali.rice.krad.uif.util.ExpressionUtils#getLinePathPrefixValue, the prefix #lp is replaced by a blank string when a collection group is not found in the component's context. Longer code extracts might help to shed light on this.

        Show
        Eric Njogu (Inactive) added a comment - Looking at org.kuali.rice.krad.uif.util.ExpressionUtils#getLinePathPrefixValue, the prefix #lp is replaced by a blank string when a collection group is not found in the component's context. Longer code extracts might help to shed light on this.
        Hide
        Venkat PremChandran (Inactive) added a comment -

        Thanks Eric for this fix. I'm hoping this should fix issues related to refreshWhenChanged() when used within a collection

        Show
        Venkat PremChandran (Inactive) added a comment - Thanks Eric for this fix. I'm hoping this should fix issues related to refreshWhenChanged() when used within a collection

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel