Package com.ptc.core.ui.validation
Class PostSelectValidationHelper
java.lang.Object
com.ptc.core.ui.validation.PostSelectValidationHelper
This class can be used by clients wanting to call the UI Validation Service to perform post-select validation
operations.
Supported API: true
Supported API: true
-
Method Summary
Modifier and TypeMethodDescriptionperformPostSelectValidation(NmCommandBean commandBean, String actionName, String objectType, boolean isWizard) This method will call the UI Validation Service to validate whether or not an action selected by the user should proceed.
-
Method Details
-
performPostSelectValidation
public UIValidationFeedbackMsg performPostSelectValidation(NmCommandBean commandBean, String actionName, String objectType, boolean isWizard) throws WTException This method will call the UI Validation Service to validate whether or not an action selected by the user should proceed.- Parameters:
commandBean- - the NmCommandBean being used in the client/JSP layeractionName- - the action name (from *actions.xml) being executedobjectType- - the object type (from *actions.xml) of the action being executedisWizard- - if the action launches a wizard, this should be set to true- Returns:
- a UIValidationFeedbackMsg object whose messageType indicates whether or not the action should proceed
If the messageType is ERROR, the action should not be allowed to proceed
If the messageType is SUCCESS, the action should be allowed to proceed
If the messageType is CONFIRMATION, the user should be prompted to determine whether or not to proceed
The messageText attribute of the UIValidationFeedbackMsg contains any text that should be displayed to the user in a dialog. This attribute will be "" (empty string) if there is no text to display. - Throws:
WTException-
Supported API: true
-