Class 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
    • Field Summary

      • Fields inherited from class javax.faces.view.facelets.TagHandler

        nextHandler, tag, tagId
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertiesFormParams​(javax.faces.view.facelets.TagConfig config)
      The tag constructor.
    • Constructor Detail

      • PropertiesFormParams

        public PropertiesFormParams​(javax.faces.view.facelets.TagConfig config)
        The tag constructor.
        Parameters:
        config - The configuration for this tag to use.
    • 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 of UICommand 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 of UICommand.
        IOException
      • isSkipValidators

        public Boolean isSkipValidators​(javax.faces.view.facelets.FaceletContext ctx)
        Parameters:
        ctx - Current facelet context.
        Returns:
        Override for PropertiesForm.isSkipValidators().
      • 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>.