All Questions
79 questions
0
votes
0
answers
58
views
javax.faces.ViewState parameter duplication in POST request after ajax render
I'm not a pro in jsf and i have a problem. After ajax render was triggered, I received two javax.faces.ViewState parameters with different values in the POST request. What could be the cause of this ...
3
votes
1
answer
1k
views
Where is maven respository for jsf mojarra 2.3.18?
Where is maven respository for jsf mojarra 2.3.18?
The maven center has mojarra 2.4 that does not exist on github mojarra project. but the maven center does not have version 2.3.18 that is the latest ...
2
votes
1
answer
2k
views
Spring Boot 2.7.1 integration with JSF 2.2 (Mojarra) and Primefaces 6.2.9
I have working set up using below stack -
Spring MVC 5
JSF Mojarra 2.2.14
Primefaces 6.2.9
The app is built as a WAR.
It has web.xml with FacesServlet configured to service *.xhtml requests. All init ...
0
votes
0
answers
36
views
JSF MAC did not verify! error on clustered environment [duplicate]
I have a JSF (Mojarra 2.2.20) that is deployed on Tomcat 8.5 on a clustered environement.
My catalina.out is filled with this error:
ERROR: MAC did not verify!
I've been reading posts like: Getting ...
1
vote
1
answer
442
views
JSF - Validation error in 1 component, leads all others in the form to fail
Hey to all in the forum
I use JSF Mojarra implementation, version JSF 2.2
I need desperately a help on this.
I have a snippet of my page.
I have a custom component "example_result.xhtml" ...
0
votes
0
answers
306
views
NPE during navigation with viewscoped bean using Mojarra 2.2.x with openwebbeans 1.0 (CDI 1.0)
I am now running into a ViewScope issue on h:commandButton with navigation.
I am not sure if JSF 2.2 is supported with CDI 1.0
Error
May 28, 2020 5:57:07 PM com.sun.faces.context....
1
vote
1
answer
194
views
Understanding JSFs options.params in jsf.ajax.request
We migrated our JSF 2.2 based application to JSF 2.3, Except of some smaller issues we were able to get everything up and running. For one view we use Butterfaces JSF component, especially the tree ...
3
votes
1
answer
2k
views
ui:repeat add new item not working in first element
I am currently trying to do a simple list of inputs with adding/removing primefaces p:commandButton.
I am using PrimeFaces 6.2 on Glassfish 4.1.1 with Mojarra 2.2.12.
ExampleBean.java
package /* ...
1
vote
0
answers
241
views
<h:commandLink> not executing action in Safari Browser
I have a simple (ajaxified) commandLink in JSF that works well in all major browsers except for the latest Safari browser on iphone. To prevent double form submit, i use a common fragment that ...
0
votes
1
answer
821
views
Uncaught ReferenceError: mojarra is not defined when javax.faces.PROJECT_STAGE is Production
Disclaimer
Although this question was asked several times, none of them was able to provide the solution to my problem.
Followings are the sample code:
web.xml
<?xml version='1.0' encoding='UTF-8'?...
0
votes
0
answers
903
views
Clicking on commandlink gives Error: 'mojarra' is undefined
I am using JSF 2.2 and having mojarra implementation. I am getting the below javascript error whenever I click on a command link and the request is not submitted into the server. When the command ...
3
votes
1
answer
218
views
Why does altering my managed bean's definition result in the constructor not being called?
Please have a look at the following JSF page and at the definition of the managed bean class which it references.
When I run my app and load the page I get the results shown in the "Good Results" ...
0
votes
0
answers
49
views
How to maintain more than one view root in single browser tab?
We have developed a web application using JSF. This application contains multiple screens which are rendered inside tab (using jquery). When user clicks on a menuitem, we will include a xhtml belongs ...
0
votes
0
answers
548
views
PrettyFaces: poor performance on every request
registering for new users in the pretty forum (https://www.ocpsoft.org/support/forum/prettyfaces-users/) currently does not seem to work, so i ask here for help:
we started to include latest ...
1
vote
1
answer
2k
views
JSF / PrimeFaces - How to display message for custom validator but not for required validation on the same component
I have a JSF2 implementation using PrimeFaces. I am using a <p:selectOneRadio /> component. When the user selects "No" in the radio component, I would like to show a custom message. I have ...
0
votes
0
answers
577
views
execute/update specific componente inside ui:repeat using f:ajax
I have a situation where i need to execute a specific component for every row inside a ui:repeat:
<h:form id="form">
<h:panelGroup id="mediaCards" layout="block">
<ui:repeat id=...
2
votes
1
answer
169
views
Programmatically override value expression of composite-component’s attribute
I have written a wrapper component that in certain conditions overrides some attributes of its children.
In the INVOKE_APPLICATION phase (after an event), it calls UIComponent#setValueExpression on ...
0
votes
1
answer
106
views
Why does h:link value call bean method when the control is not rendered?
I have this on my JSF page
<h:link rendered="false" value="${mybean.status}" />
The control is not rendered but it still calls getStatus() method in mybean. Why?
The problem seems to be only ...
2
votes
1
answer
785
views
Multiple browser tabs or windows with the same ViewScoped bean class
Using Payara Server 4.1.2.174 with mojarra 2.2.15.
I have a simple Named Bean with scope javax.faces.view.ViewScoped.
import java.io.Serializable;
import java.util.logging.Level;
import java.util....
0
votes
0
answers
91
views
Mojarra-Bug while resolving #{cc} when passed as include parameter and used by included composite?
Basic Question
Is this a bug in Mojarra or am I trying to do something that is not supported by the spec?
Overview
I have a composite component "outerComposite" that ui:includes a facelet with ...
9
votes
3
answers
25k
views
When downloading Mojarra libraries for JSF it is showing error "zip file is empty" in Eclipse
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 ...
0
votes
1
answer
1k
views
JSF <protected-views> token inconsistency
I'm currently having trouble regarding the token generated by <protected-views> of JSF.
I added the page I want to protect in faces-config.xml
<protected-views>
<url-pattern>/...
1
vote
0
answers
116
views
How to add sub components to JSF custom component to obtain valid client IDs?
I have created a custom component and custom renderer which should use additional sub components like so:
doEncodeBegin(...){
final HtmlOutcomeTargetLink commandLink = (HtmlOutcomeTargetLink) ...
9
votes
1
answer
844
views
Mojarra 2.2 versions diverging
https://javaserverfaces.java.net/nonav/2.2/releasenotes.html lists two diverging version branches of JSF2.2 where, strangely, 2.2.8-xx seems to be more recent than 2.2.9 and above.
Some bugs are ...
1
vote
1
answer
381
views
Not able to add new ajax behavior to primefaces datatable dynamically when it already have listeners added in xhtml
I'm using primefaces-6.0, mojarra-2.2.12 and wildfly-8.2. My goal is to add columnresize listener to datatable dynamically using prerenderview listener. This solution is working fine when there no ...
1
vote
0
answers
178
views
Managed Bean not found after upgrading mojarra 2.2.8 to 2.2.14
I use jetty-webapp 9.4.0.v2016120, and I try to upgrade jsf implementation (mojarra) from 2.2.8 to 2.2.14
After upgrading my Managed Bean are not found. I noticed that AnnotationScaner is null in ...
3
votes
1
answer
2k
views
JSF: Mojarra vs. OmniFaces @ViewScoped: @PreDestroy called but bean can't be garbage collected
This question is specific to the OmniFaces @ViewScoped bean (however of interest to wider discussion about memory leakage and resource disposal with JSF @ViewScoped). It is based on the results of ...
1
vote
0
answers
47
views
InvokeActionEventListener not working in Omnifaces Showcase in local server [duplicate]
I have deployed Omnifaces Showcase 2.4 in my local server to test InvokeActionEventListener because I'm facing some problems with the Flash Scope. Since the showcase InvokeActionEventListener was not ...
0
votes
0
answers
240
views
JSF2.2: Mojarra: How implement custom FaceletCacheFactory returning custom FaceletCache
I want to implement a custom FaceletCacheFactory providing a custom FaceletCache.
The reason I want to do it is to try out a fix for issue '[JAVASERVERFACES-4107] Facelet cache doesn't expire / ...
4
votes
1
answer
2k
views
Passthrough not working
I've tried a few different variations and none of them seem to be working.
Specs:
Mojarra 2.2.5
Primefaces 6.0
JSF 2.2
1.) Passthrough
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ps="http://java....
0
votes
0
answers
284
views
JSF Initialization Error only during first Login after Reboot of Server
I am experiencing what seems to be a JSF initialization error after the first login request after rebooting the server. If I refresh the request and resubmit the login, everything works but the first ...
0
votes
1
answer
4k
views
Omnifaces-Exception: CDI BeanManager instance is not available in JNDI
i have problems with deploying my jsf-application on the upserver. starting tomcat results in the following exception:
14-Jul-2016 07:26:52.661 SEVERE [localhost-startStop-1] com.sun.faces.config....
0
votes
1
answer
143
views
JSF 2.2: using <h:link> results in slow page (re)load
i have a navigation list with pure page-to-page navigation:
<h:link outcome="/admin/products"> Products </h:link>
<h:link outcome="/admin/users"> Users </h:link>
<h:link ...
2
votes
0
answers
732
views
Prevent icon conflict when using FontAwesome with PrimeFaces
I have a problem with menu icons in PrimeFaces : the UI icon seems to be in conflict with the FontAwesome one.
Here is a screenshot:
When I look in my browser's inspector, I can see that four classes ...
1
vote
1
answer
63
views
Is the class extending ClientBehaviorBase can be considered as an injection target?
The bean is defined to be as simple as follows:
@Named
@RequestScoped
public class ConfirmBean {
private String confirmMsg;
public ConfirmBean(){
confirmMsg = "Are you sure you want ...
4
votes
1
answer
1k
views
Using Mojarra 2.2 with WebSphere 9
I'm trying to configure WebSphere 9 to use Mojarra 2.2 and this is what I've done so far:
1 - Created a Shared Library named Faces pointing to Mojarra files:
2 - Changed the JSF implementation for ...
0
votes
0
answers
105
views
What is the difference b/w @form value and explicitly mentioning the component Ids in render attribute of <f:ajax>?
Consider the snippet:
<h:form>
<hr/>
<h:panelGrid columns="3">
Name:
<h:inputText id="nameId" value="#{ajaxBean....
0
votes
2
answers
108
views
When does mojarra adds a naming container to the list of optional parameters?
In the source of the class AjaxBehaviorRenderer (line 260) there is a line that apparently appends the NamingContainer Id to the list of optional parameters of mojarra.ab(...). I've never come across ...
1
vote
0
answers
189
views
Even after renderResponse set in the beforePhase of the InvokeApplication PhaseListener - events are still broadcasted in myfaces
We are using myfaces on websphere liberty profile server.
We have a phaseListener that is setup against InvokeApplication phase - so when there is a exception in beforePhase, we set the ...
0
votes
1
answer
1k
views
RichFaces 4.5.14 Failed to define class org.richfaces.renderkit
I'm using Jboss 7.1; Seam 2.3; JDK 1.7; and JSF 2.2 and RichFaces 4.5.14.
When i start for the first time to deploy the Seam empty web projet, i got that error :
My Java build path :
and the ...
0
votes
0
answers
400
views
f:ajax will not render anything inside of an h:inputFile tag
I have been plagued with an issue for the past few days that I cannot solve. I am using Mojarra 2.2.12 on Wildfly 10.
My problem is that when I use an f:ajax tag inside of an h:inputFile tag and ...
1
vote
0
answers
439
views
Flash-Scope in latest Mojarra-versions?
i read many topics with problems about mojarra's flash-scope
and until now, i was not able to get completly rid of these annoying
"The response was already committed by the time we tried to set ...
2
votes
1
answer
980
views
What are the recommended JSF dependencies with TomEE1.7.x?
I've been developing a JSF2.0 (I'm not really sure about the JSF version) application on TomEE 1.7.3 (JavaEE6 based).
In my Maven pom.xml, I had too many dependencies which I've copied from many ...
0
votes
0
answers
44
views
How to render input component inside dialog upon opening dialog and unrender when closing dialog [duplicate]
The requirement in this case is as follows:
A dialog is opened by clicking on a Change Password button.
The dialog contains two input components (Password and Repeat Password) and several buttons ...
0
votes
0
answers
191
views
Set property of another bean after action method is invoked
Mojarra 2.2
I have two beans`.
public class MyBean1{
private String myProperty1;
//GET, SET, CTOR
public void doAction(){
//assign something to myProperty1
}
}
public ...
0
votes
0
answers
286
views
Showing primefaces overlay panel leads to NPE in Mojarra code
I use a p:overlayPanel on several places. It offers values from which the user can choose. This overlay panel is parameterized and used on several places. Therefore I show the panel with a click on a ...
4
votes
1
answer
818
views
Custom FaceletFactory in JSF 2.2 / Alternatives for virtual host facelets
Since Mojarra/JSF 2.2. it is not possible anymore to provide a custom FaceletFactory using a web.xml context parameter:
<context-param>
<param-name>com.sun.faces.faceletFactory<...
30
votes
1
answer
6k
views
JSF 2.2 Memory Consumption: Why does Mojarra keep the ViewScoped Beans of the last 25 Views in Memory?
Memory per Session grows
We are experiencing high memory consumption using JSF 2.2 (2.2.12) with Mojarra. After investigating our load tests, it turned out that the size of data in our ViewScoped ...
5
votes
2
answers
1k
views
How to specify the target DOCTYPE in JSF 2.2?
Is it possible to tell Mojarra 2.2 which DocType to render in the resulting html pages?
It seems that it always renders the following HTML5 Doctype:
<!DOCTYPE html>
In our facelet template ...
2
votes
1
answer
3k
views
javax.servlet.ServletException the request doesn't contain a multipart/form-data or multipart/mixed stream
I've the below form which uploads a file via <h:inputFile> and <f:ajax>.
<h:form enctype="multipart/form-data">
<h:inputFile id="file" value="#{bean.file}" />
<h:...