What is JSF tag library? Explain any four html tag
-
JSF framework provides a standard HTML tag library.
-
Each tag will rendered into corresponding html output.
-
To use these html tags we have to use the following namespaces of URI in html node.
-
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html">
-
Two types of JSF Tag library
-
<%@taglib uri=" http://java.sun.com/jsf/core" prefix=" f" %>
-
<%@taglib uri=" http://java.sun.com/jsf/html" prefix=" h" %>
Sr |
JSF Tag |
HTML Tag |
1 |
h:inputText
|
HTML input of type="text" |
2 |
h:inputSecret
|
HTML input of type="password",
|
3 |
h:inputHidden |
HTML input of type="hidden". |
4 |
h:selectMany Checkbox
|
A group of HTML check boxes |
5 |
h:selectOne Listbox
|
Single HTML list box
|