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

Expressions not evaluated in collection group items

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: Not version specific
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-13974 items within a collection that have a label with expression does not evaluate
      KULRICE-8319Expressions not being evaluated for components in a dialog group
      KULRICE-8948Properties on collection items not getting expressions processed before build line
      KULRICE-7835expressions not being evaluated on line actions within a collection
      KULRICE-12815 Expressions in field labels not carried through for table headers
      KULRICE-7053spring expression error on refresh
      KULRICE-9722Error using spring expressions inside rich messaging components
      KULRICE-9846defaultValue not applied before disabled expression evaluation on initialization
      KULRICE-8126Collection control does not honor disable if disable is disabled by an expression for collection refresh
      KULRICE-8101Expressions not evaluated on tooltip content
    • Rice Module:
      KRAD
    • KRAD Feature Area:
      Data Dictionary
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      If you have expressions on items within the collection field, they do not get evaluated unless the bean has an explicit id. For example:

      <bean id="KS-AdminRegistration-RegisterDialogResponse" parent="Uif-DialogGroup" p:dialogCssClass="modal-lg">
      <property name="headerText" value="Confirm Registration"/>
      <property name="items">
      <list>
      <bean id="KS-AdminRegistration-Collection" parent="Uif-TableCollectionSection" p:layoutManager.numberOfColumns="10">
      <property name="collectionObjectClass"
      value="org.kuali.rice.krad.demo.uif.form.KSWorkshopCourse"/>
      <property name="layoutManager.richTable.render" value="false"/>
      <property name="layoutManager.renderSequenceField" value="false"/>
      <property name="renderAddLine" value="false"/>
      <property name="propertyName" value="pendingCourses"/>
      <property name="renderLineActions" value="false"/>
      <property name="items">
      <list>
      <bean parent="Uif-MessageField" p:label="Course (Section)"
      p:messageText="@

      {#line.course} (@{#line.section})"/>
      <bean parent="Uif-HorizontalFieldGroup" p:label="Activities">
      <property name="group.items">
      <list>
      <bean parent="Uif-DataField" p:propertyName="activityTypes"
      p:readOnlyListDisplayType="BREAK"/>
      <bean parent="Uif-DataField" p:propertyName="activityDateTimes"
      p:readOnlyListDisplayType="BREAK"/>
      </list>
      </property>
      </bean>
      <bean parent="Uif-InputField" p:label="Credits" p:propertyName="credits">
      <property name="control">
      <!-- TODO: Key value finders would be used to populate the options here in real implementation-->
      <bean parent="Uif-DropdownControl">
      <property name="options">
      <list>
      <bean parent="Uif-KeyLabelPair" p:key="1" p:value="1.0"/>
      <bean parent="Uif-KeyLabelPair" p:key="2" p:value="2.0"/>
      <bean parent="Uif-KeyLabelPair" p:key="3" p:value="3.0"/>
      </list>
      </property>
      </bean>
      </property>
      </bean>
      <bean parent="Uif-InputField" p:label="Reg Options" p:propertyName="regOptions">
      <property name="control">
      <!-- TODO: Key value finders would be used to populate the options here in real implementation-->
      <bean parent="Uif-DropdownControl">
      <property name="options">
      <list>
      <bean parent="Uif-KeyLabelPair" p:key="reg" p:value="Regular"/>
      <bean parent="Uif-KeyLabelPair" p:key="pf" p:value="Pass/Fail"/>
      <bean parent="Uif-KeyLabelPair" p:key="audit" p:value="Audit"/>
      </list>
      </property>
      </bean>
      </property>
      </bean>
      <bean parent="Uif-InputField" p:label="Effective Reg Date" p:propertyName="regDate">
      <property name="control">
      <bean parent="Uif-DateControl"/>
      </property>
      </bean>
      </list>
      </property>
      </bean>
      </list>
      </property>
      <property name="footer.items">
      <list>
      <bean parent="Uif-DialogConfirmButton" p:actionLabel="Confirm Registration" p:methodToCall="registerConfirm"
      p:performClientSideValidation="true" />
      <bean parent="Uif-DialogDismissButton" p:actionLabel="Cancel"/>
      </list>
      </property>
      </bean>

      The message text that gets rendered is: @{#line.course}

      (@

      {#line.section}

        Activity

        Hide
        Jerry Neal (Inactive) added a comment -

        This is not an issue after all, config problem

        Show
        Jerry Neal (Inactive) added a comment - This is not an issue after all, config problem

          People

          • Assignee:
            Jerry Neal (Inactive)
            Reporter:
            Jerry Neal (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel