Questions tagged [jsf-2.2]

JavaServer Faces 2.2 is the major JSF upgrade that's part of Java EE 7. It has some significant new features like task flows (Faces Flow), a stateless mode, basic theming (resource library contracts), build-in HTML5 support and a much improved "bare HTML" mode (passthrough elements). Starting from this version, JSF formally supports CDI and for some features even depends on CDI.

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

2253 questions
0
votes
1 answer

JBoss 7.2.2 Attribute 'src', 'file' or 'page' is required

I've got a weird one on a JBoss 7.2.2 instance. The webapp works flawlessly in Tomcat 7.x JSF 2.2. javax.servlet.ServletException: /WEB-INF/template.xhtml @10,38 Attribute 'src', 'file' or 'page' is required Here is the "faulty" template…
Alain Pannetier
  • 9,315
  • 3
  • 41
  • 46
0
votes
1 answer

How to remove id auto integrated of in JSF?

I have and when rendered to html:
0
votes
1 answer

NullPointer Exception - JSF Event Handling ( ValueChangeListener )

I am learning JSF Event Handling and when I try to run some sample code, I am getting a Null Pointer Exception. This is my index.xhtml snippet,

Implement valueChangeListener


Shinchan
  • 572
  • 2
  • 5
  • 16
0
votes
0 answers

Can't upload file & validation message not appear

i'm new in java & jsf framework. I have a situation and make me realy confused. I'm trying to create upload form in jsf, the backing bean is request scoped, user must login for using this form. when I test to submit form, the validation message its…
Capt. Crunch
  • 1
  • 1
  • 1
0
votes
1 answer

JSF AJAX - Class doesn't have property

I have been trying to run AJAX example in JSF. But I am getting "class does not have the property login". But in all the examples in various websites, code is same the same. My index.xhtml
Shinchan
  • 572
  • 2
  • 5
  • 16
0
votes
1 answer

Hibernate 4.3, With JavaServer Faces Using Netbeans, Returns a Table With Zero Rows

I am trying to recreate this old NetBeans hibernate-webapp tutorial. All the project does is retrieve data from a MySQL database using JSF managed beans. I'm having the following problem, which I assume is because I'm using newer software…
B.F.Q
  • 1
  • 1
0
votes
1 answer

Which settings are needed to make use of EL 3 in a JavaEE environment?

I am using Apache TomEE 1.7.4. The dependencies added in my pom.xml file are- javax.servlet javax.servlet-api 3.1.0
Farhan stands with Palestine
  • 13,890
  • 13
  • 58
  • 105
0
votes
0 answers

Create dialog window in JSF

I would like to create a usual dialog window: The user clicks a link or button The screen becomes blackish, a new window appears (a DIV is created) By using Ajax, the DIV is populated with a form.xhtml By clicking on a cross in the DIV, the DIV is…
user1156544
  • 1,725
  • 2
  • 25
  • 51
0
votes
1 answer

Javascript function inside ui:repeat to show/hide contact formular not working

I have a facelet that shall dynamically list teachers loaded from database with name, profile picture etc. etc. Every listed teacher has its own contact formular, which gets hidden after pageload, and a button "get in touch" which, onclick, shall…
BenSkeleton
  • 153
  • 2
  • 6
0
votes
1 answer

Render jsf form in pdf

Hi I got a requirement where I have a pdf form to register for university. In this form you will need to input your personal details and all your qualifications. Instead of filling this form on paper , they want to do it online on web. So I will be…
Alina
  • 369
  • 3
  • 8
  • 18
0
votes
0 answers

Different action/event on checkbox selection and node selection in p tree primefaces

I have a requirement in which I have to call two different actions on p tree checkbox selection and node selection. In checkbox selection, I don't want the node to be selected and highlighted as grey and I want multiple checkbox selection which…
Reema
  • 1
  • 1
0
votes
1 answer

JSF and Jquery- How to target an element that is rendered after an ajax call

I have a form that contains a p:fileUpload component as well as an h:graphicImage component. The h:graphicImage component is only rendered once the file has been uploaded via AJAX. My problem is that I need to execute Jcrop(an image-cropping…
0
votes
0 answers

How to get file upload path location for database by setter and getter in jsf

I m having trouble to set value for entity bean. the problem is that when i populate form file will be upload but i need file path to store in data base. In my bean i have used setter of employee entity to set file url but And I think the code is…
Bibek Shakya
  • 1,233
  • 2
  • 23
  • 45
0
votes
1 answer

Implement BarChart with series by Date

I have this data stored into database: I would like to generate the data into Primefaces bar chart by date: TicketStatusReportObj obj; List list = new ArrayList<>(); ... // here we insert days using loop with data from…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
0
votes
0 answers

getOuputStream() has already called for this response

I'm working on a JSF Project, in which I have to generate reports. To do this I'm using JasperReports. When I click the button that creates the PDF file I can create the while but I get this error. I don't what is the reason. GRAVE: Error Rendering…
Manuel F.
  • 23
  • 1
  • 5