Most voted "jsf" questions
Javaserver Faces (JSF) is a Model-View-Controller framework commonly used to create web applications. Always inform: What is the JSF version you are using; What technology you are using, JSP or Facelets; Error messages displayed; Minimum copy of code that can be executed.
Learn more…1,003 questions
Sort by count of
-
0
votes0
answers49
viewsp:summaryRow does not work with p:Columns
I have a JSF page with a p:columns to show data analytically and a p:summaryRow to display the summary. Turns out inside of mine p:summaryRow, I have a p:columns, because I can’t predict how many…
-
0
votes1
answer191
viewsCommonsmail Javamail - Failed to send email
I am trying to send email using google smtp with the Commonsmail lib, in a web application, but this always generating a fault. I made a separate app and tested several settings, in which I saw…
-
0
votes0
answers63
viewsp:selectOneMenu does not correctly filter the dataList
I have a column with the filter p:selectOneMenu . I use it to filter a column that has lines that can have one or several attributes. Then I use the Primefaces component p:dataList to show this…
-
0
votes1
answer105
viewsError generating barcode using Jaspersoft
Trying to generate product barcodes, using Barcode4j 2.1 of JasperSoft 6.5.1, but when running on the JSF page of that error: javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError:…
-
0
votes2
answers118
viewsI cannot make the LIST page work in JSF
I have the following code I am developing with JAVA JSF, primefaces, postgre, cdi, Tomcat: BUSCARBEAN package controller; import java.io.Serializable; import java.util.ArrayList; import…
-
0
votes1
answer699
viewsUpdate JSF only works in the whole form (Primefaces)
good night. I’m racking my brain with a problem that seemed simple I have a form with some fields, when selecting a combobox I want to hide and display some fields. I am using p:ajax to perform the…
-
0
votes0
answers37
viewsError showing list of images that were recovered from BD
Images are recovered normally, but do not appear in the gallery. NOTE: If I take a picture of the list and play in one p:graphicImage works normal. Mbean: package org.salomao.bean; import…
-
0
votes0
answers185
viewsError in Datatable - JSF 2.2 "rowkey" attribute with Primefaces 6.2
I’m a beginner in JSF and I’m having problem with the attribute rowkey datatable. He just can’t find the reference I put to my attribute var. It’s like the name I put on var only fit the components…
-
0
votes0
answers20
viewsWhen I update a non-jsf component ( normal html ) the element disappears from the rendering and loses its contents
I’m using an element <span> that is using a javascript library on it. Remember that JSF features only work on your elements When I run an "update = id_component" (this id_component is a…
-
0
votes1
answer105
viewsImage in the Primefaces menubar
Hello, I have a problem that is not able to put an icon to the left of the menubar and the menu items to the right, someone can help me? <h:body> <h:form> <p:menubar> <f:facet…
-
0
votes1
answer644
viewsError Rendering View - JSF + CDI + Primefaces
Good evening, I have the following context: My application uses JSF2, CDI and Primefaces, my view is yielding normally, however, if I start an F5 repeatedly ends up returning me the error of…
-
0
votes2
answers101
viewsJSF Eclipselink - I can’t write information to Mysql database
I am using JSF in a college subject and the teacher has passed an activity. But I am not able to record information from a form. The connection is made, I can even perform JPQL queries straight from…
-
0
votes1
answer103
viewsPrimefaces 6.2 onCellEdit - getNewValue() nn is receiving the new value
I’m doing a project with Primefaces and on a screen I use a Datatable with cellEdit and I followed the example of the right showcase and tals however the getNewValue and the getOldValue are coming…
-
0
votes0
answers243
viewsHTTP Error 404 not found index.jsp
I’m having a hard time executing this project. He says he can’t find the index.jsp. page, however, I deleted it because it was showing up and not my index.xhtml. But now the problem persists. I…
-
0
votes1
answer122
viewsHow to count how many occurrences of an attribute in a list are equal to a value? JSF
I need to count how many status equals '1'. I used this to count how many objects I had in the list and it worked. Now I can’t count only those who have status equal to 1. <h:outputText…
-
0
votes1
answer41
viewsError 500 when trying to read a PDF
The view is like this: <p:media cache="false" value="#{documents.readPDF()}" width="640px" height="480px" player="pdf" /> No bean is like this: public StreamedContent readPDF() { FileModel…
-
0
votes1
answer142
viewsWhat is the correct way to run a web application in eclipse?
I am studying JSF using the eclipse IDE, but am finding a certain problem when running my application. When I run the application by clicking on the project itself, it doesn’t seem to load my…
-
0
votes0
answers58
viewsI’m trying to list a client’s orders but there’s an error in the DAO that I can’t identify
Button calling the page listing requests: <p:commandButton value="Avançar" id="avancar" action="#{clienteMB.avancarPedido(pedido)}" styleClass="ui-priority-primary" ajax="false"/> Method…
-
0
votes3
answers97
viewsPrimefaces Autocomplete Component "disappears from the screen" after update in Managedbean
Good afternoon, I am trying to insert a product automatically after reading the code and update the components on managedBean. However, the component autocomplete disappears from the screen after I…
-
0
votes1
answer112
viewsJXL generate excel spreadsheet with decimal value in the Brazilian standard
I am using Java and Jsf on my system and there is a screen where you have the option to generate an excel spreadsheet. Worksheet generation is ok. The problem I’m encountering is in columns that…
-
0
votes0
answers152
views@Stateless on CDI project
Person, I have the following structure in my project (CDI): BEAN: @Named @SessionScoped public class ClienteMB extends BaseAbstractMB<Cliente, ClienteDTO> implements Serializable { @Inject…
-
0
votes1
answer545
viewsConversion error when setting''to'null Converter'. - JSF
I am doing a program that registers and relates a customer to a credit card. I am using JSF and Primefaces. It is not necessary to use the Database, so I am storing the data in a same Arraylist.…
-
0
votes1
answer128
viewsError in PDF download: Unknown Protocol: c
I am trying to download a PDF file using JSF.. But when executing the method, Exception is launched. My Method: public void download(String pathUrl) throws IOException { FacesContext facesContext =…
-
0
votes1
answer41
viewsThe caption of a Chart Primefaces does not appear when I download the image
When the chart is loaded, the caption loads along, but when I download the image the caption does not appear.. Button to download: <p:commandLink onclick="return downloadImage();" style="margin:…
-
0
votes1
answer334
viewsBug in simple example JSF + Primefaces
I tried to run a simple example with JSF and Primefaces but I believe it is something related to some incorrect configuration. The application is running on Tomcat 9.0.13, below the project…
-
0
votes2
answers148
viewsItem selected in p:selectOneMenu reaches null in Systener
I have a p:selectOneMenu, with data coming from the database, within a p:dialog, along with a p:messages and other fields. I want to perform an action (Display some messages) when selecting a…
-
0
votes1
answer40
viewsI have an error trying to consume an API, via js fExpected BEGIN_OBJECT but was BEGIN_ARRAY
I’m trying this error because I’m picking up (from an api) a json, does anyone help me how to solve? I’m a beginner in JSF. This is my code to retrieve the data @Named @ViewScoped public class…
-
0
votes2
answers492
viewsHow to save a list using Hibernate?
How to save an entire list using Hibernate? I’m trying to save a list this way: classe.setMinhaLista(minhaLista); classeDao.salvar(classe); And so: classe.setMinhaLista(new…
-
0
votes1
answer176
views -
0
votes2
answers82
viewsHow to update an external element to p:datatable with selectionMode="single"
I’m using the component p:dataTable of primefaces with selectionMode="single" using RadioButton as a selection. I would like when selecting a table row to update my label with the value of the…
-
0
votes1
answer160
viewsSet an attribute of another class
I am building a list in JSF, which uses attributes of two classes (ItemdoPedido and Produto). Man ManagedBean is class-based ItemdoPedido, then the difficulty is in setting and recovering the class…
-
0
votes1
answer137
viewsHow to disable button and enable only after selecting combos
I have a button (Transfer) and I would like when the user enters the screen it is disabled and only after the selection of combos (Combo1 and Combo2) the button is enabled. I’m working with JSF.…
-
0
votes1
answer64
viewsAccess page in another project
I am one developing a system that is divided into three modules (Distinct projects), using JSF Framework (Java Server Faces). I have a main module that has a login screen, which in turn has an…
-
0
votes1
answer29
viewsProblem when receiving value in a select with richfaces
Good morning guys, I need help in the example below: <rich:select value="#{bdaBean.argosDocum.localizacaoObra}" disabled="#{not(bdaBean.usuarioPodeAtualizarBDA)}" height="20px"…
-
0
votes1
answer49
viewsProblems declaring a foreign key using Ibernate
Hello.I need help declaring a foreign key using Hibernate in a project with JSF, I consulted several websites and handouts and could not find a solution. Where I have the classes already mapped…
-
0
votes1
answer44
viewsI cannot delete data from an entity
I have a method that deletes a company entity and its attachments, after the archiving of a protocol, however, when I try to delete, this happens: Caused by: java.sql.BatchUpdateException: Entrada…
-
0
votes2
answers154
viewsValue selected by selectOneMenu comes null
I have a selectOneMenu that contains a list of document types, which I associate to the documents being attached in a p:fileUpload, however, the value selected by selectOneMenu comes null View of…
-
0
votes1
answer86
viewsError using <f:Event>
I’m struggling with something that seems simple to solve, but I’ve already wasted considerable time on it, and I hope someone can help me.. , good. , in my View I use to call a method before…
-
0
votes1
answer23
viewsI’m having trouble displaying my JSF project view -
no error appears and the screen is blank. I believe that it should not be anything very complex to solve but I am new in this language and I’m having difficulty to understand the syntax. In the view…
-
0
votes2
answers162
viewsFailure in dependency injection
I’m having a problem in a JSF test, basically I have the entity, the service and the view, I couldn’t find anything that would help me solve. In view, I want to call my service by Managedproperty…
-
0
votes1
answer211
viewsMysql returns Localdate a day ago
I am unable to identify a problem using Java Localdate with Mysql Date. When saving a date in my Mysql database it saves on the correct date, for example: 2019-05-24. When doing a search using…
-
0
votes1
answer112
viewsProblem printing PDF with iText
I have to print out a Jasper report with attachments, which are images and other Pdfs. My approach is to pass this pdf from Jasper to iText and then merge with the attachments. For the method that…
-
0
votes1
answer62
viewsDoubt Java Server Faces
I’m doing a JSF application, I have a Bean class that has a method. In this method I have a variable of type String and as the method is running, the variable is updating values. I wonder if it is…
-
0
votes1
answer29
viewsSelect One Rendered Menu
Good afternoon, I have two selects one menu, one loads the states and the other I want to load the cities of that state at runtime, only I can’t, it doesn’t even load the page when I try to use…
-
0
votes0
answers805
viewsorg.postgresql.util.Psqlexception: ERROR: Operator does not exist: bigint = bytea
I have a method that retrieves all paths from the appendices of a ledger, so the appendices can be printed. They are listed in a p:datatable within a dialog, but when opening the screen so that I…
-
0
votes0
answers53
viewsLeaving a Hidden table using javascript, primefaces and JSF
I have a screen that asks for cnjp, dtini and dtfim, status and a query button. In javascript, the query function calls another function that validates the fields. If the fields are ok, a table with…
-
0
votes1
answer165
viewsJSF <p:commandLink> action is not invoked
Good evening, everyone, I have a problem, I have a commandoLink in a table that when clicked, does not invoke the method of a Bean that is in its action, I have seen some solutions like put…
-
0
votes1
answer66
viewsPrimefaces p:chips, is there any way to start the list of tags with no value?
On my screen, I need the list of tags in the chips component to start empty and when I have values I need them to be set as tags, but when I try to start an empty list of tags, the component starts…
-
0
votes1
answer452
viewsProblems transforming file into an array of bytes
Good evening, I’m trying to get a pdf file from a xhtml, and when it comes to saving it in the bank, I want to turn it into an array of bytes, for this, in my DAO I do so: public boolean…
-
0
votes1
answer146
viewsJPQL Illegalargumentexception - Unexpected token: SUM
java.lang.Illegalargumentexception: org.hibernate.hql.internal.Ast.Querysyntaxexception: Unexpected token: SUM near line 1, column 1 [SUM(e.quantidade) FROM br.com.pmro.coad.modelo.Stock and Join…