public class PageValidationMessages extends GroupValidationMessages implements LifecycleEventListener
componentCode, namespaceCode
Constructor and Description |
---|
PageValidationMessages() |
Modifier and Type | Method and Description |
---|---|
protected void |
addValidationMessageDataAttributes(Component parent)
Overridding to prevent the initial writing of data attributes until the view has been processed and
we collection unmatched messages (through the lifecycle event).
|
void |
generateMessages(View view,
Object model,
Component parent)
Generates the messages based on the content in the messageMap
|
boolean |
isShowPageSummaryHeader()
If true, shows the page summary header (message count header message in the message block).
|
void |
processEvent(ViewLifecycle.LifecycleEvent lifecycleEvent,
View view,
Object model,
LifecycleElement eventElement)
Check for message keys that are not matched anywhere on the page, these unmatched messages must still be
displayed at the page level.
|
void |
setShowPageSummaryHeader(boolean showPageSummaryHeader)
Set the page summary header to show or not show.
|
collectIdsFromItems, isCloseable, isCollapseAdditionalFieldLinkMessages, isDisplayFieldLabelWithMessages, isDisplayHeaderMessageSummary, setCloseable, setCollapseAdditionalFieldLinkMessages, setDisplayFieldLabelWithMessages, setDisplayHeaderMessageSummary
addNestedGroupKeys, addValidationDataSettingsValue, getAdditionalKeysToMatch, getErrors, getInfos, getKeys, getMessages, getWarnings, isDisplayMessages, setAdditionalKeysToMatch, setAdditionalKeysToMatch, setDisplayMessages, setErrors, setInfos, setWarnings
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
public PageValidationMessages()
public void generateMessages(View view, Object model, Component parent)
generateMessages
in class GroupValidationMessages
view
- the current Viewmodel
- the current modelparent
- the parent of this ValidationMessagesprotected void addValidationMessageDataAttributes(Component parent)
This data is used by the validation framework clientside. Some special handling at this level includes retrieving the groups and fields generated by different collection layouts and handling page and fieldGroup scenarios slightly differently due to the nature of how they are built out in the js.
addValidationMessageDataAttributes
in class GroupValidationMessages
parent
- component that is the parent of the validation messagespublic void processEvent(ViewLifecycle.LifecycleEvent lifecycleEvent, View view, Object model, LifecycleElement eventElement)
processEvent
in interface LifecycleEventListener
lifecycleEvent
- event that occurredview
- view instance the lifecycle is being processed formodel
- object containing the model dataeventElement
- element instance the event occurred on/forpublic boolean isShowPageSummaryHeader()
public void setShowPageSummaryHeader(boolean showPageSummaryHeader)
showPageSummaryHeader
- Copyright © 2005–2015 The Kuali Foundation. All rights reserved.