Class PropertiesFormParams
- java.lang.Object
-
- javax.faces.view.facelets.TagHandler
-
- de.xima.fc.workflow.taglib.taghandler.PropertiesFormParams
-
- All Implemented Interfaces:
javax.faces.view.facelets.FaceletHandler
public class PropertiesFormParams extends javax.faces.view.facelets.TagHandler
Tag handler that lets you change the params of the properties form on a per action source basis, e.g. for a certain command button or AJAX request.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description PropertiesFormParams(javax.faces.view.facelets.TagConfig config)
The tag constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(javax.faces.view.facelets.FaceletContext context, javax.faces.component.UIComponent parent)
If the parent component is an instance ofUICommand
and is new and we're in the restore view phase of a postback, then delegate to#processApply(UIComponent, PropertiesFormOverrides, boolean)
.Boolean
isRemoveValidationFailures(javax.faces.view.facelets.FaceletContext ctx)
Boolean
isSkipValidators(javax.faces.view.facelets.FaceletContext ctx)
Boolean
isUpdateModelOnValidationFailure(javax.faces.view.facelets.FaceletContext ctx)
protected void
processApply(javax.faces.component.UIComponent command, PropertiesFormOverrides overrides)
Check if the given command component has been invoked during the current request and if so, then instruct the parent<o:form>
to ignore the validation.
-
-
-
Method Detail
-
apply
public void apply(javax.faces.view.facelets.FaceletContext context, javax.faces.component.UIComponent parent) throws IOException
If the parent component is an instance ofUICommand
and is new and we're in the restore view phase of a postback, then delegate to#processApply(UIComponent, PropertiesFormOverrides, boolean)
.- Throws:
IllegalStateException
- When the parent component is not an instance ofUICommand
.IOException
-
isRemoveValidationFailures
public Boolean isRemoveValidationFailures(javax.faces.view.facelets.FaceletContext ctx)
- Parameters:
ctx
- Current facelet context.- Returns:
- Override for
PropertiesFormBase.isRemoveValidationFailures()
.
-
isSkipValidators
public Boolean isSkipValidators(javax.faces.view.facelets.FaceletContext ctx)
- Parameters:
ctx
- Current facelet context.- Returns:
- Override for
PropertiesForm.isSkipValidators()
.
-
isUpdateModelOnValidationFailure
public Boolean isUpdateModelOnValidationFailure(javax.faces.view.facelets.FaceletContext ctx)
- Parameters:
ctx
- Current facelet context.- Returns:
- Override for
PropertiesFormBase.isUpdateModelOnValidationFailure()
.
-
processApply
protected void processApply(javax.faces.component.UIComponent command, PropertiesFormOverrides overrides)
Check if the given command component has been invoked during the current request and if so, then instruct the parent<o:form>
to ignore the validation.- Parameters:
command
- The command component.overrides
-isSkipValidators
-- Throws:
IllegalStateException
- When the given command component is not inside a<o:form>
.
-
-