Home Jsf JSF HTML Tag Reference



JSF HTML Tag Reference
Posted on: May 28, 2007 at 12:00 AM
In this section, you will learn more about html tags provided in JSF. JSF HTML tags are used for design the page by using server side code.

JSF HTML Tag Reference

    

In this section, you will learn more about html tags provided in JSF. JSF HTML tags are used for design the page by using server side code. This tag is used by specifying the uri and prefix attribute of the taglib directive at the top of your JSP file. These are illusrated below as follows:

http://java.sun.com/jsf/html

This is the uri for the JSF html tags. And for the prefix value commonly "h" is used but you can put anything as value of the prefix attribute of the taglib directive. When you declare any html tag as a JSF tag then you should write the tag as follows:

<htmlprefixvalue:tagName attribute1="value" attribute2="value"></htmlprefixvalue:tagName attribute1="value" attribute2="value">.

This is the syntax of specifying the html tag as a jsf tag. You can take an example of creation an input box by using jsf html tag as follows:

If the prefix value is "h" then the syntax will be seen like : <h:inputText value="This is a text box."></h:inputText>.

All the html tags have been used in the Rose India JSF Tutorial as you will get one by one ahead. You can skip for next section for getting html tags overview with complete code examples that can be used directly in your web application for creating several html components as the need of your application.

Related Tags for JSF HTML Tag Reference:
javahtmlccomjsftagssedvaluetagurinameattributethissunwritejsfortaglibxvalprefixrefldglibwssheitdirectivelibcanliputuseulinmlasmtrthincajcldeclaredircommonmewhensrectsudirectatanyhtmisirllivprefollowandarvattssrithshoav.comalueclfixprndonlyonomolonl


More Tutorials from this section

Ask Questions?    Discuss: JSF HTML Tag Reference   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.