Most voted "jsf-2.2" questions
Javaserver Faces (JSF) is a Model-View-Presenter framework commonly used to create web applications. Always report: What technology you are using, JSP or Facelets; Error messages displayed; Minimum copy of code that can be executed. Use this tag for the specific version 2.2
Learn more…248 questions
Sort by count of
-
1
votes0
answers81
viewsJSF and JPA with Eclipselink: Inserting element twice in the database
I’m working on software and I’m having a certain headache to insert some related objects. It is inserting this object twice and the error is not viewable. To see the whole project, follow github…
-
1
votes0
answers225
viewsChange JPA/JPQL record
I am doing my first WEB project and I have a question about using JPA/JPQL/MERGE. The doubt is as follows: I need to change a record of a table, I created a datatable that returns to me a list of…
-
1
votes0
answers162
viewsalgaworks JSF Primefaces not echerga void methods
I’m studying Primefaces with CDI of some video classes I’ve been watching but something is happening that at least strange . I have a bean gestaoEmpresas There are two methods, one void consultar()…
-
1
votes1
answer215
viewsProject error: JSF does not respond or display Message
I’m on a JSF study project from the book Java For Web. It was going well, but I put the following code in JSF which, according to updates, should not work because the library…
-
1
votes2
answers364
viewsDatatable of the first faces does not update selection variable
Based on the first example of the site Datatable Selection where a variable(linhaSelec) receives the value selected by clicking on a <p:commandButton/> I decided to mount my implementation but…
-
1
votes1
answer89
viewsHow to view Tomcat log on screen
I am creating a functionality using jsf with primefaces, to display the application log (Tomcat), on the screen (view xhtml), but I have not found any plugin or append to do this, and before…
-
1
votes1
answer90
viewsDoes not recognize my createQuery method
I am with a JSF2.2 project with CDI, and I have correctly configured my project for CDI, what is very strange is that the createQuery method is not being recognized, other times did the same way of…
-
1
votes1
answer775
viewsProblems with Nullpointerexception in a JSF project
I am with an application that is displaying the following error message; jun 01, 2015 4:15:05 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute ADVERTÊNCIA: #{pesquisaPedidosBean.pesquisar}:…
-
1
votes4
answers368
viewsDifficulty with CSS in a JSF2 project
Greeting to all, I’m new as a Java programmer with JSF projects, I want to put an image as the page plan, and I don’t know how to do. This is the structure of my project; I tried to put the line of…
-
1
votes1
answer192
viewsHow to use the upload approach saving the path in the bank?
I created a Java web project that is using JSF with Primefaces, Maven, CDI with JPA. My web application is successfully entering the records, the application is a registration of news, where it is…
-
1
votes1
answer554
viewsHow to inform download PDF file name using Itext/Lowagie and Primefaces?
I am able to download the generated file, but I can’t set the name nor the . pdf, just download as index.xhtml. Does anyone know how to fix it? I call the method to generate PDF like this:…
-
1
votes2
answers569
viewsFonts are not displayed when used with JSF
I created a Maven project that is using JSF2 plus the framework Bootstrap, but there are some Bootstrap settings that are not working properly, as you can see in the figures below. He’s being…
-
1
votes2
answers1849
viewsHow to understand shopping cart logic in a JSF project?
I’m developing a prototype of Ecommerce being that I’m still trying to learn the logic of shopping cart. By that link or this other of videos on Youtube it makes the following steps: It creates a…
-
1
votes2
answers1460
viewsMessage from "required" Primefaces
I have the following scenario : <h:form id="formValor"> <p:growl id="growlMessage" showDetail="true" autoUpdate="true" showSummary="false" /> <p:tabView id="tabViewVinculo"…
-
1
votes1
answer268
viewscommandbutton executes method, but being null values. Why are inputstexts values not being assigned to class attributes?
In all the examples I saw of the code below, the normal one was to start the xhtml page to create a new client-like object. Through the values entered in the inputs set the attributes of this object…
-
1
votes0
answers152
viewsWhat to do when a <p:dialog> closes in less than a second?
I’m creating one to edit a client’s database. It loads the data with the values of the attribute of the object passed, but in less than a second it closes again. What to do? XHTML code (client…
-
1
votes2
answers722
viewsHow to edit a database value using JSF?
I’m trying to edit a database record using JSF. The logic is simple, there is a client list, and when you press the edit button in front of each client in the list, a form is opened, with inputTexts…
-
1
votes1
answer109
viewsJSF slowness after implementing Phaselistener
I’m implementing the Phaselistener interface and now the system has slowed down. I was doing an analysis and saw that JSF is making repeated calls to a page that has only one panel with information…
jsf-2.2asked 9 years ago Lucas Vinícius 11 -
1
votes1
answer58
viewsproblem with Java validation
I’m implementing validationBean in my project, and I’m having trouble validating a field, but apparently it’s all right in the settings I made in my project as you can see: Bundle:…
-
1
votes1
answer1317
viewsHow to solve the date validation problem - Calendar - Primefaces?
Loading the date in a Calendar (Primefaces) normally loads: Code: <p:outputLabel value="Data de Nascimento" for="data-nascimento" /> <p:calendar id="data-nascimento" locale="pt"…
-
1
votes2
answers112
viewsjava.lang.String cannot be cast to com.sisEnade.tcc.modelo.Questao
good afternoon. I have the following error: java.lang.String cannot be cast to com.sisEnade.tcc.modelo.Questao However, I was unable to resolve the error. The goal of the implementation is to create…
-
1
votes1
answer232
viewsBecause JSF is not respecting the paths entered faces-config.xml
My application is no longer respecting the routes inserted in faces-config.xml, because? Follow the Exception: Caused by: java.lang.NullPointerException at…
-
1
votes2
answers437
viewsQuestion how to submit a JSF form using <p:confirmDialog>
I wanted to know how I send a form using the p:comfirmdialog. The idea is to get the message tem certeza ?, with the options sim or não. If you click sim, then it sends the Form. <p:commandButton…
-
1
votes1
answer950
viewsTo display a list of images with saved path in the JSF2.2+ Primefaces 4 database
I’m having trouble displaying images on a datagrid using both img and graphicImage passing to these tags the path of the database. Could someone help? I’m using Tomcat 8. The last way I tried was…
-
1
votes3
answers959
viewsHow to make a simple JSF download?
How to make a simple JSF download? I have a list of attachments on <p:dataTable> and would like to implement a simple download. I implemented with <a href>, the link about the file name…
-
1
votes1
answer527
viewsHow to break at the end of the checkbox line
The courses are coming out without formatting, there are more courses and are not appearing on the registration screen. How to break this in XHTML? Code: <h:panelGrid columns="2"…
-
1
votes0
answers204
viewsJoin two <h:datatable> with jQuery without losing records after update
I have two datatables, the first one loads 5 records when loading the page and the second one is hidden and empty. Whenever the scroll reaches the bottom of the page I go in the database, I load 5…
-
1
votes0
answers32
viewsPrimefaces datascroller only loads once with Lazy
Guys, I started using dataScroller today with Lazy of the first faces <p:dataScroller ajax="true" id="listaDiarios" chunkSize="3" lazy="true" styleClass='ui-datagrid-no-border'…
-
1
votes3
answers3098
viewsHow to use <f:setPropertyActionListener> with Passthrough Elements in JSF 2?
I am using Passthrough elements in my JSF project, and I need to do something similar to this: <h:commandLink action="#{meuBean.acao()}" value="clique aqui"> <f:setPropertyActionListener…
-
1
votes1
answer116
viewsFacebook namespace not working in JSF?
I’m using personal jsf, I’m trying to make facebook recognize my metatags: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"…
-
1
votes0
answers559
viewsGeolocation.getCurrentPosition function does not work in Chrome 50.0
I have a system in JSF that asks the user permission to read its coordinates, this system always worked, but after the last update of Chrome, it stopped working. Someone is going through this with…
-
1
votes0
answers96
viewsDisplay dialog with first faces when clicking on an emptyMessage of a p:autocomplete
Well I am using Primefaces I have a field p:autocomplete to search Employees, I would like when typed a name and no results found it displayed the message "No employees found, click here to…
-
1
votes1
answer135
viewsError accessing method in Managedbean
Guys I’m having problems accessing a method that is in my Managedbean, the idea is the following: I have a page where I list the records that are in db from the click on the "Query" button and then…
-
1
votes1
answer653
viewsPick row reference in table with JSF(Primefaces)
I have a scenario that presents something weird and I don’t understand why this behavior. Using JSF with Primefaces, I have a Datatable with some (several) values that comes from the Database and…
-
1
votes1
answer180
viewsSelenium perform task to the end
In tests with Selenium, running by Eclipse, when I run several at the same time. Errors happen: First, does not finish running the task opens another browser. Starts running the second test without…
-
1
votes1
answer100
viewscan’t change my object from a datatable - JSF with Primefaces
I am retrieving my object from the datatable more at the time I redirect the datatable to another page to make a change, it shows an error. More takes the Object ID, I made a convert more…
-
1
votes1
answer416
viewsAdding JSF in java project
I created a Maven project in Intellij IDEA 2016.2, defined it as a Web Application, and later installed JSF. Before installing the JSF the framework added the index.jsp file, which works normally,…
-
1
votes1
answer65
viewspdf export of a web application, error: org/apache/poi/ss/usermodel/Workbook
Good evening. I am wanting to export to PDF of a web application with JSF and am having the following error: Stack Trace: java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Workbook at…
-
1
votes0
answers149
viewsProblem with p:datatable, ajax, ui:include
I have a problem, I have a p:datatable that does not work the "sortBy", nor the pagination. When I test the code of this table on a simple page it works, but when I use it in my project it doesn’t…
-
1
votes1
answer94
viewsProblem with JSF
I have a screen and I would like to each product added, I could choose a quantity and then calculate that quantity multiplying by the value of the product. However, I have no idea how to do this,…
-
1
votes2
answers580
viewsRedirecting JSF pages
I’m looking to redirect the main page to login page so I set the faces-config.xml together with the main page below my code for you to see Code faces-config.xml <?xml version='1.0'…
-
1
votes1
answer192
viewsList data in a datatable
I believe this method of dao that should not be correct. DAO METHOD public List <Campeonato> listarTodos() { try { manager.getTransaction().begin(); Query query =…
-
1
votes1
answer463
viewsHow to merge <h:column > columns in JSF?
How can I merge columns or rows in JSF 2.0 ? Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html…
-
1
votes1
answer726
viewsp:inputText is not updating
I have in the following code, a form that works both to change and to add an entity. The logic is this, I have a variable alteracao. if alteracao == true the form will behave to change if alteracao…
-
1
votes1
answer164
viewsDoubt Converter and CDI
I’m a few hours testing and trying to understand why this code here isn’t working and I’m getting one NullPointerExcepetion . Someone can sense something wrong ? import…
-
1
votes1
answer339
viewsRecover shopping cart after close and open browser
I’m assembling a shopping cart with JSF it’s working, but not in the way I believe is correct. Example: When I enter sales sites, even if I am not logged in, I can add items to the cart, and even…
-
0
votes1
answer1314
viewsjava.lang.Nullpointerexception on chat system
I am doing a chat project Helpdesk with JSF 2.0 and Primefaces, but an error is generated when I try to connect the Attendant or user in chat. In atendente.xhtml and index.xhtml has a form that…
-
0
votes1
answer212
viewsProblem with "match" attribute of a text field
I’m using the attribute match of a <p:password/>, but it doesn’t work properly. <p:password id="senha"/> <p:password match="senha"/> When I send the form via commandButton, an…
-
0
votes1
answer462
viewsImage Servlet for JSF Project "Locking" the Application Server
I have the following code that provides my portal with the images that are in the database @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException,…
-
0
votes0
answers152
viewsForm with null values
My Vies is coming with only one null form, while the others are with the correct values here is my view: <h:head> <title>Novo Cliente</title> </h:head> <h:body>…