jsf-2.3

FacesContext not injectable in Wildfly 14 with JSF 2.3 (Mojarra, main module)

不羁的心 提交于 2019-11-30 19:49:56
问题 I have a bean: import javax.faces.context.FacesContext; import javax.faces.view.ViewScoped; ... @Named @ViewScoped public class SimpleBean implements Serializable { private static final long serialVersionUID = 1L; @Inject protected FacesContext facesContext; ... } According to https://arjan-tijms.omnifaces.org/p/jsf-23.html#1316 this should work with 2.3 ... When deploying to Wildfly 14, this results in: 13:02:33,516 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 72)

JSF-2.3 not finding my @Named CDI-1.2 managed bean

房东的猫 提交于 2019-11-28 13:06:46
Having recently upgraded to JSF 2.3 from 2.2, I noticed that @ManagedBean was deprecated, and after some research found that I should be using CDI-1.2 managed beans and the @Named annotation. However after changing over to @Named, the JSF pages can't find the managed bean: javax.servlet.ServletException: /index.xhtml @38,38 value="#{controller.telstraPass}": Target Unreachable, identifier 'controller' resolved to null I am using Maven, eclipse and WebSphere Application Server liberty v16.0.0.4 No Idea what I am doing wrong, here are the relevant files: Controller.java: package ManagedBeans;

Changing faces-config.xml from 2.2 to 2.3 causes javax.el.PropertyNotFoundException: Target Unreachable, identifier 'bean' resolved to null

六月ゝ 毕业季﹏ 提交于 2019-11-27 09:43:06
Have the following code snippets: Bean: import javax.faces.view.ViewScoped; import javax.inject.Named; @Named(value = "directoryBean") @ViewScoped public class DirectoryBean implements Serializable { private static final long serialVersionUID = 1L; .... } faces-config.xml <?xml version="1.0" encoding="UTF-8"?> <faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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> group.xhtml <ui

JSF-2.3 not finding my @Named CDI-1.2 managed bean

这一生的挚爱 提交于 2019-11-27 07:35:31
问题 Having recently upgraded to JSF 2.3 from 2.2, I noticed that @ManagedBean was deprecated, and after some research found that I should be using CDI-1.2 managed beans and the @Named annotation. However after changing over to @Named, the JSF pages can't find the managed bean: javax.servlet.ServletException: /index.xhtml @38,38 value="#{controller.telstraPass}": Target Unreachable, identifier 'controller' resolved to null I am using Maven, eclipse and WebSphere Application Server liberty v16.0.0

How to install one jar variant of JSF 2.3 (javax.faces.jar) on WildFly

北战南征 提交于 2019-11-27 01:59:36
I want to use the JSF 2.3 on my application, but WildFly uses the 2 JAR variant for 2.2. Oracle said here https://javaserverfaces.java.net/2.3/download.html that won't release a 2.3 2 JAR variant. BalusC Here's the manual procedure: Extract javax.faces.jar with a ZIP tool. You'll get 3 folders com , javax and META-INF . Pack com and META-INF folders into jsf-impl.jar with a ZIP tool. Then, delete all files/subfolders in META-INF except of MANIFEST.MF . Pack javax and META-INF folders into jsf-api.jar with a ZIP tool. Continue here with those JARs: Upgrade JSF / Mojarra in JBoss AS / EAP /