Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-8319

Expressions not being evaluated for components in a dialog group

    Details

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

      Description

      We've expressions and Uif-DataField defined at the dialog and it looks like it's not evaluating those before showing the dialog. For the below sample, we''re setting form properties (courseOffering and count) before calling the showDialog() from the controller method but the form properties not getting displayed. Any limitations using DialogGroup or is it a bug?

      <bean id="schedulingConfirmDialog-Group" parent="Uif-DialogGroup">
      <property name="hidden" value="true"/>
      <property name="headerText" value="Mark as Ready for Scheduling"/>
      <property name="promptText" value=""/>
      <property name="items">
      <list>
      <bean parent="Uif-DataField" p:label="Course Offerings" p:propertyName="courseOffering" p:fieldLabel.style="font-weight:bold;"/>
      <bean parent="Uif-MessageField" p:label="Activity Offerings" p:messageText="All contained in the course offerings (@

      {count}

      )" p:fieldLabel.style="font-weight:bold;"/>
      </list>
      </property>
      </bean>

      Our controller method (just snippet here) looks like

      public ModelAndView selectedCOActions(....){
      if (!hasDialogBeenAnswered("schedulingConfirmDialog", form))

      { form.setCourseOffering("something here") form.setCount(2); return showDialog("schedulingConfirmDialog", theForm, request, response); }

      }

        Attachments

          Issue Links

            Activity

            jkneal Jerry Neal (Inactive) created issue -
            jkneal Jerry Neal (Inactive) made changes -
            Field Original Value New Value
            Link This issue cloned from KULRICE-7208 [ KULRICE-7208 ]
            jkneal Jerry Neal (Inactive) made changes -
            Issue Type Task [ 3 ] Bug Fix [ 1 ]
            Fix Version/s 2.2.0-m4 [ 16598 ]
            Fix Version/s 2.2-backlog [ 16475 ]
            Description We've expressions and Uif-DataField defined at the dialog and it looks like it's not evaluating those before showing the dialog. For the below sample, we''re setting form properties (courseOffering and count) before calling the showDialog() from the controller method but the form properties not getting displayed. Any limitations using DialogGroup or is it a bug?
             
            <bean id="schedulingConfirmDialog-Group" parent="Uif-DialogGroup">
                    <property name="hidden" value="true"/>
                    <property name="headerText" value="Mark as Ready for Scheduling"/>
                    <property name="promptText" value=""/>
                    <property name="items">
                      <list>
                        <bean parent="Uif-DataField" p:label="Course Offerings" p:propertyName="courseOffering" p:fieldLabel.style="font-weight:bold;"/>
                        <bean parent="Uif-MessageField" p:label="Activity Offerings" p:messageText="All contained in the course offerings (@{count})" p:fieldLabel.style="font-weight:bold;"/>
                      </list>
                    </property>
                  </bean>
             
             
            Our controller method (just snippet here) looks like
             
            public ModelAndView selectedCOActions(....){
                        if (!hasDialogBeenAnswered("schedulingConfirmDialog", form)){
                                    form.setCourseOffering("something here")
                                form.setCount(2);
                                    return showDialog("schedulingConfirmDialog", theForm, request, response);
                    }
            }
            --
            Priority Major [ 3 ] Critical [ 2 ]
            Assignee Daniel Seibert [ dsiebert ]
            Hide
            jcoltrin Jessica Coltrin (Inactive) added a comment -

            moving m4 criticals and blockers to rc1

            Show
            jcoltrin Jessica Coltrin (Inactive) added a comment - moving m4 criticals and blockers to rc1
            jcoltrin Jessica Coltrin (Inactive) made changes -
            Fix Version/s 2.2.0-rc1 [ 16716 ]
            Fix Version/s 2.2 [ 16411 ]
            Fix Version/s 2.2.0-m4 [ 16598 ]
            jcoltrin Jessica Coltrin (Inactive) made changes -
            Fix Version/s 2.2.0-m5 [ 16732 ]
            Fix Version/s 2.2.0-rc1 [ 16716 ]
            jcoltrin Jessica Coltrin (Inactive) made changes -
            Fix Version/s 2.2 [ 16411 ]
            jkneal Jerry Neal (Inactive) made changes -
            Assignee Daniel Seibert [ dsiebert ] Sona Sona [ sonam ]
            jcoltrin Jessica Coltrin (Inactive) made changes -
            Fix Version/s 2.2.0-rc1 [ 16716 ]
            Fix Version/s 2.2.0-m5 [ 16732 ]
            jkneal Jerry Neal (Inactive) made changes -
            Fix Version/s 2.2.0-rc1 [ 16716 ]
            vpremcha Venkat PremChandran (Inactive) made changes -
            Link This issue discovered by KSENROLL-2017 [ KSENROLL-2017 ]
            sonam Sona Sona (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 [ 154509 ] Copy of custom for rice [ 215042 ]
            spatterson Shem Patterson (Inactive) made changes -
            Workflow Copy of custom for rice [ 215042 ] custom [ 224790 ]
            spatterson Shem Patterson (Inactive) made changes -
            Workflow custom [ 224790 ] Rice Workflow [ 234538 ]

              People

              • Assignee:
                sonam Sona Sona (Inactive)
                Reporter:
                jkneal Jerry Neal (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: