Class FormButton

Direct Known Subclasses:
Reset, Submit

public abstract class FormButton extends ClosingUIBean
FormButton.
  • Field Details

    • action

      protected String action
    • method

      protected String method
    • type

      protected String type
  • Constructor Details

    • FormButton

      public FormButton(ValueStack stack, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
  • Method Details

    • evaluateExtraParams

      public void evaluateExtraParams()
      Overrides:
      evaluateExtraParams in class UIBean
    • populateComponentHtmlId

      protected void populateComponentHtmlId(Form form)
      Override UIBean's implementation, such that component Html id is determined in the following order :-
      1. This component id attribute
      2. [containing_form_id]_[this_component_name]
      3. [containing_form_id]_[this_component_action]_[this_component_method]
      4. [containing_form_id]_[this_component_method]
      5. [this_component_name]
      6. [this_component_action]_[this_component_method]
      7. [this_component_method]
      8. [an increasing sequential number unique to the form starting with 0]
      Overrides:
      populateComponentHtmlId in class UIBean
      Parameters:
      form - enclosing form tag
    • supportsImageType

      protected abstract boolean supportsImageType()
      Indicate whether the concrete button supports the type "image".
      Returns:
      true if type image is supported.
    • setAction

      public void setAction(String action)
    • setMethod

      public void setMethod(String method)
    • setType

      public void setType(String type)