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

Input field not rendering on collection add line item

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4.1
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-8951Property editors not getting picked up on add line and collection line items
      KULRICE-8504TableLayout Collection does not render correctly with separate add line
      KULRICE-13991Fill AFT Gap: Add Line ("Collection Add Line with Custom Actions")
      KULRICE-10762KRAD Demo Library Collections Auto Sequence adds commas to Input Fields
      KULRICE-9839Collection select prototype rendered on add line row
      KULRICE-11977Collection add line and line item enter key support implementation
      KULRICE-13992Fill AFT Gap: Add Line ("Collection Add Line with Dialog and Custom Actions")
      KULRICE-5299Add line on collections not checking required fields and not refreshing just the collection group
      KULRICE-9044KRAD "stacked" collection elements are not rendering add/delete buttons
      KULRICE-13010Investigate client side collection rendering
    • Rice Module:
      KRAD
    • KRAD Feature Area:
      UIF Component
    • Application Requirement:
      KS
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      Actually the more I try to play with the weirder it gets…

      I did change input field in addLineItems from
      <property name="addLineItems">
      <list>
      <bean parent="KS-Uif-InputField" p:fieldLabel.render="false" p:propertyName="name"
      p:additionalCssClasses="ks-uif-quickFinder" p:required="true”>
      to
      <property name="addLineItems">
      <list>
      <bean id="holidayCalendars" parent="KS-Uif-InputField" p:label=" " p:propertyName="name">

      NOTHING else was changed. However now I’m getting an error:
      “WARN org.kuali.rice.krad.uif.lifecycle.ViewLifecycleTaskBase - Error in lifecycle phase PopulateComponentFromExpressionGraphTask InputFieldBase holidayCalendars_add
      org.kuali.rice.core.api.exception.RiceRuntimeException: Object for which expression is configured on is null or does not implement UifDictionaryBean: 'fieldLabel' …”

      How can it be that adding bean id corrupts everything?

      Thank you!
      Val.

      From: vgadiyak@gmail.com vgadiyak@gmail.com
      Sent: Monday, May 12, 2014 2:19 PM
      To: rice.usergroup.krad@kuali.org
      Subject:

      {Rice KRAD User Group}

      Issue with Uif-TableCollectionSubSection

      Hello!

      After Rice Upgrade when I use

      <bean id="KS-PopulationWrapper-AddPopulationsSubSection" parent="Uif-TableCollectionSubSection"
      p:width="27%" p:id="populations_table">
      <property name="headerText" value="Population(s)" />
      <property name="collectionObjectClass" value="org.kuali.student.r2.core.population.dto.PopulationInfo" />
      <property name="propertyName" value="childPopulations" />
      <property name="layoutManager.renderSequenceField" value="false" />
      <property name="layoutManager.applyAlternatingRowStyles" value="false" />
      <property name="layoutManager.applyDefaultCellWidths" value="false" />
      <property name="layoutManager.richTable.render" value="false" />
      <property name="addLineItems">
      <list>
      <bean parent="KS-Uif-InputField" p:fieldLabel.render="false" p:propertyName="name"
      p:additionalCssClasses="ks-uif-quickFinder" p:required="true">
      <property name="control">
      <bean parent="KS-Uif-TextControl" p:size="40" p:readOnly="false" />
      </property>
      <property name="quickfinder">
      <bean parent="Uif-QuickFinder">
      <property name="dataObjectClassName" value="org.kuali.student.enrollment.class2.population.dto.PopulationWrapper"/>
      <property name="fieldConversions">
      <map>
      <entry key="populationInfo.id" value="id"/>
      <entry key="populationInfo.name" value="name"/>
      </map>
      </property>
      <property name="readOnlyLookupFields" value="populationInfo.stateKey" />
      <property name="quickfinderAction">
      <bean parent="KS-Uif-ActionLink" p:methodToCall="performLookup" p:id="lookup_searchPopulation" p:actionLabel="Find a Name" />
      </property>
      </bean>
      </property>
      </bean>
      </list>
      </property>
      <property name="items">
      <list>
      <bean parent="KS-Uif-DataField" p:fieldLabel.render="false" p:propertyName="name"
      p:style="font-weight:bold;" p:required="true">
      </bean>
      <bean parent="KS-Uif-DataField" p:render="false" p:propertyName="id" p:required="true"/>
      </list>
      </property>
      </bean>

      I don't see any input field (much less quick finder) set in "addLineItems" on screen. Only "Add" button (please, see pic attached).

      I did look at the html element and here's what I have there:
      <tr class="uif-collectionAddItem">
      <td>
      <div id="null_add" class="uif-inputField ks-uif-quickFinder" data-label="Name" data-role="InputField"></div>
      </td>
      <td class="uif-collection-column-action">
      <div id="u178h53q_add" class="uif-horizontalFieldGroup" data-group="u9bf7df_add" data-parent="populations_table"></div>
      </td>
      </tr>

      This is what I had before the Rice Upgrade:
      <tr class="uif-collectionAddItem">
      <td rowspan="1" colspan="1" role="presentation">
      <div id="u100187_add" class="uif-inputField ks-uif-quickFinder" data-role="InputField" data-parent="populations_table"></div>
      <input type="hidden" value="jQuery(document).ready(function(e)

      { runValidationScript(fun…\040\f\r\n]*$/.test(value);}

      , "Can be any character");});});" data-for="u100187_add" data-role="script" script="first_run"></input>
      </td>
      <td rowspan="1" colspan="1" role="presentation">
      <div id="u100156_add" class="uif-horizontalFieldGroup" data-group="u100159_add" data-parent="populations_table"></div>
      </td>
      </tr>
      How would I go around it? Any property that needs to be set now?

      Thank you!
      Val.

        Issue Links

          Activity

          There are no comments yet on this issue.

            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