Class FormContainer

All Implemented Interfaces:
Component, Container, Serializable, Cloneable

public class FormContainer extends AbstractContainer
The FormContainer to build a HTML form.
See Also:
  • Constructor Details

    • FormContainer

      public FormContainer()
      Constructs a new form container.
    • FormContainer

      public FormContainer(String id)
      Constructs a new form container.
      Parameters:
      id - the unique id of the container
    • FormContainer

      public FormContainer(String id, String url, String method)
      Constructs a new form container.
      Parameters:
      id - the unique id of the container
      url - the url to get the response
      method - "GET" or "POST"
  • Method Details

    • setAction

      public void setAction(String url, String method, String enctype)
      sets the action of the form
      Parameters:
      url - the url to get the response
      method - "GET" or "POST"
      enctype - the mime type of the request
    • setContent

      public void setContent(Object o)
      Description copied from class: AbstractComponent
      sets the content of the component
      Specified by:
      setContent in interface Component
      Overrides:
      setContent in class AbstractComponent
      Parameters:
      o - any object where the string representation is used for rendering
    • getContent

      public Object getContent()
      Specified by:
      getContent in interface Component
      Overrides:
      getContent in class AbstractComponent
      Returns:
      the content object of the component