Thursday, August 21, 2008

SF formTag

This tag contains some attributes that are discussed below :

  • id : This attribute is used to uniquely identify the element within the closest container.
  • rendered : Its a boolean attribute. Its default value is true. It determines whether this component should be rendered or not.
  • binding : It takes the value binding expression that is used to link the component to the property of the backing bean.
  • dir : It is used to set the direction of the text to be displayed. It can take two values LTR(left to right) and RTL (right to left).
  • lang : It is used to set the base language of the component when displayed.
  • style : It is used to set the CSS style definition for the component.
  • title : It is the standard html attribute. It is used to set the tooltip text for this component.
  • styleClass : It is used to set the CSS class for the component.
  • target : This is used to identify the name of the frame where the response generated by the server is displayed when we submit the form.
  • accept : Its a comma separated list of content types that is handled by the server which processes this form.
  • acceptcharset : It is used to list character encoding used for the data input by the user and that will be accepted by the user.
  • enctype : This is used to set the content type of the data that will be submitted to the server.
  • onclick : Script to be invoked when the element is clicked.
  • ondblclick : It is used for Java Script code to be invoked when the element is double-clicked.
  • onmousedown : It is used for Java Script code to be invoked when the pointing device is pressed over this element.
  • onmouseup : It is used for Java Script code to be invoked when the pointing device is released over this element.
  • onmouseover : It is used for Java Script code to be invoked when the pointing device is moved into this element.
  • onmousemove : It is used for Java Script code to be invoked when the pointing device is moved while it is in this element.
  • onmouseout : It is used for Java Script code to be invoked when the pointing device is moves out of this element.
  • onkeypress : It is used for Java Script code to be invoked when a key is pressed over this element.
  • onkeydown : It is used for Java Script code to be invoked when a key is pressed down over this element.
  • onkeyup : It is used for Java Script code to be invoked when a key is released over this element.
  • onreset : It is used for Java Script code to be invoked when form is reset.
  • onsubmit : It is used for Java Script code to be invoked when form is submitted.
source: roseindia.net

No comments: