Questions tagged [jsf-2]

JavaServer Faces (JSF) is a model-view-presenter framework typically used to create web applications. Version 2.x is a major step ahead compared to JSF 1.x, significantly expanding the standard set of components and component libraries.

JavaServer Faces 2.x is a major step ahead as compared to JSF 1.x, significantly expanding the standard set of components and component libraries. Facelets (which was designed specifically for JavaServer Faces) was adopted as the official view technology for JSF 2.x. This eliminates the life-cycle conflicts that existed with JSP, forcing workarounds by Java developers. Lot of things which are hardly possible in JSF 1.x can be done more elegantly in JSF 2.x.

For the real wiki, please jump over to the wiki: https://stackoverflow.com/tags/jsf/info.

15731 questions
4
votes
1 answer

Compress JSF 2.0 Ajax requests?

Is there a way to compress all JSF Ajax requests?
Ben
  • 10,020
  • 21
  • 94
  • 157
4
votes
1 answer

How to use parameter "javax.faces.FACELETS_SUFFIX" in jsf 2

I have understood the meaning of jsf 2.0 context parameters "javax.faces.DEFAULT_SUFFIX" and "javax.faces.FACELETS_VIEW_MAPPINGS" with some examples. But I'm not clear about parameter "javax.faces.FACELETS_SUFFIX". According to the…
Hui Zhou
  • 45
  • 5
4
votes
3 answers

JSF2 on Jetty gives randomly 'zip file closed' but works when running from maven jetty plugin (jetty:run)

my JSF web app is giving randomly error: "zip file closed" when accessing files (like images, css, js). It is deployed on Jetty 7. It looks like some of those files are not loaded (some images are missing on a page). java.lang.IllegalStateException:…
szymex
  • 131
  • 1
  • 5
4
votes
4 answers

PrimeFaces 3.0.M3 Cell Editor does not update value

I have read there, but i can't take edited value from primefaces datatable cellEditor, it gives me unedited value. i am using jpa. xhtml page:
Deniz
  • 364
  • 2
  • 7
  • 16
4
votes
2 answers

PrimeFaces commandButton doesn't call action if ajax enabled

Here's my page:
Steve
  • 8,066
  • 11
  • 70
  • 112
4
votes
1 answer

Passing parameters to a4j:ajax method

I am trying to use to feed a method with a value just entered on the form;
user969743
  • 57
  • 1
  • 5
4
votes
1 answer

Handling ViewExpiredException depending on the current view

I am using JSF 2.0 and Primefaces in my project. I have two xhtml pages namely Cars.xhtml and Bikes.xhtml. I am using ViewScoped backing beans. Currently If get view expired exception from any of the two pages,im handling it in the web.xml. through…
user1234
  • 167
  • 1
  • 3
  • 10
4
votes
1 answer

How to use PrimeFaces Captcha?

I went through the user guide and the showcase but couldn't find a way to get the Captcha evaluation result in the backing bean. I can see the result on the top message bar on the UI but how to get the result in the backing bean?
Wei
  • 1,252
  • 13
  • 19
4
votes
1 answer

outside f:ajax for composite component

Is there a way I can create a composite component that can receive an tag from outside? I'm creating an editableText input composite component and I want to show to end user the option to append an tag inside the input tag of my…
brevleq
  • 2,081
  • 10
  • 53
  • 97
4
votes
2 answers

Nested datatable in JSF 2.0

I am trying to fetch the questions and the associated answers. I am able to get the questions fine but the nested datatable does not even recognize the properties each answer has, and this is also pointed out by the IDE as well. Maybe this is not…
Onur
  • 958
  • 2
  • 13
  • 18
4
votes
1 answer

Audit trail for JSF application - Global valueChangeListener possible?

I am trying to implement an audit trail functionality for my web application that records: lastModified (timestamp) modifiedBy (user information) userComment (reason for value change) for each of my input fields (input fields are spread over…
Matt Handy
  • 29,855
  • 2
  • 89
  • 112
4
votes
2 answers

How to check Null value for Date Object

I am using JSF 2.0 and RichFaces 3.3. In my View user will pich a date from a calendar. Tag used is . This is mapped in backing bean with Date object. However this field is optional and hence when user does not select a date the…
AngelsandDemons
  • 2,823
  • 13
  • 47
  • 70
4
votes
2 answers

Change /javax.faces.resource prefix of resource URLs

When I use or then in html I get something like this
maks
  • 5,911
  • 17
  • 79
  • 123
4
votes
2 answers

UI formatting messed up on IE when using IP address instead of localhost

I have an application developed using Primefaces 2.2.1 and JSF 2.0, deployed on Glassfish 3.1 local machine. Problem is that when I access the application using http://localhost:8080/MyApp, the UI formatting is fine. But if I access the application…
Bhesh Gurung
  • 50,430
  • 22
  • 93
  • 142
4
votes
1 answer

How to use jsf "navigation-rule" for direct non .jsf pages ("to-view-id" is not .jsf)

I want to direct "from-outcome" to some BIRT report file (with .rptdesign extension) but it append extension as .jsf. My navigation rule is, /home.xhtml