myfaces

JSF2 MyFaces and CDATA makes f:ajax render fail

戏子无情 提交于 2021-02-05 11:29:06
问题 I'm facing some problems using CDATA blocks inside h:outputscripts with MyFaces 2.0... but I don't know exactly if I should avoid using CDATA with JSF2 or if it is because I do things wrong. Maybe it is because I use many scripts in many Composite components... The fact is that when I have some composite components that contain scripts with surrounded by CDATA blocks, other scripts in the page doen't work. Removing CDATAs solves the issue. Nevertheless I've had an issue where using CDATA

What is the difference between put and add method in statehelper in JSF 2

假如想象 提交于 2021-01-28 22:04:27
问题 What is the difference between: Object put(Serializable key, Object value) void add(Serializable key, Object value) methods in StateHelper in JSF? 回答1: I found the api documentation not that helpful myself and investigated it. Each time add is called it appends another value to a list which is saved under the given key. If you call a get on that key you get back a list. The add method saves you creating that list and watches for corner cases, ex. creating the list when the key is empty. The

Can MyFaces + CDI be used on WebLogic 12c?

二次信任 提交于 2020-02-20 06:51:07
问题 I've been trying to get this setup running for a couple of days now but still no luck. Here's the test application i've been using: @Named @RequestScoped public class Test { private String test = "test"; public String getTest() { return test; } public void setTest(String test) { this.test = test; } } And in the jsf page: <h:outputText value="#{test.test}"/> Running this sample without MyFaces works fine (renders "test" like it should), but when i deploy MyFaces in the WAR file and do the

Can MyFaces + CDI be used on WebLogic 12c?

那年仲夏 提交于 2020-02-20 06:50:44
问题 I've been trying to get this setup running for a couple of days now but still no luck. Here's the test application i've been using: @Named @RequestScoped public class Test { private String test = "test"; public String getTest() { return test; } public void setTest(String test) { this.test = test; } } And in the jsf page: <h:outputText value="#{test.test}"/> Running this sample without MyFaces works fine (renders "test" like it should), but when i deploy MyFaces in the WAR file and do the

Java EE 7 Application not deploying on Glassfish 4 Sever after switching from Mojarra to MyFaces

こ雲淡風輕ζ 提交于 2020-01-16 07:16:08
问题 Currently we have a problem when we try to deploy our Java EE 7 application to a glassfish 4.0 server. Before we changed the JSF implementation from JSF Mojarra 2.2.0 to MyFaces 2.2.2 it worked pretty well. Heres the error log: >2014-03-24T16:05:42.356+0100|Schwerwiegend: Unable to obtain InjectionProvider from init time FacesContext. Does this container implement the Mojarra Injection SPI? 2014-03-24T16:05:42.357+0100|Schwerwiegend: Die Anwendung wurde bei Systemstart nicht einwandfrei

Java EE 7 Application not deploying on Glassfish 4 Sever after switching from Mojarra to MyFaces

狂风中的少年 提交于 2020-01-16 07:16:05
问题 Currently we have a problem when we try to deploy our Java EE 7 application to a glassfish 4.0 server. Before we changed the JSF implementation from JSF Mojarra 2.2.0 to MyFaces 2.2.2 it worked pretty well. Heres the error log: >2014-03-24T16:05:42.356+0100|Schwerwiegend: Unable to obtain InjectionProvider from init time FacesContext. Does this container implement the Mojarra Injection SPI? 2014-03-24T16:05:42.357+0100|Schwerwiegend: Die Anwendung wurde bei Systemstart nicht einwandfrei

Custom renderer for PrimeFaces component works fine in Tomcat, but not in Websphere

爷,独闯天下 提交于 2020-01-14 09:28:28
问题 I'm using MyFaces 2.1.9 and PrimeFaces 3.5. I've implemented a custom renderer for <p:inputText> . This works fine at home with Tomcat. But this does not work at work with Websphere. I've placed breakpoints in the custom renderer class, but they are never hit. I see nothing in my logs as well. However, when I register the very same custom renderer on standard JSF <h:inputText> , then it works fine. I've registered it as follows in faces-config.xml : <render-kit> <renderer> <component-family

“could not initialize proxy - no session” with an open session available

孤人 提交于 2020-01-13 18:23:37
问题 I work with JSF 2 (MyFaces 2.1.7 and Primefaces 3.4.2), CDI (Weld-servlet 1.1.10), JPA 2 (Hibernate 4.1.7) and Lombok 0.11.2. All this runs on Tomcat 6 and 7. I use the OpenSessionInView pattern, implemented through a Filter . @Advanced @Data @Slf4j public class TransactionalFilter implements Filter, Serializable { private static final long serialVersionUID = 999173590695648899L; @Inject private EntityManager em; @Override public void doFilter(ServletRequest request, ServletResponse response,

Jsf pages shows blank when deployed on Tomcat 7

邮差的信 提交于 2020-01-06 08:47:13
问题 Application builds fine and deploys, the index.html pages shows up before redirecting to the login.xhtml page and there the problem begins, the login.xhtml page displays blank and the view source does same thing. Any help will be appreciated. Below is my web.xml file <?xml version="1.0" encoding="UTF-8" ?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

Migrating to JSF 2.3, Problems with MyFaces Initialization

倾然丶 夕夏残阳落幕 提交于 2020-01-06 05:44:07
问题 I'm upgrading an application comprised of two projects, "common" and "myapp". I'm now upgrading it to JSF 2.3 (MyFaces) and Primefaces 7 , and I can't figure out how to get past a failure in initialization. I should note that there've been a lot of other changes as well. Both projects had been successfully upgraded to OpenJDK 11 , Tomcat 9 , and to using Maven . And with the change to JSF 2.3, managed beans are no longer supported in favor of JAVA's CDI API, which inconveniently is longer