Class SaveFormBindingImpl

    • Constructor Detail

      • SaveFormBindingImpl

        public SaveFormBindingImpl​(Binder binder,
                                   Component comp,
                                   java.lang.String formId,
                                   java.lang.String saveExpr,
                                   ConditionType conditionType,
                                   java.lang.String command,
                                   java.util.Map<java.lang.String,​java.lang.Object> bindingArgs,
                                   java.lang.String validatorExpr,
                                   java.util.Map<java.lang.String,​java.lang.Object> validatorArgs)
    • Method Detail

      • getValidatorArgs

        public java.util.Map<java.lang.String,​java.lang.Object> getValidatorArgs()
        Description copied from interface: SaveBinding
        Returns an argument <tags, object> pairs map for validator.
        Specified by:
        getValidatorArgs in interface SaveBinding
        Returns:
        an argument <tags, object> pairs map for validator.
      • save

        public void save​(BindContext ctx)
        Description copied from interface: SaveBinding
        Save data from the source attribute into the target property.
        Specified by:
        save in interface SaveBinding
        Parameters:
        ctx - the binding runtime context
      • hasValidator

        public boolean hasValidator()
        Description copied from interface: SaveBinding
        Returns whether to do validation. which means, if true, than getValidator should not return null
        Specified by:
        hasValidator in interface SaveBinding
        Returns:
        whether to do validation.
      • getValidatorExpressionString

        public java.lang.String getValidatorExpressionString()