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

Errors that are added for an group id (without a header) or a property within the group are not bubbling up

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.1
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-7285No ids for caption header on Image elements
      KULRICE-7524Validation errors display and undefined field group message for group that exists within other groups (not sections)
      KULRICE-10391Creating a new view header without right group throws error
      KULRICE-6833Enable onclick event for Group components
      KULRICE-12620Framework should not override header and footer on line group prototypes
      KULRICE-8195add suffix to id from groups id
      KULRICE-7213Add before, inline, and after groups to header component
      KULRICE-8541Validation errors are shown when a refresh happens within a group that has a field that was progressively hidden with an error
      KULRICE-4137Validations and labels for group qualfications not getting correctly picked up
      KULRICE-7739Error when trying to nest one group inside of another group.
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      Reported through user group. Dev tried to add an error associated with a groups id, but the error is not displaying. Issue is the group did not have a header and the errors were not bubbling up. We need to add a test case for this as well.

      I have been trying to display an error message during the addlinevalidation. Here is my barebone performAddLineValidation() method in the maintainableImpl class and the snippet of my xml configuration. By setting the breakpoint inside performAddLineValidation(), I saw it was called but just no error message was printed to the screen. No exceptions were thrown either.
      Could you guys shed some light on this weird issue? Really appreciate it!

      protected boolean performAddLineValidation(View view, CollectionGroup collectionGroup, Object model, Object addLine)

      { ContextInfo context = ContextUtils.getContextInfo(); GlobalVariables.getMessageMap().putErrorForSectionId("populations_table", PopulationConstants.POPULATION_MSG_ERROR_POPULATION_NOT_FOUND, "test test"); return super.performAddLineValidation(view, collectionGroup, model, addLine); }

      =========================================================================
      <bean id="KS-PopulationWrapper-AddPopulationsSection" parent="Uif- HorizontalBoxSubSection" >
      <property name="headerText" value="Population(s)"/>
      <property name="items">
      <list>
      <bean id="KS-PopulationWrapper- AddPopulationsSubSection" parent="Uif-TableCollectionSubSection"
      p:collectionLookup.render="false" p:width="27%"
      p:id="populations_table">
      <property name="headerText" value="" />
      <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="Uif-InputField"
      p:fieldLabel.render="false" p:propertyName="name"
      p:style="font-weight:bold;"
      p:required="true">
      <property name="control">
      <bean parent="Uif-TextControl"
      p:size="40" p:ReadOnly="false" />
      </property>
      <property name="quickfinder.dataObjectClassName"
      value="org.kuali.student.enrollment.class2.population.dto.PopulationWrapper"/
      >
      <property name="quickfinder.fieldConversions">
      <map>
      <entry key="populationInfo.id"
      value="id"/>
      <entry key="populationInfo.name" value="name"/>
      </map>
      </property>
      </bean>
      </list>
      </property>
      <property name="items">
      <list>
      <bean parent="Uif-DataField"
      p:fieldLabel.render="false" p:propertyName="name"
      p:style="font-weight:bold;"
      p:required="true">
      </bean>
      <bean parent="Uif-DataField"
      p:render="false" p:propertyName="id" p:required="true"/>
      </list>
      </property>
      </bean>
      </list>
      </property>
      </bean>

        Issue Links

          Activity

          Hide
          Jerry Neal (Inactive) added a comment -

          Seems that none of the ways of adding server side validation messages is working:

          One more thing, Jerry. Even when I tried to use GlobalVariables.getMessageMap().putError(java.lang.String propertyName, org.kuali.rice.krad.util.ErrorMessage message), it didn't work.

          Thanks again!
          David

          Show
          Jerry Neal (Inactive) added a comment - Seems that none of the ways of adding server side validation messages is working: One more thing, Jerry. Even when I tried to use GlobalVariables.getMessageMap().putError(java.lang.String propertyName, org.kuali.rice.krad.util.ErrorMessage message), it didn't work. Thanks again! David
          Hide
          Jessica Coltrin (Inactive) added a comment -

          moving non-blocker and non-critical m4 Jiras to 2.2-backlog

          Show
          Jessica Coltrin (Inactive) added a comment - moving non-blocker and non-critical m4 Jiras to 2.2-backlog
          Hide
          Jessica Coltrin (Inactive) added a comment -

          Since these were fixed on the trunk, they are 2.3.

          Show
          Jessica Coltrin (Inactive) added a comment - Since these were fixed on the trunk, they are 2.3.

            People

            • Assignee:
              Brian Smith (Inactive)
              Reporter:
              Jerry Neal (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel