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
-
2
votes0
answers2377
viewsWhat is this error javax.servlet.Servletexception: getOutputStream()?
I am generating a report, the moment I click to issue and it displays this error. Exception: javax.servlet.ServletException: getOutputStream() has already been called for this response at…
-
2
votes0
answers167
viewsDoubt migration JSF 2.1 to JSF 2.2
I migrated my application from JBoss AS 7.1.1 to the Wildfly 8.2 and JSF 2.1 for JSF 2.2. Also use Hibernate 4.3.7, JPA 2.1 and PostgreSQL. I am being able to access my application normally, but…
-
2
votes1
answer337
viewsError while trying to update a Primefaces dialog
I have a button that sits inside a column in a datatable, this button opens a dialog which contains a table with some data. But when I try to give a update=":frmPrin:dialogParecer" the following…
-
2
votes0
answers488
viewsQuestions with Flashscope
Hello, all good? I have a question regarding the use of flashScope and would like your help. When we put an attribute inside Flashscope, how long does it stay there? I mean, the attributes of the…
jsfasked 9 years, 11 months ago Paulo Gustavo 1,319 -
2
votes2
answers445
viewsI cannot generate a pdf file
Personal how to generate PDF file using ITEXT with JSF. The problem and the following, when I ask to generate the PDF file in a class having only the MAIN method, it generates normally, but when I…
-
2
votes1
answer1181
viewsJSF - java.lang.Illegalstateexception: This web container has not yet been Started
I’m developing a website in JSF but I’m new in Web and I don’t really understand how some things work. The site is a crud simple music and make calls to other applications in jar that are in the…
-
2
votes0
answers244
viewsConvert docx file to pdf without losing formatting?
I am converting a docx to pdf file using the Docx4j API, but I am finding it difficult to maintain the original formatting of the text after performing the conversion. Dependencies: <!-- docx4j…
-
2
votes0
answers192
viewsHow to treat exceptions with JTA?
I have a project where I am using JPA with JTA. In the method gravar, I put the note @Transactional(Transactional.TxType.REQUIRED) and in it there is a call to a validation method that can cast an…
-
2
votes1
answer716
viewsProblems with ui:repeat and ajax update
Good night. I’m having some trouble using the ui:repeat and ajax update of the first faces. My intention is to list the criteria from the id of the Decision Process to which they are linked so that…
-
2
votes1
answer317
viewsException returned null Java Web
Can someone help solve an exception being generated in my application? I’m developing a Java web application, I just put one input and a selectonemenu in the application to try to save the data, the…
-
2
votes1
answer150
viewsPanelgrid does not share columns with Repeat
I have a panelgrid that I can not in any way divide in columns a ui:repeat, whatever the amount. <h:panelGrid columns="2" > <ui:repeat var="p" value="#{cadSetor.campos}" >…
-
2
votes3
answers752
viewsUpdate page after download
I am working on a JSF page and I need to download a .pdf. When downloading the object is changed and I need to update it as I cannot allow the same download more than once. But if I use…
-
2
votes1
answer383
viewsHow to assign new Selectonemenu value to entity?
I have a table with several columns, between them I have one that is a SelectOneMenu, the table is loaded with a list of Inscricao. In the status column of the application I have a SelectOneMenu…
-
2
votes1
answer473
viewsProblem with redirect JSF+Primefaces
I have a menu where I have a submenu Register and inside it a menuItem Usuários in my template, and also have a menuItem Sair. The problem is that the exit only works on the screen Home, which is…
-
2
votes2
answers215
viewsGraphics in Primefaces
I have a method that makes a query in the bank and returns me a List, in that List I have three data that interest me: Funcionário and StatusTarefa. Example: I have 2 Employees performing various…
-
2
votes1
answer649
viewsJSF 2, CDI 1.1, Springsecurity 4: Custom login form does not redirect to page
I’m making an application with JSF 2, Springsecutiry 4 and CDI 1.1. I did the entire implementation of Springsecurity with JSF and apparently everything worked normally, but when making the custom…
-
2
votes1
answer203
viewsDelete method is not called when I click on a commandButton
I have an delete button that sits inside a column of dataTable and when I click on the same the method that is responsible for the user’s deletion is not called. datatable: <p:dataTable…
-
2
votes2
answers426
viewsLoad a large volume of data into a datatable
I’m having the following problem, I can load the data into my dataTable but it gets very heavy, until the IDE one hangs. How could I fix this problem? I heard about Lazy but I don’t understand how I…
-
2
votes2
answers313
viewsUpload Primefaces Directory
I am uploading with Primefaces where the upload is in the Project Resources folder, but I want to use another directory for file storage, preferably in the root directory where Tomcat is. Any…
-
2
votes1
answer226
viewsJPA+Hibernate releasing update alone
Hello, I have an object that is managed by Hibernate. On screen, an attribute of this object is updated the value and Hibernate immediately triggers an update in the database, without even going…
-
2
votes0
answers30
viewsInsert String in primefaces graph
I am mounting a graph, but I need to display the data of a field that is "String", however it only receive integer. Someone there has been there?…
-
2
votes1
answer80
viewsJava library error in project
The libraries of my project are not importing the classes of *util and several others also, I do not know what is happening, because when I create a new project these classes and libraries work.…
-
2
votes1
answer397
viewsPrimefaces p:datatable without the "No Records found" message?
And I have a p:datatable: <p:dataTable var="ind" value="#{logIndPersistBean.list}" paginator="true" rows="10" id="table" rowStyleClass="odd-row, even-row"> <f:facet name="header"> Lista…
-
2
votes2
answers2211
viewsPrimefaces p:datatable changing default message "No Records found."?
And I have a p:datatable: <p:dataTable var="ind" value="#{logIndPersistBean.list}" paginator="true" rows="10" id="table" rowStyleClass="odd-row, even-row"> <f:facet name="header"> Lista…
-
2
votes1
answer111
viewsDifference of Session in Java
What’s the difference of javax.enterprise.context.SessionScoped and javax.faces.bean.SessionScoped? Can anyone explain?
-
2
votes1
answer344
viewsPrimefaces - Select Datatable line via Jquery, Javascript or PF
How do I select a line from a Datatable, using Jquery, pure Javascript or the PF javascript command?
-
2
votes1
answer97
viewsI can’t select multiple objects from my components
I am using a component of the primefaces, only when I select several items of this component I cannot select. I am using an Enum, it needs to be an arrayList? <h:outputLabel for="servico"…
-
2
votes1
answer202
viewsp:selectOneMenu no list
I’m in the struggle trying to popular a selectOneMenu with data from a Enum, but when I gave up and put the static data with f:selectItem I realized that still the field is empty. Even with value…
-
2
votes0
answers126
viewsHow I seek information from this autocomplete
<?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html…
-
2
votes1
answer183
viewsHow to encrypt in the Java Web project
Can someone pass me some material with the safest way to make the security of a system? I want to put this in the user registration in my JSF project with Primefaces 5.1 for when it is registered…
-
2
votes2
answers236
viewsDatatable does not populate object? JSF
I have the following problem: I have a DataTable which is populated with entities of the type Login that belongs to Usuario as a relationship. A button called Add Login calls the method addLogin()…
-
2
votes0
answers280
viewsblock second tab of the same user session with JSF
I have a problem. How do I not allow two tabs to access the same session, using JSF. I have a web system where every user has their profile. And the profile is used to generate custom forms. After…
-
2
votes1
answer581
viewsAction <p:commandButton does not call Method in Managedbean
I am trying to call a method in my Managedbean, however the form is not submitted. Detail. I have a dialog that inside it I have some includes of other xhtml files, follows as this up to the moment…
-
2
votes1
answer2311
viewsJasper Reports - Error picking bean value
I’ve been looking for three days now and I can’t solve this problem. Let’s get the explanation: I’m creating a report in Jaspersoft studio and linking with my database, in the preview of my report…
-
2
votes1
answer44
viewsI cannot update my dialog via commandLink on a datatable
My goal is to display the selected element in the datatable in the dialog, but I can’t update my dialog via commandLink, whenever I try, the application screen gets all messy and this error happens:…
-
2
votes0
answers487
viewsError: Could not Decode flash data from incoming cookie value Invalid characters in decrypted value[...]
How do I resolve this Hibernate error? It is specified as Grave: JSF1094: Could not Decode flash data from incoming cookie value Invalid characters in decrypted value. Processing will continue, but…
-
2
votes1
answer784
viewsCommandbutton - Error calling method
I’m beginner with JSF, web development, and I’m having a problem using the component Dialog, of PrimeFaces, within a DataTable. The idea was as follows: We have a list of gifts for a tea pot, the…
-
2
votes0
answers25
viewsFill a table by selecting a p:tab
I have two tables in different tabs and when clicking on each one, the table must be filled. I am using the same list to fill the two tables, what changes is the SQL for query that varies according…
-
2
votes1
answer27
viewsI’m hoping that clicking a jsf radio button with primefaces will disable an inputText
<p:inputText id="txtCidadeFora" value="#{moradorRuaBean.moradorRua.cidade}" disabled="#{moradorRuaBean.ishabilitaCidade == false}"></pmf:campoTexto> Could someone help me? In managedBean…
-
2
votes0
answers69
viewsWhy doesn’t my Managedbean receive the amount passed on the xhtml page?
I am in error of those who can no longer visualize the problem and maybe, you "looking from outside" can help me. The question is simple, I’m not getting the value of an input from my view in…
-
2
votes2
answers123
viewsI have a logic problem to filter the registration and editing of my consultation schedule
I am Using the Schedule component of Primefaces(6.2) My project uses: Postgres, Hibernate, JSF. With the code this way I can register a new schedule and I can’t add a new schedule for the same…
-
2
votes2
answers429
viewsHow to change a list of another Managedbean
I have developed a search area on my system where the user can add an item to their list of items. Like a shopping cart. The search area uses a different Managedbean than the user panel that has a…
-
2
votes1
answer685
viewsClear a Bean variable from the JSF page
I have a page with some iteration loops inside my page JSF and then I’d like to know how I do to after each loop clear that attribute from the page. To be clear, I know that when rendering a page…
-
2
votes1
answer65
viewsproblems using inputfile in JSF 2.1
I am using version JSF 2.1 with this artifact below; <dependency> <groupId>org.glassfish</groupId> <artifactId>javax.faces</artifactId>…
-
2
votes1
answer1003
viewsDestroying Session and Session Objects in JSF
I’m using session.invalidate(); to invalidate the session, but when I access the Tomcat mailer it shows me that the session still exists. The following code shows me that even after using the…
-
2
votes1
answer529
views -
2
votes1
answer399
viewsCapture Schedule component month manipulation event
When using the component Schedule of Primefaces it is possible to manipulate the events of the buttons that change the current calendar month, the buttons marked with the circle in the image below?…
-
2
votes1
answer286
viewsInstantiate annotated class with Hibernate inheritance using CDI
Good afternoon, I’m creating a project using JSF, CDI, Bootstrap and Hibernate. I would like to know how to work with the following problem, I have created a set of classes to represent a person…
-
2
votes2
answers1400
viewsHow to sort a p:datatable
How do I sort a datatable by a text. For example my system is a service order system, I need the "Open" orders to come first. Follow the code of the datatable below. I tried to use sortby but it did…
-
2
votes2
answers519
viewsFreeze background when calling Popup?
What would be the best way to freeze background processing when a popup is called ? <h:link onclick="showModalPopUp(); return false;">link </h:link> The best way to pause screen…