Class Form

    • Field Detail

      • LOGGER

        public static final java.util.logging.Logger LOGGER
    • Constructor Detail

      • Form

        public Form​(AbstractHtml base,
                    AbstractAttribute... attributes)
        Represents the root of an HTML or XHTML document. All other elements must be descendants of this element.
        Parameters:
        base - i.e. parent tag of this tag
        attributes - An array of AbstractAttribute
        Since:
        1.0.0
    • Method Detail

      • init

        protected void init​()
        invokes only once per object
        Since:
        1.0.0
      • getNameBasedJsObject

        public java.lang.String getNameBasedJsObject​(java.util.Set<java.lang.String> onlyForTagNames)
        prepares and gets the js object for the given tag names under this form tag. This js object may be used to return in onsubmit attribute.
        Parameters:
        onlyForTagNames - TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT
        Returns:
        the js object string for the given tag names. The returned js string will be as {name1.name1.value} where name1 is the value of name attribute of the field.
        Since:
        2.1.8
      • getNameBasedJsObject

        public java.lang.String getNameBasedJsObject​()
        prepares and gets the js object for the input tag names (TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT) under this form tag.
        NB:- If there are any missing input tag types, please inform webfirmframework to update this method.
        This js object may be used to return in onsubmit attribute.
        Returns:
        the js object string for field names of TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT. The returned js string will be as {name1.name1.value} where name1 is the value of name attribute of the field. If the input type is checkbox/radio then checked property will be included instead of value property.
        Since:
        2.1.8