mojarra

java.lang.IllegalArgumentException: javax.faces.lifecycle.ClientWindowFactory

空扰寡人 提交于 2019-12-17 19:55:12
问题 We've been running a web app on a development server and recently somebody built a production server for us (with supposedly) the exact same tomcat config including the JSF libraries in the /lib directory. When I try to deploy my app the new server is throwing a rather confusing error message that I'd love some help understanding. catalina.out Both Production and Devel logs look similar up to this point: 24-Jun-2015 13:16:47.880 INFO [localhost-startStop-1] org.apache.catalina.startup

When downloading Mojarra libraries for JSF it is showing error “zip file is empty” in Eclipse

十年热恋 提交于 2019-12-17 19:23:41
问题 I'm working on JSF project, I'm trying to set up project facets in Eclipse, When I'm downloading Mojarra libraries for JSF2.2 it is giving error message. I'm using Eclipse Neon 2. See the below image for more information. 回答1: Adding Mojarra Manually When Eclipse Luna/NEON/Oxygen JSF Download Library Is Empty... When I was setting up a fresh install of JavaEE on my laptop today, the JSF Download Library would not return any results to download. Some searching suggested that I had to change my

Difference between Mojarra and MyFaces

柔情痞子 提交于 2019-12-17 03:07:08
问题 I am starting on JSF2.0 I used a tutorial as a reference but I have the following question: The tutorial used 2 libs only: jsf-api.jar , jsf-impl.jar (but also had JSTL) from Mojarra Project. I tried to dowload them also but seems the site is not reachable. So I used Apache MyFaces but to run the example I had to add 8 jars ( commons-* , myfaces-* ). Why do I need more jars if I use MyFaces? Should I prefer Mojarra as lighter? Also the download page is indeed JSF Mojarra? Thanks 回答1: Why do I

com.sun.faces.numberOfViewsInSession vs com.sun.faces.numberOfLogicalViews

我怕爱的太早我们不能终老 提交于 2019-12-17 02:34:24
问题 Mojarra Implementation of JSF 2 has the following context params: com.sun.faces.numberOfViewsInSession (default is 15) com.sun.faces.numberOfLogicalViews (default is 15) What is the difference between them? The documentation doesn't speak much about these. My app was having trouble with ViewExpiredException for some pages, but after we bumped these settings to a (much) higher value, we stopped having problems. My app is a financial, form-heavy, ajax-enabled app (some screens have 50+ inputs,

using javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL causes viewParam to be null

我怕爱的太早我们不能终老 提交于 2019-12-14 04:04:06
问题 I'm trying to switch an application from WildFly 13 (Java EE 7, JSF 2.2.15) to WildFly 16 (Java EE 8, JSF 2.3.9). Tried both PrimeFaces 6.2 and 7.0 In web.xml javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL is set. JSF 2.2 version working fine, switching to WildFly 16 this different behavior. A simple example follows: Instructions: access: http://localhost:8080/primefaces-test/?tipo=U&test=Bah click first button, click second button. after ajax the viewParam value in the bean is

JSF UIComponent binding, serializable and view scoped

拈花ヽ惹草 提交于 2019-12-13 15:01:42
问题 I have a view-scoped bean that implements Serializable , and a UIComponent passed in via binding. @ManagedBean @ViewScoped public class ViewScopedBean implements Serializable { UIComponent form; /// ... } <h:form binding="#{viewScopedBean.form}"> ... The UIComponent is not serializable and thus breaking session restore. What's the best practice here? Should I just mark the UIComponents as transient ? Or is it bad practice to use binding= to anything but a request-scoped bean? I'm using

Wrong selected option for selectOneMenu with POJOs and Converter

牧云@^-^@ 提交于 2019-12-13 09:25:52
问题 in our company we're hitting a serious problem which we think is a serious design flaw of the JSF spec, if it is the normal behavior. This is our usecase: SelectOneMenu (standard JSF or primefaces, doesn't matter, same behavior) SelectItems with a database entity as it's value and a string as the label A converter (via attribute on the selectOneMenu) which translates the entity to its ID (getAsString) and from the ID to the entity (getAsObject) Everything works as expected as long as the

Mojarra JSF 2.1.9 exception while loading a page which has got composite component

女生的网名这么多〃 提交于 2019-12-13 03:38:26
问题 I am upgrading my Mojarra JSF 2.0 on my web app to the latest stable version of Mojarra JSF2.1.9 . The pages were loading ok with the earlier version of Mojarra. But with the new version I am getting the following error message while loading a JSF page which has got composite components. /faces/page.xhtml @8,62 Tag Library supports namespace: http://java.sun.com/jsf/composite/components, but no tag was defined for name: webContent javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)

Problems with composite components that include form

核能气质少年 提交于 2019-12-12 20:25:04
问题 I am writing one composite component like a complex inputtext, that requiere a complete form (it will show a search form and one list of results for the user selects one of them). <composite:implementation> <div id="#{cc.clientId}" class="#{cc.attrs.styleClass}"> <h:inputText id="txtIdentificador" ...> <h:graphicImage id="imgIdentificador" ...> <h:inputText id="txtDescripcion" ...> <h:form id="formF2ItemWidget"> ... </h:form> </div> </composite:implementation> Logically, I would like to use

Mojarra 2.1.6 not working as expected with OmniFaces FullAjaxExceptionHandler

回眸只為那壹抹淺笑 提交于 2019-12-12 10:17:00
问题 My environment is: JDK 6u31 GlassFish 3.1.2.2 Mojarra 2.1.6 (bundled with GF) PrimeFaces 4.0 OmniFaces 1.6.3 I configured both FacesExceptionFilter and FullAjaxExceptionHandler for my application, and they work fine for all kinds of exceptions, except javax.faces.application.ViewExpiredException . If I invalidate the session and then click a button, the error page for a RuntimeException is shown, after the following exception is thrown: INFO: Session invalidated SEVERE: