Namespace: xmlns:h="http://java.sun.com/jsf/html"

Compliance: JSF 2.0

Tag: h:form

Renders the HTML form element.

Attributes

  • accept String List of content types that a server processing this form will handle correctly.
  • acceptcharset String List of character encodings accepted by the server for this form.
  • enctype String Content type used to submit the form to the server. If not specified, the default value is application/x-www-form-urlencoded.
  • target String Name of a frame where the response retrieved after this form submit is to be displayed.
  • validate Natural The validity duration of the CSRF token created for the form submit protection.
  • expireMessage String A ValueExpression enabled attribute that, if present, will be used as the text of the expiration message when the form CSRF token has expired.
  • dir String Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left).
  • lang String Code describing the language used in the generated markup for this component.
  • onchange String Javascript code executed when the value of the element changes.
  • onclick String Javascript code executed when a pointer button is clicked over this element.
  • ondbclick String Javascript code executed when a pointer button is double clicked over this element.
  • onkeydown String Javascript code executed when a key is pressed down over this element.
  • onkeypress String Javascript code executed when a key is pressed or released over this element.
  • onkeyup String Javascript code executed when a key is released over this element.
  • onmousedown String Javascript code executed when a pointer button is pressed down over this element.
  • onmousemove String Javascript code executed when a pointer button is moved within this element.
  • onmouseout String Javascript code executed when a pointer button is moved away from this element.
  • onmouseover String Javascript code executed when a pointer button is moved onto this element.
  • onmouseup String Javascript code executed when a pointer button is released over this element.
  • onreset String Javascript code executed when this form is reset.
  • onsubmit String Javascript code executed when this form is submitted.
  • style String CSS style(s) to be applied when this component is rendered.
  • styleClass String Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be passed through as the "class" attribute on generated markup.
  • title String Advisory title information about markup elements generated for this component.

Example

XHTML

Generated HTML