Friday 8 January 2016

what is mean by JSF -JAVA

What is JSF?
  Java Server Faces
JSF technology is a framework for developing, building server side User Interface Components and using them in a web application.JSF technology is based on the Model View Controller (MVC) architecture for separating logic from presentation.
What is MVC Design Pattern?
MVC design pattern designs an application using three separate modules:
Module
Description
Model
Carries Data and login
View
Shows User Interface
Controller
Handles processing of an application.

Purpose of MVC design pattern is to separate model and presentation to enable developers to set focus on their core skills and collaborate more clearly.
Web Designers have to concentrate only on view layer rather than model and controller layer. Developers can change the code for model and typically need not to change view layer. Controllers are used to process user actions. In this process layer model and views may be changed.
Benefits Of JSF
JSF has various benefits these are as :
  • The  MVC architecture facilitate to separate the behavior from presentation.
  • JSF provides the facility to link the separate pieces of the development process to a single piece by offering a simple programming model.
  • JSF provides the built-in support of Ajax, bookmarking, and page-load actions.
  • Provides more security.
  • Reusability of codes.
JSF Integration
JSF can be integrated with other frameworks like, Spring, JDBC etc. 
Basic JSF Tags
JSF provides a standard HTML tag library. These tags get rendered into corresponding html output.
For these tags you need 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"
> 
Following are important Basic Tags in JSF 2.0:
S.N.
Tag & Description
1
h:inputText
Renders a HTML input of type="text", text box.
2
h:inputSecret
Renders a HTML input of type="password", text box.
3
h:inputTextarea
Renders a HTML textarea field.
4
h:inputHidden
Renders a HTML input of type="hidden".
5
h:selectBooleanCheckbox
Renders a single HTML check box.
6
h:selectManyCheckbox
Renders a group of HTML check boxes.
7
h:selectOneRadio
Renders a single HTML radio button.
8
h:selectOneListbox
Renders a HTML single list box.
9
h:selectManyListbox
Renders a HTML multiple list box.
10
h:selectOneMenu
Renders a HTML combo box.
11
h:outputText
Renders a HTML text.
12
h:outputFormat
Renders a HTML text. It accepts parameters.
13
h:commandButton
Renders a HTML input of type="submit" button.
14
h:Link
Renders a HTML anchor.


No comments:

Post a Comment