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

Uif-MaintenanceTableCollectionSection appers to be broken

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.3.0-m2, 2.3
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-6717Docbook build is broken
      KULRICE-869JManage links are broken
      KULRICE-13771Catalog broken AFTs
      KULRICE-10054SpringEL for disable client-side is broken
      KULRICE-9584Broken ! (not symbol) for spEL expression which will be evaluated on the client
      KULRICE-12105Dialog div and placeholder auto creation broken
      KULRICE-2767Setting dataDictionaryPackages on the KNSConfigurer is broken
      KULRICE-8060Rice Maintenance Documents Broken
      KULRICE-11816Expanded Text Area broken
      KULRICE-823StandardGenericXmlRuleAttribute.getDocContent() broken
    • Rice Module:
      KRAD
    • KRAD Feature Area:
      Maintenance
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      It appears to me that collection maintenance is broken in at least version 2.2.1 when using a table-based collection instead of a stacked collection.

      For example, if I have a Book data object with a collection of Chapters and I have the following specified on my Uif-MaintenanceView:

      <bean parent="Uif-MaintenanceTableCollectionSection">
        <property name="headerText" value="Chapters"/>
        <property name="collectionObjectClass" value="trnapp.bookstore.Chapter"/>
        <property name="propertyName" value="chapters"/>
        <property name="items">
          <list>
            <bean parent="Uif-InputField" p:propertyName="number" p:required="true"/>
            <bean parent="Uif-InputField" p:propertyName="title" p:required="true"/>
          </list>
        </property>
      </bean>
      

      When I fill out the collection row and hit the "add" button, I get the following exception:

      2013-03-03 19:30:09,399 [http-bio-8080-exec-9] u:admin/d: ERROR org.kuali.rice.krad.web.controller.UifHandlerExceptionResolver - The following error was caught by the UifHandlerExceptionResolver : 
      java.lang.RuntimeException: Error getting property 'document.newMaintainableObject.dataObject.chapters[0].null' from org.kuali.rice.krad.web.form.MaintenanceDocumentForm@73d6c269
      	at org.kuali.rice.krad.uif.util.ObjectPropertyUtils.getPropertyValue(ObjectPropertyUtils.java:61)
      	at org.kuali.rice.krad.uif.widget.Inquiry.performFinalize(Inquiry.java:116)
      	at org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl.performComponentFinalize(ViewHelperServiceImpl.java:1228)
      	at org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl.performComponentFinalize(ViewHelperServiceImpl.java:1247)
      	at org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl.performComponentFinalize(ViewHelperServiceImpl.java:1247)
      	at org.kuali.rice.krad.uif.service.impl.ViewHelperServiceImpl.performComponentLifecycle(ViewHelperServiceImpl.java:303)
      	at org.kuali.rice.krad.web.controller.UifControllerHelper.prepareViewForRendering(UifControllerHelper.java:226)
      	at org.kuali.rice.krad.web.controller.UifControllerHelper.postControllerHandle(UifControllerHelper.java:98)
      	at org.kuali.rice.krad.web.controller.UifControllerHandlerInterceptor.postHandle(UifControllerHandlerInterceptor.java:82)
      	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:911)
      	...
      

      If I simply change my parent bean from Uif-MaintenanceTableCollectionSection to Uif-MaintenanceStackedCollectionSection I'm able to add chapters and submit the maintenance document no problem.

      Full stack trace is attached.

        Activity

          People

          • Assignee:
            Shannon Hess
            Reporter:
            Eric Westfall
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel