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
5
votes
2 answers

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: In our facelet template we use the following DocType declaration and we want to…
5
votes
1 answer

Deploying Mojarra 2.1.x and 2.2 on Apache Tomcat 7.0.42 and above results in java.lang.UnsupportedOperationException

Our JSF web application based on java 7 se, JSF 2.1, using Mojarra 2.1.27 was working fine on Apache Tomcat 7.0.41 and below. When we attempted to upgrade to Tomcat 7.0.42 and above (we've tried every version up to 7.0.50), after application start…
zzhu8192
  • 183
  • 1
  • 10
5
votes
2 answers

JSF ViewState not updated when submitting 2 forms

I have a though issue with JSF 2. I use Mojarra 2.1.14 with Primefaces 3.1.4 I have a page with 2 forms : formA and formB. The two forms contains each the ViewState in an hidden input field.
Nicolas Labrot
  • 4,017
  • 25
  • 40
5
votes
2 answers

Resource library getting ignored in h:graphicImage

I have the following tag: In my folder I have the following structure: /resources/images/..... /WEB-INF/.... /*.xhtml When rendered that image shows up as:
casolorz
  • 8,486
  • 19
  • 93
  • 200
5
votes
0 answers

Compiling JSF 2 facelets within a unit test for correctness

I am trying to use the Mojarra JSF 2 compiler programatically with a view to checking the correctness of the xhtml of any pages. I have got so far but the compiler is not erroring for tags that don't exist in a particular tag library. It does the…
5
votes
1 answer

How to change the standard href="#" attribute of h:commandLink?

I am maintaining a JSF2 Ajax application and we are heavily using h:commandLinks and f:ajax tags for all actions - always only rerendering what is needed. This does of course break the expected behaviour for the user when performing a right click…
bxr
  • 63
  • 1
  • 5
5
votes
1 answer

How to build Mojarra from source

I downloaded the Mojarra source code from here. I also downloaded the pom file to build the source code files. It turns out that the code structure is different from the original and I need to create directories and but the files there. I created…
user1285928
  • 1,328
  • 29
  • 98
  • 147
4
votes
1 answer

JSF UIComponent binding, serializable and view scoped

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; /// ... }
wrschneider
  • 17,913
  • 16
  • 96
  • 176
4
votes
1 answer

What is the canonical way to handle errors during Ajax-requests?

For normal requests we can simple register an in web.xml. However, this does not apply to Ajax-requests. By default errors during an Ajax-request will result in a little pop-window in the browser that shows the exception. The main…
Björn Pollex
  • 75,346
  • 28
  • 201
  • 283
4
votes
3 answers

JSF Validation Error: Value is not valid

I know this seems to be a common one, but I'm lost with it. Occurs on clicking the Add button in assessment.jsf. Anyway, I've attached what I think are the relevant sections. FWIW, AssessmentType.equals() isn't triggered when I debug. Thanks in…
rich
  • 18,987
  • 11
  • 75
  • 101
4
votes
0 answers

h:form attribute enctype="multipart/form-data" not rendered after post back

I have a form with file upload component: ... ... and viewscoped backing bean with Part…
bambula
  • 365
  • 1
  • 12
4
votes
1 answer

JSF Composite Component target actions fail within the c:forEach Tag

We use commandButtons inside a c:forEach tag, where the button's action receives the forEach var attribute as a parameter like this:
4
votes
1 answer

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.sun.com/jsf/passthrough" ....
Fabii
  • 3,820
  • 14
  • 51
  • 92
4
votes
1 answer

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 the application to use Mojarra: 3 - Changed…
EPMS Devteam
  • 273
  • 2
  • 15
4
votes
1 answer

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: com.sun.faces.faceletFactory
Roben
  • 840
  • 9
  • 19