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
votes1
answer522
viewsAngular 2 - Component Creation (Tags)
How do I create components in Angular? I want my team to put an Ex TAG: <campoBusca></campoBusca> and on the screen is already printed a input all straight, with the Divs necessary, etc!…
-
0
votes0
answers105
viewsJSF - Abort method when closing browser
I have a report that depending on the filter applied can take a long time to finish. In some occasions the user gives up waiting and close the browser, it happens that the query is still running on…
-
0
votes1
answer689
viewsJSF ui:Composition component does not work
I’m creating an example template but when the page opens it goes blank, it follows the template and page that tries to pull up the template: master-template.xhtml: <?xml version="1.0"…
-
0
votes1
answer672
viewsUpdate does not work when trying to update a <p:panelGrid>
I have a button inside a <p:toolbarGroup> where I do some operations, I also have a <p:panelGrid> which should be rendered after the user clicks the button, but I cannot update this…
-
0
votes1
answer72
viewsHow to organize questions to display on screen
good night. I have a String type attribute that receives a question coming directly from a textarea. My problem is that I can’t let the questions go when it comes to displaying them equally as a…
-
0
votes1
answer190
viewsShow in Autocomplete the attribute of a specific user
I’m trying to make an autocomplete to show only the names of registered teachers. I believe the problem is in the search for the attribute, since to get the attribute I have to do the following way:…
-
0
votes0
answers53
viewsError while running JSF
I have a JSF error that I can’t figure out. It looks like it’s with my DAO product or Product. This was happening when I was recording a product, now the project doesn’t even open anymore.…
-
0
votes1
answer33
viewsError loading JSF project: URL changing alone
When running my project in netbeans, my project is being uploaded to the URL http://localhost:8080/loogix// when you should actually carry http://localhost:8080/loogix/faces/index.xhtml. The log…
-
0
votes1
answer47
viewsBean is not reached by View
I am with a Requestscoped Managedbean that is not being found by my view. Managedbean package br.com.hidros.control.beans; import java.io.Serializable; import java.text.SimpleDateFormat; import…
-
0
votes1
answer454
viewsGet way of the project
I have a project JSF and would like to return the project path in a String. This path has to take the folder webapp as root. How I do ?
-
0
votes1
answer254
viewsInjection error in Bean feature
So guys, I’m developing in jsf and I came across this mistake there, does anyone have any idea what it might be?? javax.servlet.ServletException: javax.servlet.ServletException: Um erro ocorreu ao…
-
0
votes2
answers31
viewsValidate campus by calling javascript function
I need to validate the phone campus and CPF, and for that I found the following script https://codepen.io/KingRider/pen/qNxror But when I play here in JSF it doesn’t work. In that I opened a new tab…
-
0
votes2
answers558
viewsEdit with Radio button in jsf
Well I’m starting now to develop with JSF and I’m with a doubt of how to do for my method edit receive the right object of the radio button , the way it is implemented it always takes the first of…
-
0
votes1
answer132
viewsSelectoneradio sending only one value
I am concluding a simulation system for my course completion work. However, I have a problem that I have not yet been able to solve. I perform a filter to select the questions for the user to…
-
0
votes2
answers435
viewsProblems sending email with Javamail
I am developing a Java Web application with Primefaces in which I use javaMail to email with user information, but it is giving error. The Bean: @Named @RequestScoped public class EnvioEmailBean…
-
0
votes1
answer24
viewsHow to extract information from a video when uploading with Fileupload?
in the systems I am doing need to prevent the upload of a video with more than 1 minute and inform the user. Any way to do that? Thank you.
-
0
votes1
answer81
viewsHibernate is not generating id to write to the bank
I am handling a xls file, so far so good. I can perform setters and getters normally. however in save to go to the bank, id is coming null and with that not recording in the bank. I will post my…
-
0
votes2
answers338
viewsHow to save an upload file to the database with Primefaces
I searched a little about uploading files with primefaces and couldn’t find any example of code that saved a file in the database. You can save a file as if it were a class attribute?
-
0
votes1
answer126
viewsImage does not appear in the project
good morning, I am trying to put a pdf icon on my project, but it does not appear. I am using f:Facet this way. <h:commandLink> <p:graphicImage name="/resources/img/pdf.png"/>…
-
0
votes1
answer164
viewsShow preloader icon on site
I have a login registration page that calls a registration confirmation page, in case the person has to open the email, pick up the code received and set this registration confirmation page. The…
-
0
votes1
answer241
viewsError running JSF project by eclipse
Good evening , I’m trying to run a project in the eclipse, but Tomcat is throwing me the following exception. Does anyone know what can be? fev 25, 2018 8:57:57 PM…
-
0
votes1
answer66
viewsError to play search screen data for registration screen for editing
Gentlemen, I’m having a hard time getting the objs from my customer search screen, and playing it on the sign-up screen for editing it. My search screen is with a button with a <p:button…
-
0
votes1
answer736
viewsChange the color of Toolbar on primefaces
I wanted to change the background color of Toolbar what the tag would be <p:toolbar> <f:facet name="right"> <h:commandButton value="Sair" style="color: "/> </f:facet>…
-
0
votes1
answer56
viewsHow to migrate from spring security 3.0.5 to 4.2.3
I’d like to know how to get from Spring Secuirty 3.0.5 to 4.2.3 My xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee"…
-
0
votes1
answer34
viewsSpring Secuirty dependency error
I am not able to adjust the dependencies of my Spring security, I tried to download the libraries 4.3.5 however I could not deploy. I’m not using pom so I need help, my library: Error while…
-
0
votes1
answer466
viewsCould not Verify the provided CSRF token because your Session was not found
I’m using Spring security 4.2.3 and spring 4.2.5 when I run the login screen and the user registration screen works correctly however when I ask to access the home screen. this error appears:…
-
0
votes1
answer33
viewsGeneric styleClass in table
I am mounting a table and wanted to know the following: I want to put a css style in the column headers, you need to use a styleClass in each header or I can declare a generic for all the headers?…
-
0
votes0
answers590
viewsAuthentication and authorization of the email and password on the login screen
I have a login screen in which the email and password are already registered in the bank, however I am not able to login with this data that are already recorded in the bank. In the loginBean class…
-
0
votes0
answers169
viewsHibernate.engine.jdbc.spi.Sqlexceptionhelper log Exception, SQL state null
1I’m having this problem in my Hibernate Validity to Newly established conection, when doing the query, it loses the session, only after giving several F5 the session back.. can anyone help me? ...…
-
0
votes0
answers213
viewsPrimefaces p:selectBooleanButton ignoring Converter
I’m trying to get a p:selectBooleanButton is used to select the status of a registration form. The value of the attribute in the template is a Enum with two values that can be translated as True or…
-
0
votes1
answer603
viewsPassing JS variable to Managedbean
I have a variable in js, and I need to send it to my Managedbean, which is the most correct way to do this?
-
0
votes0
answers385
viewsDisplay login user profile data
Good guys to creating a panel where have my profile section for the Administrator who is online can see your profile information. However I am still having problems creating the profile page, I have…
-
0
votes1
answer112
viewsCalendar Primefaces losing style with ajax update
The first faces Component is losing style after updating with ajax in the view. What do I do to solve?
-
0
votes0
answers48
viewsProblems with Icefaces Components
I need some help, i’m trying to develop a simple application using JSF 1.2, Icefaces 1.8, but i Keep Getting all type of errors. I Went to icefaces website and download a input file example but it…
-
0
votes0
answers23
viewsJSF 2.3 project with delay in initial connection
I am making a system using Java1.8, JSF 2.3, Hibernate 5.4.x and Tomcat 9, with standard MVC and entitymanager. The problem is that to save the first object in a form, it takes about 3 to 5 seconds.…
-
0
votes0
answers98
viewsCould not determine type for: java.util.List, at table: ..., for Columns: [org.hibernate.Mapping.Column(...)]
I have a very simple problem using JSF + JPA c/ Hibernate. I have two classes: Message and Comment.. The Message class contains a list of Comments. But when trying to make this relationship the…
-
0
votes1
answer95
viewsProblems with <p:Poll> that does not find Id
Guys, I have a div that needs to be updated in 5s, but it’s giving error saying that the ID is not found. <h:form id="form"> <br /> <center><h:outputLabel value="Visão Geral"…
-
0
votes0
answers668
viewsorg.hibernate.Exception.Jdbcconnectionexception: Could not open Connection
I am having trouble losing connection to Mysql database, which occurs after few minutes of use. Please, can someone help me? I have no idea what it could be. Follows my codes: Hibernate.cfg.xml…
-
0
votes1
answer264
viewsCall method in bean if condition is true
I created this confirm: <script type="text/javascript" language="javascript"> function salvarAntes(){ var r=confirm("Deseja confirmar?"); if(r){ return true; } else { return false; } }…
-
0
votes0
answers176
viewsMany To Many JSF and JPA
Greetings my dear, I ask for help to resolve the following question: I have two entities in a relationship of many to many @Entity public class Livro implements Serializable { private static final…
-
0
votes1
answer81
viewsHow to change an image using commandButton in Java Primefaces?
Good afternoon, I’m developing a naval battle game in JAVA using Primefaces to make the front end. I would like a help to assemble a commandButton that when clicked, it triggers a function that will…
-
0
votes1
answer166
viewsReport to Jasperreports returning blank pdf table
Good morning, I have a system in javaEE Primefaces and Jsf, I created the reports with Jasperreports, it was all worked, but after an update of the Instancia linux ec2 AWS, the reports are returned…
-
0
votes1
answer100
viewsKeep Bean alive even after a redirect - JSF
Does anyone know any way to leave a Bean alive even after giving a redirect? The situation is like this: I am developing a project where, in theory, the user login and the user and password he typed…
-
0
votes1
answer31
viewsError while trying to list employees on the project sale screen
I have following error when accessing the sales checkout screen, does not show the registered employees, however customers show. Screenshot: View: <?xml version="1.0" encoding="UTF-8" ?>…
-
0
votes4
answers232
viewsPage rendering error after system navigation
I have a problem with a developed system which is that as the user browses the system after a certain time the pages do not render but return when the user updates the page. I researched a lot but I…
-
0
votes0
answers26
viewsDynamic Datatable with Primefaces 6 + Display Objects in the Same Line
Guys, I looked at the primefaces showcase and I couldn’t find a solution. My question is the following I have a list of open accounts and would like to click open a page showing the open constants,…
-
0
votes1
answer162
viewsDialog with datatable is not displayed
I have a dialog with a dataTable, However, when you click the button that should open it, this does not happen. He also owns a dataTable within it that should have respective values the line in…
-
0
votes1
answer121
viewsHow to change the caption of a Primefaces line chart?
I’m looking to change the font size and the square of the caption of a Primefaces chart via Javascript. My code: <script type="text/javascript"> function alterarGrafico() {…
-
0
votes1
answer2005
viewsnot-null Property References a null or Transient value
When I try to save a city, it shows not-null error, but looking, I can’t find a solution when looking for the controller, I understand the error, but in my project. Caused by:…
-
0
votes0
answers233
viewsJSF, Primefaces, <p:fileupload> stopped working after Chrome update
The fileupload worked perfectly until 3 Chrome updates ago, Firefox never worked, searched all over the internet for any solution or similar error and was unsuccessful. The page in question should…