D
D
Denis2015-03-31 08:54:08
Java
Denis, 2015-03-31 08:54:08

What is jsf and richfaces?

Hello.
Explain in simple human language what is Richfaces and what is jsf ?
Where are these technologies used and what are their advantages?
Maybe I just searched badly or it was written too abstrusely.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Smirnov, 2015-03-31
@m5web

Oracle says JSF:

JavaServer Faces technology establishes the standard for building server-side user interfaces

If this is " too abstruse ", then I'll try to simplify. JSF is a standard that describes one of the approaches that can be used to generate an HTML page on the server, and then transfer it to the client (browser). There are many technologies for doing the same, this is one of them.
There are core libraries that implement the JSF standard, on the above page from Oracle there is a link to Mojarra.
Richfaces is one library that extends the JSF standard with its perks. There are other libraries as well.
Usually, a JSF project includes Mojarra and one of the extensions, and they almost always get along well. Putting 2 extensions is not comme il faut and is fraught, plus a mess in the project. Something like installing two engines on a car is a rare case ...
General principle of work. You write XML pages that contain standard HTML and JSF-specific markup. When a page is accessed from a browser (GET/POST), the JSF libraries on the server parse the XML page, render it into HTML for the browser, and return that in the response. Source XML pages describe both the markup and populating that markup with data from the server. Thus, when processing a request on the server, specific tags are converted into HTML elements, and these elements are filled with data from your business logic.
The technology is quite common in Java EE. As for the benefits - this is just a topic for holivars ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question