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

addLine does not work inside addDialog when used in a StackedCollection

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-13052TableCollection addDialog not being bound properly to the collection
      KULRICE-7532required validation fails in StackedCollectionSubSection addLine
      KULRICE-9586Need to avoid required validation checks on addLine
      KULRICE-7284Javascript doesn't work in a Rice URL opened inside the KC portal in standalone mode
      KULRICE-9463Kim authorization configuration not working for groups inside stacked collection
      KULRICE-10826Required message label always appears in left when placed inside Table collections
      KULRICE-8087collection property "includeLineSelectionField" should ignore addLine row
      KULRICE-9722Error using spring expressions inside rich messaging components
      KULRICE-7110Conditional requirement bug in a Collection's addline
      KULRICE-2729The "Future Action Requests" tab on the Route Log does not work properly with a client application using "embedded" mode
    • Rice Module:
      KRAD
    • KRAD Feature Area:
      UIF Component
    • Application Requirement:
      KC
    • Sprint:
      UXI 2.5.0-m5 Sprint 1
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      Add line within a dialog fails when used within a StackedCollection. This seems to work within a Table collection though. So something like the following

      Stacked Collection
      <bean id="PropDev-TestSection"
                abstract="true" parent="Uif-VerticalBoxSection" p:header.headerText="Test section"
                p:instructionalText="Add test attachments to this proposal"
                p:fieldBindingObjectPath="document.developmentProposal">
              <property name="items">
                  <list>
                      <bean parent="PropDev-Test" p:order="10" />
                  </list>
              </property>
          </bean>
      
      <bean id="PropDev-Test"
                parent="Uif-StackedCollectionSection" p:collectionObjectClass="org.kuali.coeus.propdev.impl.attachment.Narrative"
                p:propertyName="narratives"
                p:addWithDialog="true">
              <property name="items">
                  <list>
                      <bean parent="Uif-InputField" p:label="contactName" p:propertyName="contactName" p:required="true"/>
                      <bean parent="Uif-InputField" p:label="emailAddress" p:propertyName="emailAddress"/>
                  </list>
              </property>
          </bean>
      
      Please let me know what I am doing wrong.
      
       
      

      fails while the following works

      Table Collection
      <bean id="PropDev-TestViaDialogSection"
                abstract="true" parent="Uif-VerticalBoxSection" p:header.headerText="Test section"
                p:instructionalText="Add test attachments to this proposal"
                p:fieldBindingObjectPath="document.developmentProposal">
              <property name="items">
                  <list>
                      <bean parent="PropDev-testAddViaDialog" p:order="10" />
                  </list>
              </property>
          </bean>
      
         <bean id= "PropDev-testAddViaDialog" parent="Uif-Disclosure-TableCollectionSection">
              <property name="headerText" value="Add With Dialog Top" />
              <property name="collectionObjectClass" value="org.kuali.coeus.propdev.impl.attachment.Narrative" />
              <property name="propertyName" value="narratives" />
              <property name="layoutManager.generateAutoSequence" value="true" />
              <property name="layoutManager.richTable.render" value="true" />
              <!-- addWithDialog flag -->
              <property name="addWithDialog" value="true" />
              <property name="items">
                  <list>
                      <bean parent="Uif-InputField" p:label="contactName" p:propertyName="contactName" p:required="true"/>
                      <bean parent="Uif-InputField" p:label="emailAddress" p:propertyName="emailAddress"/>
                  </list>
              </property>
      

      While using a stacked collection, the addLine does not even make an ajax call. The button does not seem to do anything. This however works in the above table collection example.

        Activity

        Hide
        Jeff Heckel (Inactive) added a comment -

        There were 2 dialog boxes being created in the HTML. Removed first one.

        Show
        Jeff Heckel (Inactive) added a comment - There were 2 dialog boxes being created in the HTML. Removed first one.
        Hide
        Gayathri Athreya added a comment -

        Super, thanks Jeff. I figured it had to be something like that. Makes sense, thanks!

        Show
        Gayathri Athreya added a comment - Super, thanks Jeff. I figured it had to be something like that. Makes sense, thanks!

          People

          • Assignee:
            Jeff Heckel (Inactive)
            Reporter:
            Gayathri Athreya
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 day
              1d
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 day
              1d

                Agile

                  Structure Helper Panel