Jsf 2 project structure

Does any expert have any particular preference for the JSF 2 project structure? Currently, I have the following:

root
  Java Resources: src
     dao.au.com.xyz
     model.au.com.xyz
  ant
  WebContent
     META-INF
     resources
        css
        javascript
        images
     WEB-INF
     sections (for common sections like: menu, header, footers)
     templates (common templates)
     views (xhtml pages)
     index.html (redirect to index.xhtml under views folder)

Is this structure reasonable / valid for the JSF 2 (Facelets) project structure? I could not find anything in the JSF specification close to what I want.

+3
source share
1 answer

It is subjective and personal and more dependent on the Servlet API Specification . As long as the exported WAR follows the directory structure as specified in the servlet specification, and in your / team's opinion it is the most suitable and easy to maintain, then it is perfect.

Java . , . . com.example.model .. model.com.example.

+3

Source: https://habr.com/ru/post/1768989/


All Articles