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

includeLineSelectionField breaks grid.ftl in TableCollectionSection with a subcollection

    Details

    • Type: Bug Fix Bug Fix
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Similar issues:
      KULRICE-8920dataTables problem with subCollection in a TableCollectionSection
      KULRICE-10066Subcollections in details are broken when useServerPaging=true
      KULRICE-13049AddWithDialog does not work for certain subcollections
      KULRICE-7560Collections that use dataTables break the boundaries of their containers
      KULRICE-8087collection property "includeLineSelectionField" should ignore addLine row
      KULRICE-7925Buttons issue with TableCollectionSection
      KULRICE-7867Improve details to allow subcollections in their content
      KULRICE-12840Collection row with subcollection - detail displayed in one row
      KULRICE-9958Bad ids on subcollections
      KULRICE-7428Duplicate error messages on collections within a subcollection
    • Rice Module:
      KRAD
    • KRAD Feature Area:
      UIF Component
    • Application Requirement:
      KS
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      When I add the "includeLineSelectionField" property to a TableCollectionSection that contains a subcollection, a freemarker.core.NonNumericalException is thrown while parsing grid.ftl. If I remove the "subCollections" property from the collection, the ftl builds properly.

      <bean parent="Uif-TableCollectionSection">
          <property name="propertyName" value="collection"/>
          <property name="collectionObjectClass" value=".."/>
          <property name="layoutManager.renderSequenceField" value="false"/>
          <property name="lineSelectPropertyName" value="selected"/>
          <!-- 
              includeLineSelectionField property causes ftl break in
              grid.ftl if there is also a subCollections property:
          -->
          <property name="includeLineSelectionField" value="true"/>
          <property name="items">
              <list>
                  <bean parent="Uif-DataField"
                        p:propertyName="name" p:label="Name"/>
                  <bean parent="Uif-DataField"
                        p:propertyName="description" p:label="Description"/>
                  <bean parent="Uif-DataField"
                        p:propertyName="id" p:label="ID"/>
              </list>
          </property>
          <property name="layoutManager.richTable.render" value="false" />
          <property name="subCollections">
              <list>
                  <bean parent="Uif-TableSubCollection-WithinSubSection">
                      <property name="propertyName" value="list1" />
                      <property name="collectionObjectClass" value=".." />
                      <property name="layoutManager.renderSequenceField" value="false" />
                      <property name="layoutManager.richTable.render" value="false" />
                      <property name="items">
                          <list>
                              <bean parent="Uif-DataField" 
                                    p:propertyName="field1" p:label="FIELD1"/>
                              <bean parent="Uif-DataField" 
                                    p:propertyName="field2" p:label="FIELD2"/>
                              <bean parent="Uif-DataField" 
                                    p:propertyName="field3" p:label="FIELD3"/>
                              <bean parent="Uif-DataField" 
                                    p:propertyName="field4" p:label="FIELD4"/>
                          </list>
                      </property>
                  </bean>
              </list>
          </property>
      </bean>
      

      Caused by: freemarker.core.NonNumericalException: Error: on line 135, column 39 in krad/WEB-INF/ftl/lib/grid.ftl
      Expecting a number here, found:
      at freemarker.core.StringBuiltins$numberBI.calculateResult(StringBuiltins.java:187)
      at freemarker.core.StringBuiltins$StringBuiltIn._getAsTemplateModel(StringBuiltins.java:71)
      at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
      at freemarker.core.ParentheticalExpression._getAsTemplateModel(ParentheticalExpression.java:75)
      at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
      at freemarker.core.Assignment.accept(Assignment.java:90)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.MixedContent.accept(MixedContent.java:92)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
      at freemarker.core.Environment.visit(Environment.java:428)
      at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.MixedContent.accept(MixedContent.java:92)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.IfBlock.accept(IfBlock.java:82)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.MixedContent.accept(MixedContent.java:92)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
      at freemarker.core.Environment.visit(Environment.java:428)
      at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.MixedContent.accept(MixedContent.java:92)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.Macro$Context.runMacro(Macro.java:172)
      at freemarker.core.Environment.visit(Environment.java:614)
      at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.MixedContent.accept(MixedContent.java:92)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.MixedContent.accept(MixedContent.java:92)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.Macro$Context.runMacro(Macro.java:172)
      at freemarker.core.Environment.visit(Environment.java:614)
      at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
      at freemarker.core.Environment.visit(Environment.java:221)
      at freemarker.core.Environment.include(Environment.java:1508)
      at freemarker.core.Interpret$TemplateProcessorModel.getWriter(Interpret.java:141)
      ... 357 more

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:

              Structure Helper Panel