Dynamic Web Module 4.0 (web.xml)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | <? xml version = "1.0" encoding = "UTF-8" ?> < web-app id = "WebApp_ID" version = "4.0" xsi:schemaLocation = "http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" > < display-name >AppWebCRUD</ display-name > <!-- Welcome File List --> < welcome-file-list > < welcome-file >vista/index.xhtml</ welcome-file > </ welcome-file-list > <!-- Faces Controller --> < servlet > < servlet-name >Faces Servlet</ servlet-name > < servlet-class >javax.faces.webapp.FacesServlet</ servlet-class > < load-on-startup >1</ load-on-startup > < enabled >true</ enabled > < async-supported >false</ async-supported > </ servlet > < servlet-mapping > < servlet-name >Faces Servlet</ servlet-name > < url-pattern >/faces/*</ url-pattern > </ servlet-mapping > <!-- Primefaces Themes --> < context-param > < param-name >primefaces.THEME</ param-name > < param-value >cruze</ param-value > </ context-param > <!-- Project Stage --> < context-param > < param-name >javax.faces.PROJECT_STAGE</ param-name > < param-value >Development</ param-value > <!-- Production --> </ context-param > <!-- State Saving Method --> < context-param > < param-name >javax.faces.STATE_SAVING_METHOD</ param-name > < param-value >server</ param-value > </ context-param > </ web-app > |
Faces Config 2.3 (faces-config.xml)
1 2 3 4 5 6 7 | <? xml version = "1.0" encoding = "UTF-8" ?> xsi:schemaLocation = "http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_3.xsd" version = "2.3" > </ faces-config > |
Para trabajar con JSF 2.3 (beans.xml)
1 2 3 4 5 6 7 | <? xml version = "1.0" encoding = "UTF-8" ?> xsi:schemaLocation = "http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_3.xsd" version = "2.3" > </ faces-config > |
Para trabajar con JSF 2.3 (pom,xml)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | <? xml version = "1.0" encoding = "UTF-8" ?> xsi:schemaLocation = "http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" > < modelVersion >4.0.0</ modelVersion > < groupId >com.jsf</ groupId > < artifactId >proyectoJSF</ artifactId > < version >0.0.1-SNAPSHOT</ version > < packaging >war</ packaging > < properties > < project.build.sourceEncoding >UTF-8</ project.build.sourceEncoding > < project.reporting.outputEncoding >UTF-8</ project.reporting.outputEncoding > < maven.compiler.source >1.8</ maven.compiler.source > < maven.compiler.target >1.8</ maven.compiler.target > < failOnMissingWebXml >false</ failOnMissingWebXml > </ properties > < dependencies > < dependency > < groupId >javax</ groupId > < artifactId >javaee-api</ artifactId > < version >8.0</ version > < scope >provided</ scope > </ dependency > </ dependencies > < build > < finalName >proyectoJSF</ finalName > < pluginManagement > <!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> < plugins > < plugin > < artifactId >maven-clean-plugin</ artifactId > < version >3.1.0</ version > </ plugin > <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging --> < plugin > < artifactId >maven-resources-plugin</ artifactId > < version >3.0.2</ version > </ plugin > < plugin > < artifactId >maven-compiler-plugin</ artifactId > < version >3.8.0</ version > </ plugin > < plugin > < artifactId >maven-surefire-plugin</ artifactId > < version >2.22.1</ version > </ plugin > < plugin > < artifactId >maven-war-plugin</ artifactId > < version >3.2.2</ version > </ plugin > < plugin > < artifactId >maven-install-plugin</ artifactId > < version >2.5.2</ version > </ plugin > < plugin > < artifactId >maven-deploy-plugin</ artifactId > < version >2.8.2</ version > </ plugin > </ plugins > </ pluginManagement > </ build > </ project > |
...
No hay comentarios, ¡cuéntame algo!
Me gustaría saber tu opinión. ¡Saludos!