Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-7562

Improve subset of SpringEL - that we convert for specific functionality to js - by allowing a contains (or similar) operation

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0-m1
    • Fix Version/s: 2.3.0-m1, 2.3
    • Component/s: User Interface
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-7115Add "listContains" and "emptyList" functionality to the subset of SpringEL supported by serer and client-side features
      KULRICE-10148KRMS support for "contains" operator
      KULRICE-7561Allow an easy way to enable/disable controls and buttons clientside
      KULRICE-9963Enhance KRMS to support "contains" operator for collections
      KULRICE-10414Add SpringEL variable for parentLine path
      KULRICE-10049Client-Side disable not working with Coll. SpringEL Functions
      KULRICE-10054SpringEL for disable client-side is broken
      KULRICE-10268coerceValue js performance enhancement
      KULRICE-9827Split Js files further into other functional areas
      KULRICE-13885Weird behavior involving SpringEl when dev mode is disabled
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      History: Currently for progressive render/refresh functionality we allow springEL as a condition. This is actually a subset of springEL because not all functions can easily be converted 1:1 to javascript (this is done so we can progressively reveal on user action).

      Expand this subset to include a conversion for a contains in List<String>/array datatypes so a user can use a condition similar to: does this property contain this and this value or is this property empty.

      Not sure what is envolved in this, but may require some heavy customization if springEl doesnt have a function like this built in. The js logic may also be a little tricky. This check would likely be used to check against checkbox groups (or other future controls that allow lists of strings).

        Issue Links

          Activity

          Hide
          Peter Giles (Inactive) added a comment -

          What if SpEL was executed via callbacks to the server? It wouldn't be as snappy, but it would get you out of the SpEL translation business. There are some security considerations, but I think they could be addressed with the right strategy. Or maybe it would take away too much of the benefit of client side code. Worth a thought maybe?

          Show
          Peter Giles (Inactive) added a comment - What if SpEL was executed via callbacks to the server? It wouldn't be as snappy, but it would get you out of the SpEL translation business. There are some security considerations, but I think they could be addressed with the right strategy. Or maybe it would take away too much of the benefit of client side code. Worth a thought maybe?
          Hide
          Brian Smith (Inactive) added a comment -

          this is already done

          Show
          Brian Smith (Inactive) added a comment - this is already done

            People

            • Assignee:
              Unassigned
              Reporter:
              Brian Smith (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel