myfaces

Making Glassfish respond to ajax request JSF 2

百般思念 提交于 2019-12-30 11:30:30
问题 I'm trying to do an ajax request to my server (Glassfish v3.1 open source edition) and for any reason the request never go to the server, running the same proyect on tomcat 7 it works correctly, there's any configuration that i should make on glassfich or anything?? im using eclipse helios, jsf 2 MyFaces 2.1.1, richfaces 4.0.0, and glassfish 3.1 open source edition here's my code <h:panelGroup> <h:inputText id="firstName" value="#{RegistrationForm.first_name}" required="true" requiredMessage=

Facelets multi-level templates - ui:define not rendered

独自空忆成欢 提交于 2019-12-29 08:50:49
问题 I have 2 basic templates - one with a side menu, and one without - that both ui:include a common page which contains ui:insert tags (templates are largish, so basic example below). Using Mojarra everything worked ok, but now I have migrated to MyFaces the ui:insert tags are ignored and the content of the related ui:define does not get rendered (i.e. 'Here are my results' is not displayed). Should I be specifying included-page.xhtml as a template somehow? I tried <ui:composition template=

java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener when using MyFaces with WASCE/Geronimo

人盡茶涼 提交于 2019-12-28 05:45:28
问题 I am trying to create a simple JSF web application using MyFaces v 2.1 with WebSphere Application Server Community Edition v3.0.0.1 and Eclipse Juno but when I try to run the application the following error is returned java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener org.apache.geronimo.common.DeploymentException: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder

Spring beans not getting created as required by myfaces

落爺英雄遲暮 提交于 2019-12-25 01:48:55
问题 We are migrating application from weblogic to jboss, In this Spring Myfaces applications, in jboss, while loading xhtml page managed bean defined in spring and faces config xmls are not creating the beans which results in null pointer exception while application is trying to load xhtml page. In spring applicationcontext config xml, following entry is there to scan the packages <context:component-scan base-package="com.thehartford.pi.sales.web.controller.auto.*" > <context:include-filter type=

submitForm() not defined for myfaces.JSF_JS_MODE 'minimal-modern'

妖精的绣舞 提交于 2019-12-24 15:36:49
问题 I tried to set up a simple JSF 2.2 application using MyFaces 2.2.8. Since MyFaces has some context parameters that I never used before, I tried to get familiar with those. So I got to use org.apache.myfaces.JSF_JS_MODE for the first time and ran into problems with h:commandLink . The commandLink is trying to call myfaces.oam.submitForm() which is not defined if I set the mode to minimal-modern . If I set the mode to minimal or normal it works. From reading some internet articles I assume this

Error in WebSphere 8.5 + Mojarra + MyFaces2 + Spring webflow

独自空忆成欢 提交于 2019-12-24 13:26:07
问题 I am trying to deploy a web application in WebSphere 8.5. The app has the following characteristics. Mojarra 2.1.13 Primefaces 3.4.2 spring webflow 2.3.1 spring 3.1.2 jdk 1.6 This app works very well into Tomcat 7 but when we try to deploy it into WebSphere we got a NullPointerException with the following stacktrace. javax.faces.component.UIComponentBase.restoreDeltaSystemEventListenerClassMap(UIComponentBase.java:1933) javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java

Which jars do I need in order to avoid “NoClassDefFoundError: com/sun/facelets/tag/jsf/ComponentHandler”?

余生颓废 提交于 2019-12-24 13:26:01
问题 I'm trying to build a JavaServer Faces 2.0 project (using Apache Myfaces 2.0.2 + Tomcat 7.0.25 via Eclipse Indigo). All seems to be set, Tomcat starts ok, but when I try to open a web page I get the error: SEVERE: An exception occurred javax.faces.FacesException: java.lang.NoClassDefFoundError: com/sun/facelets/tag/jsf/ComponentHandler As I understand, some jar(s) are missing, the one which has this class: com.sun.facelets.tag.jsf.ComponentHandler. Jar finder tells me that I should have "jsf

<o:form styleClass> not rendered when using MyFaces instead of Mojarra

余生颓废 提交于 2019-12-24 00:42:43
问题 I've been developing a website with JSF2.0 TomEE 1.7.3. In the last question I've asked : What are the recommended JSF dependencies with TomEE1.7.x? I got advices and decided to migrate from GlassFish(Mojarra) Faces to myFaces, because myFaces is the standard JSF implementation of TomEE. Then I realized that "OmniFaces v1.8.3 Form" is not rendering css class attribute with "style" nor "styleClass", if I use the default myFaces of TomEE. It worked fine with Mojarra, but now I get my HTML

Memory leaks in MyFaces

守給你的承諾、 提交于 2019-12-23 18:31:04
问题 EDIT: The solution that you can find in comments below assumes changing JSF implemenetation from MyFaces to Sun's Mojarra. Hi, I have got really annoying problem with MyFaces 2.0.0 (To be more precisely I checked it out also on 2.0.1 and 2.0.2 and problem remains). I'm writing now application under MyFaces. Briefly speaking in my application i use frameworks: Spring, Hibernate, JSF (MyFaces implementation) My application container is Tomcat (6.0.29 version) I use maven to build and deploy

What's the difference between Development and Production in MyFaces

一笑奈何 提交于 2019-12-23 07:11:00
问题 I'm doing some development work in JSF with MyFaces and I got this warning. ******************************************************************* *** WARNING: Apache MyFaces-2 is running in DEVELOPMENT mode. *** *** ^^^^^^^^^^^ *** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getProjectStage() for more information. *** ******************************************************************* What is the difference between development and production mode? Are