Questions tagged [mojarra]

Mojarra is the codename of Sun/Oracle's JSF reference implementation. It is a subproject of Glassfish.

Mojarra is the codename of Sun/Oracle's JSF reference implementation. It is a subproject of Glassfish.

Online resources

Related tag info pages

Frequently asked questions

472 questions
48
votes
7 answers

Difference between Mojarra and MyFaces

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…
Cratylus
  • 52,998
  • 69
  • 209
  • 339
37
votes
2 answers

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

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…
Miguel Ping
  • 18,082
  • 23
  • 88
  • 136
34
votes
1 answer

Upgrade JSF / Mojarra in JBoss AS / EAP / WildFly

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.
user2172625
  • 463
  • 2
  • 8
  • 16
30
votes
1 answer

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 Beans is quite high (sometimes more than 1MB). Anyway…
fischermatte
  • 3,327
  • 4
  • 42
  • 52
26
votes
2 answers

JSF and automatic reload of xhtml files

I had some problems with hot-reloading XHTML files using JRebel, Spring, JSF Mojarra 2.0.3 and WebLogic 10.3. JRebel reloads regular Java classes and js/css files under /WebContent successfully, but not JSF's .xhtml files. A full republish was…
Mads Mobæk
  • 34,762
  • 20
  • 71
  • 78
23
votes
1 answer

How to get rid of WARNING: PWC4011: Unable to set request character encoding to UTF-8

This is on GlassFish 3.1, using PrimeFaces over Mojarra and salted with MyFaces CODI. On just about every request the following message appears: WARNING: PWC4011: Unable to set request character encoding to UTF-8 from context /com.myapp_war_0.1,…
AlanObject
  • 9,613
  • 19
  • 86
  • 142
19
votes
1 answer

Strange start error updating to Mojarra 2.2.6

I've updated Mojarra 2.2.5 to 2.2.6 on a Tomcat 7.0.42 + jdk1.6.0_27 system and, on startup, I experienced the folloging error (... even if the application starts and works correctly) : SEVERE: Unable to find the encoded…
NCister
  • 235
  • 3
  • 9
18
votes
5 answers

Cannot create a session after the response has been committed

Opening the JSF page gives me the following exception: Caused by: java.lang.IllegalStateException: Cannot create a session after the response has been committed Here is the JSF code:
Faisal Basra
  • 1,624
  • 4
  • 25
  • 40
18
votes
2 answers

What is the usefulness of statelessness in JSF?

According to this blog JSF is going stateless . Isn't the whole point of using JSF is that it makes saving and restoring state a chore . What is the point of JSF becoming stateless ? Can you please provide an example where this can be useful .
Geek
  • 26,489
  • 43
  • 149
  • 227
15
votes
1 answer

What is the default for FACELETS_REFRESH_PERIOD?

In a JSF application, the parameter javax.faces.FACELETS_REFRESH_PERIOD can be used to enable/disable automatic reloading of XHTML files. I am currently researching the right configuration for production deployments, and accidentally found out that…
sleske
  • 81,358
  • 34
  • 189
  • 227
14
votes
1 answer

ui:repeat and h:panelGrid

When using something like with lets say 10 list entries I only get 1 row e.g.: one tr with 1 td…
Toskan
  • 13,911
  • 14
  • 95
  • 185
14
votes
1 answer

Configuration of com.sun.faces.config.ConfigureListener

I'm reviewing a current JSF project where the web.xml configuration contains: the FacesServlet (configured on *.xhtml) the com.sun.faces.config.ConfigureListener I'm using JSF 2.2 and Mojarra implementation. I'm confused about the…
LaurentG
  • 11,128
  • 9
  • 51
  • 66
13
votes
1 answer

How to use alternate version of Mojarra with Glassfish 4 (Netbeans/Maven)

I've been Using Eclipse/Ant for some time and decided to take a look at Netbeans/Maven for my JSF development. Along the way, I thought I'd try to use a version of Mojarra that is newer than the one I have installed in glassfish/modules. I can't…
CraftWeaver
  • 707
  • 1
  • 8
  • 21
13
votes
1 answer

How to update Mojarra version in GlassFish

I want to update my JSF application to use Mojarra version 2.1.8. I added these lines into the POM file of the WAR package: org.glassfish javax.faces
user1285928
  • 1,328
  • 29
  • 98
  • 147
12
votes
3 answers

Adding custom attribute (HTML5) support to JSF 2.0 UIInput component

I am trying to write a renderer which would process the placeholder attribute on an component. I headed to this path after reading JSF 2.0 strips out needed HTML5 attributes and it seems correct. Here's my custom renderer public class…
Niks
  • 4,802
  • 4
  • 36
  • 55
1
2 3
31 32