mojarra

JSF 2 Mojarra and Primefaces in WebSphere 7+

空扰寡人 提交于 2019-12-12 09:49:45
问题 I have been struggling with the unholy alliance that is WebSphere 7+ and Mojarra 2.0.4 and have run into something of a showstopper. I followed the directions as specified at this forum post and got Mojarra 2.0.4 initializing properly: http://forum.primefaces.org/viewtopic.php?f=3&t=6860 Basically I created an isolated classloader shared library that refers externally to the Mojarra and Primefaces jars, added the shared library to the webapp and reversed the classloader to go PARENT_LAST. All

mojarra is not defined

♀尐吖头ヾ 提交于 2019-12-12 03:08:37
问题 I'm developing JSF application with mojarra. I'm getting javascript error "mojarra is not defined". After deploy everything is ok, ajax call works properly. But after refreshing page, error appears. There is lack of javascript include in head tag after refreshing. It seems to be working very moody. Same behavior I have on Tomcat and Glassfish, Mojarra is in version 2.0.3. 回答1: One of the reason this error can appear is by using <head>..</head> and <body>...</body> tags instead of <h:head>...<

faces-config with from-outcome not being string (boolean) fails with NullPointerException

时光毁灭记忆、已成空白 提交于 2019-12-12 02:03:13
问题 I've been using JSF 2.1 with mojarra-2.1.20 , and I've configured in my faces-config.xml a navigation case like this: <navigation-rule> <from-view-id>/loggedOut.xhtml</from-view-id> <navigation-case> <from-action>#{sessionManager.isLoggedIn}</from-action> <from-outcome>true</from-outcome> <to-view-id>/login.xhtml</to-view-id> <redirect /> </navigation-case> </navigation-rule> The action is executed using seam-faces viewAction (similiar to JSF 2.2 new tag). All has been working fine. Today I

Upgrade JSF / Mojarra in JBoss AS / EAP / WildFly

半城伤御伤魂 提交于 2019-12-12 00:36:23
问题 How do I upgrade Mojarra in JBoss server and tell it use the given Mojarra 2.x JARs instead of JBoss own jboss-jsf-api_2.1_spec-2.0.1.Final.jar as indicated in startup log? If that's relevant, I am currently using JBoss AS 7.1. 回答1: The below procedure applies to JBoss AS 7.2+ , JBoss EAP 6.1+ , and JBoss WildFly 8+ and assumes that you've full control over the server installation and configuration. This upgrades the server-wide default JSF version: Download the individual Mojarra API and

The best way to debug Mojarra and Primefaces in eclipse?

无人久伴 提交于 2019-12-11 09:31:06
问题 PF 3.5.10, Mojarra 2.1.21, JBoss 7.1.1, Omnifaces 1.5 Sometimes I have problems with JSF which are complicated to understand, and difficult to solve. E.g. my question Duplicate id error with primefaces dialog in template . So my question(s) is what do I need to debug Mojarra. Now I can set debug points in Mojarra sources. a) What Mojarra (or primefaces) Methods are a good start point to begin the debugging ? b) As in my example if I want to find out why JSF (or primefaces) generate duplicate

How to Enable the JSF facet in eclipse user library

萝らか妹 提交于 2019-12-11 08:45:26
问题 I'm having troulbe enabling JSF in Eclipse. I have installed the WPT tools that should have had JSF included but when I right click on my project, properties, facets, enable facets I get a warning saying "Further configuration required" I click this, and I'm notified that "At least one user library must be selected" However there are no libraries to select. I can optionally select "Disable Library Configuration" but I don't know what effects this might have as Eclipse is telling me that i

File upload doesn't work with PrimeFaces 4.0, JSF Mojarra 2.2.3 and Wildfly Beta 1

时光怂恿深爱的人放手 提交于 2019-12-11 06:01:22
问题 I have a web application running on: Wildfly Beta 1 JSF Mojarra 2.2.3 (from Wildfly) Primefaces 4.0 rewrite-servlet-2.0.7.Final / rewrite-config-prettyfaces-2.0.7.Final commons-io-2.4 / commons-fileupload-1.3 And I have problem with file upload component (advanced and simple mode doesn't work, never print inside upload() ). Same is even run without rewrite-servlet-2.0.7.Final/rewrite-config-prettyfaces-2.0.7.Final libs. My upload.xhtml file: <h:form prependId="false" id="formLateralUpload"

doctype not rendered in JSF “master” template

戏子无情 提交于 2019-12-11 01:14:46
问题 As the subject said, the needed doctype is not rendered in my JSF pages. My used versions: Payara Server Payara Server 4.1.2.181 #badassfish (build 220)]] Mojarra 2.3.3 ( 20171008-2230 673408fa9199477d87f44521ff873d709128c88b) PrimeFaces 6.2 ("official" version) I already tried the bundled (2.2.14/13/15?) version, no change, so I upgraded to 2.3.3 from github (official release). In my entire project I have only one doctype and that is in my "master" template: base.tpl : <?xml version="1.0"

FacesContext#getViewRoot() returns null while setting <f:view locale> for first time

白昼怎懂夜的黑 提交于 2019-12-10 19:33:57
问题 I am trying to change my JSF application locale in one page and that has to change all my pages locale. I have followed this link, and it works well Localization in JSF, how to remember selected locale per session instead of per request/view If I run the application I can change the locale in my index.xhtml and that locale is set per session, so if then I go to page index_1.xhtml I will see the locale changed. My problem is that when I run the application and I write the URL: http://localhost

javax.faces.ViewState is missing after ajax render

蓝咒 提交于 2019-12-10 15:32:39
问题 This is not a duplicate post, i just done research but not helping. First, this is my page... simplified for easy reading. <h:form id="treeForm"> <f:event type="preRenderView" listener="#{taskTreeBean.update}" /> <rich:tree id="tree" nodeType="#{node.type}" var="node" value="#{taskTreeBean.rootNodes}" toggleType="client" selectionType="ajax" render="@all" selectionChangeListener="#{taskTreeBean.selectionChanged}"> <rich:treeNode> ... </rich:treeNode> </rich:tree> </h:form> <h:form id=