Details
-
Type:
Bug Fix
-
Status: Closed
-
Priority:
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
-
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>
Attachments
Issue Links
- cloned from
-
KULRICE-7208 Template
-
- Closed
-
- is related to
-
KSENROLL-4394 Activity Offering - after submitting edit, Seats Remaining field value is blank
-
- Closed
-
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