A
A
Alexiuscrow2014-12-06 21:05:41
Java
Alexiuscrow, 2014-12-06 21:05:41

Where to put business logic for JSF?

For example, reading data from a database. where it should be performed.
The first thought is to pull methods from beans ... but, I watched a lesson that said that it was not good to place such things in Backing Beans.
Where to place business logic when working with JSF?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
raynn, 2014-12-06
@raynn

JSFs work on the MVC principle. Backing beans usually play the role of a controller here. Reading from the database is performed in the class that plays the role of model. Other logic can be found in helper classes, depending on what it refers to.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question