четверг, 26 апреля 2012 г.

JSF HTML tag library - Form


h:form

This tag renders an HTML form element. It uses the "post-back" technique to submit form data back to the page that contains the form. The use of the POST method is also required and it is not possible to use the GET method for forms generated by this tag.
If your application requires the use of the GET method for form submission, your options include using plain HTML forms, binding request parameters to backing bean properties, and using the outputLink tag to generate dynamic hyperlinks.
Example
<h:form id="formid"></h:form>
HTML Output
<form id="formid" name="formid" method="post" action="/yourapp/form.jsp" enctype="application/x-www-form-urlencoded"></form>

Tag Attributes

acceptText
 
The accept attribute identifies the list of content types that the server processing this form is able to handle.
acceptcharsetText
 
The acceptcharset attribute identifies the list of character encodings for user input data that the server processing this form will accept.
bindingExpression
 
The value-binding expression linking this component tag to a backing bean property.
dirEnumerated
 
The dir attribute is a standard HTML attribute that overrides the default text directionality for this component. The values accepted for this component are "LTR" (left-to-right) and "RTL" (right-to-left).
enctypeEnumerated
 
The enctype attribute sets the content type of the data to be submitted to the server. The default value for this attribute is "application/x-www-form-urlencoded".
idText
 
The unique identifier value for this component. The value must be unique within the closest naming container.
langText
 
The lang attribute is a standard HTML attribute that sets the code describing the language to be used in the markup generated by this component.
onclickText
 
The onclick attribute sets the JavaScript code to execute when the mouse pointer is clicked over this element.
ondblclickText
 
The ondblclick attribute sets the JavaScript code to execute when the mouse pointer is double-clicked over this element.
onkeydownText
 
The onkeydown attribute sets the JavaScript code to execute when a key is pressed down over this element.
onkeypressText
 
The onkeypress attribute sets the JavaScript code to execute when a key is pressed and released over this element.
onkeyupText
 
The onkeyup attribute sets the JavaScript code to execute when a key is released over this element.
onmousedownText
 
The onmousedown attribute sets the JavaScript code to execute when the mouse pointer is pressed down over this element.
onmousemoveText
 
The onmousemove attribute sets the JavaScript code to execute when the mouse pointer is moved within this element.
onmouseoutText
 
The onmouseout attribute sets the JavaScript code to execute when the mouse pointer is moved away from this element.
onmouseoverText
 
The onmouseover attribute sets the JavaScript code to execute when the mouse pointer is moved onto this element.
onmouseupText
 
The onmouseup attribute sets the JavaScript code to execute when the mouse button is released over this element.
onresetText
 
The onreset attribute sets the JavaScript code to execute when the form is reset.
onsubmitText
 
The onsubmit attribute sets the JavaScript code to execute when the form is submitted.
renderedBoolean
 
A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered.
styleCSS Style
 
The style attribute sets the CSS style definition to be applied to this component when it is rendered.
styleClassCSS Class
 
The styleClass attribute sets the CSS class to apply to this component when it is rendered.
targetText
 
The target attribute identifies the name of a frame into which the resource retrieved by this hyperlink should be displayed.
titleText
 
The title attribute is a standard HTML attribute that sets the tooltip text to display for the rendered component.

Комментариев нет:

Отправить комментарий