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
-
1
votes1
answer2395
viewsCalling a JSF popup from a Managed Bean
I use this Javascript to call a popup in JSF: function showMyPage() { window.open('./showMyPage.xhtml','mywindow', 'resizable=no,toolbar=no,scrollbars=yes,height=450,width=530,top=145,left=235');…
-
1
votes1
answer555
viewsProblem with Primefaces autocomplete
I have a <p:autoComplete> working, and I have a commandButton that opens a dialog so that I can make a new registration. The dialog opens, I fill the fields but when saving this exception is…
-
1
votes0
answers45
viewsI have two classes one contains the fileupload and save file method... I want from the MB to call this class, which is the most correct way
follows the fileupload class public class FileUpload{ private String destination="D:\\tmp\\"; public void upload(FileUploadEvent event) { FacesMessage msg = new FacesMessage("Success! ",…
-
1
votes0
answers98
viewscould not resolve Property: funcionario of: br.com.horasExtras.domain.Funcionarios
I am working on User authentication, this is my code AutenticacoaBean. When I click the login button of my authentication screen, the following error occurs: could not resolve Property: funcio of:…
-
1
votes0
answers187
viewsError in JSF page call + Primefaces
I have the following menu: <h:form> <p:menubar style="margin-top: -20px; margin-bottom: 20px"> <p:submenu label="Cadastros"> <p:menuitem value="Pessoa" /> <p:menuitem…
-
1
votes0
answers23
viewsHibernate Connection
I’m trying to make an application using the Hibernate, but when will I create the file .cfg.xmI don’t recognize the driver of the mysql, even though it’s in my lib the connector of mysql. Someone…
-
1
votes0
answers142
viewsProblem rendering JSF page
I have a very "boring" problem, yesterday I had a system JSF working perfectly with all pages opening correctly. When I enter the system today the page is like this: No component of Primefaces or…
-
1
votes3
answers11115
viewsJavascript to remove accents and special characters does not work the same in all browsers ?
I have the following Javascript: function validaCaracteres(strToReplace) { strSChar = "áàãâäéèêëíìîïóòõôöúùûüçÁÀÃÂÄÉÈÊËÍÌÎÏÓÒÕÖÔÚÙÛÜÇ"; strNoSChars =…
-
1
votes1
answer1973
viewsSpeaker gap in panelGrid
I have 4 columns, and I want the last 2 more separate from the first. I can’t help it.? Code: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0…
-
1
votes0
answers311
viewsProblem with Widfly
I am having an error starting the library project with Widfly 10. Until the part connecting with the bank was working, agr when connecting with mysql am having problems. I’ve already set up the…
-
1
votes0
answers93
viewsI cannot delete my object in datatable - JSF
I am unable to delete an object in my datatable. NOTE: I can already persisistir and change. My Bean package com.irmaosuspension.controleservico.controller; import java.io.Serializable; import…
-
1
votes2
answers237
viewsWhy isn’t jsf recognizing Istener in the Bean?
Why jsf is not recognizing the Bean Reader? My bean: /** * Listener que escuta a mudança do tipo de Solicitante * * @param event */ public void mudarSolicitante(ValueChangeEvent event){…
-
1
votes2
answers290
viewsWhat is the life cycle behavior of JSF 2 when validating mandatory fields?
I have a customer registration form with two fields, the first field is the CPF with mandatory and the second Name with optional. When editing a client with CPF and Name populated, delete the two…
-
1
votes1
answer7968
viewsjava.lang.Classnotfoundexception: javax.faces.webapp.Facesservlet
Trying to start my JSF application returns this error : java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet pom.xml <dependency> <groupId>com.sun.faces</groupId>…
-
1
votes1
answer584
viewsAfter requesting AJAX input no arrow value to Managedbean?
I’m building an address registration form and implemented the State and City combos respectively. They work as usual, with the city combo being filled in according to the value selected by the state…
-
1
votes0
answers52
viewsOmniface Selectitemsconverter does not reflect the values of the object on screens
I’m using the component selectOneMenu with the conversion of omnifaces. When I save my object in the database works right, but when I restore the information, they do not reflect on the screen, ie…
-
1
votes1
answer84
viewsHow to access a "List" from the screen?
I am trying to access a list of values in my code through the JSF screen, but the screen does not find the method that lists the values, someone can help me? I want to access the method values…
-
1
votes1
answer435
viewsPut dynamic theme Primefaces
I have two templates in my web project. I want to use a different Primefaces theme for each template. How do I do that? In the web.xml, when I put the Primefaces theme changes to all templates, but…
-
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
votes0
answers157
viewsRecord attendance of students in the Database
I have a school management system, where, I aim to add an option for teachers to add the student’s frequency. I’m thinking of creating a transaction, where, each teacher accesses, the page that will…
-
1
votes1
answer951
viewsPrimeface components do not appear
Guys good afternoon already tried everything change the url of web.xml to *.xhtml but it will not, I added the library primefaces in the lib of WEB-INF, but the components do not appear. My web.xml.…
-
1
votes1
answer72
viewsHow to view Questions recovered from a DAO on the same JSF page
good afternoon. I have a page called simulated.xhtml in which I receive some parameters (Filter) to make a query in the database according to the filter. Everything is already working, what I wanted…
-
1
votes1
answer184
viewsRepeated ID with facelets
The problem is that in a project I use facelets is telling me that there is a component with the repeated ID. Although I scanned the code behind the repeated ID, I couldn’t find it, so I believe the…
-
1
votes1
answer165
viewsDoubt about JPQL
I honestly have a certain difficulty with comics, and I need a JPQL that returns only one record. I have a Price entity and a Product entity. I need to bring the last registered price by the user. I…
-
1
votes1
answer281
viewsConvertnumber JSF negative values
Negative monetary values when using the native JSF converter, <f:convertNumber type="currency"/>, stand with the character '-', before R$. For example: -R$ 56.134.726,99 .xhtml…
-
1
votes1
answer2246
viewsHow to redirect page in JSF?
I have a system with a form in which you can edit or remove items. In it there is a link to redirect another page. What form it is possible to redirect a JSF page?…
-
1
votes0
answers496
viewsjavax.faces.el.Evaluationexception: java.lang.Nullpointerexception
You guys are my last salvation. I get this mistake javax.faces.el.EvaluationException: java.lang.NullPointerException when I try to register a client. My experience with development is low, I am…
-
1
votes1
answer28
viewsdatable jsf collection
I have a question in jsf, I have a collection in my Bean List,I am printing it in a datable, but in my object Professional I have a collection of services, I wanted to print the collection of…
-
1
votes1
answer74
viewsRecord method has no action and link of Dependent x Driver is not done
When developing a simple application where the dependent is linked to his responsible one who is a driver, when I click to create the link and record dependent nothing happens, only the following…
-
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
answer319
viewsProblem with JSF during form validation
I have a problem with the animal registration form: Follow the part of the diagram involved in the relationship regarding the form: The problem is that when I am registering an animal, I can put the…
-
1
votes1
answer44
viewsError converting a data from one class to another
I’m using JSF in a project, I have a working "W-A" screen that displays the "T-A" table data in a grid. In this grid, each row has a button that forwards to a new screen "W-B" where will be…
-
1
votes1
answer148
viewsSelectonemenu (Primefaces) field not saved in the seat
I’ve come to ask for your help again because I need to finish my CBT. I have a dialog which has several fields, one of them is a <p:selectOneMenu>. When I fill in all fields and go save, all…
-
1
votes1
answer1662
viewsJSF error: javax.el.Propertynotwritableexception
I have an error that I can not solve and do not know the reason Follow error and my classes and view below. type Exception report messageInternal Server Error descriptionThe server encountered an…
-
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
votes1
answer266
viewsUpdate graphicImage after fileupload
I am trying to update the photo form when I send the image through the dialog via fileupload. The photo only appears after I press F5. <h:form id="form"> <h:inputHidden id="idPessoa"…
-
1
votes2
answers81
views'javax.persistence.Rollbackexception' received when invoking action listening '#{}
I inform the values on the page, but the values are not persisted in the bank. It’s like my page doesn’t send the values to the controller classes. If the values are reported however, the error is…
-
1
votes1
answer507
viewsCriteria to filter a string array list
I have a relationship n:n amid AgendaTriados and Indicacao thus forming the triados_indicacao. Saved in the database a array of string of the names of the indications. I want to do a survey using…
-
1
votes1
answer324
viewsTarget Unreachable, 'reply' returned null - Selectoneradio
I’m not getting the value of mine selectOneRadio, comes as null: <p:dataTable id="exibePerguntas" var="questao" paginator="true" rowsPerPageTemplate="2,3,5,10,12" paginatorPosition="bottom"…
-
1
votes1
answer57
viewsCan I get an image of any directory on my PC to put on my HTML page?
Can I get an image from any directory on my pc, or can I just grab images from the project directory? I am using JSF: h:graphicImage url="C:\teste\rcvp\18\04\20\16\372_180420160013_0000000_1.jpg"…
-
1
votes1
answer155
viewsHide column at editing time
I have a registration screen with some attributes, in which at the time of editing I do not want to load the password, because I just want to change the name and email, I mean, I want to hide the…
-
1
votes0
answers32
viewsrequestContext works with JBOSS-EAP -4.3 version and does not Works with JBOSS-EAP-7.2 version
We will migrate the JBOSS-EAP-4 server to the JBOSS-EAP-7, using the JBOSS-EAP-4 the implementation of the Ajaxlistener class behaves smoothly, when migrating to the JBOSS-EAP-7.2 the implementation…
-
1
votes0
answers23
viewsListing dates with primefaces
I’m listing dates using convertDateTime, the problem is this way it always presents the day before what is being read database. Without the convertDateTime it presented the correct date.…
-
1
votes2
answers416
viewsResize a child element according to the width of the parent element
I have an h:inputTextarea inside a p:dialog, so: I would like as I resize to p:dialog a h:inputTextarea resize as well, so that when I resize the dialog it doesn’t get as ugly as in the image, and…
-
1
votes1
answer483
viewsLogin with JAAS + Tomcat
I did the JAAS configuration procedures in my JSF project, when I try to access it shows the information that user and password does not check, but I have already created the user table. xml…
-
1
votes1
answer956
viewsHow to disable spring security
Good evening, I am learning jsf, so I followed some videos of Leandro Costa on youtube, I found it very didactic and etc. At the end of the course it provides the source code, however as the project…
-
1
votes1
answer317
viewsRecaptcha does not render
I’m trying to put a recap in my view, but it doesn’t render at all and the following exception appears: Warning: JSF1090: Unresolved navigation case for the component j_idt200. View <!DOCTYPE…
-
1
votes0
answers70
viewsMask Credit Card with JSF
I would like to mask on the screen the user’s credit card number for this format #######*****####. But when using this Pattern it pushes the numbers to the right and does not replace them. Does…
-
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
answers76
viewsBoolean component and rendered components do not appear on my page
You guys! Good morning! I’m having a hard time here with JSF (it has to be this technology, because it’s the one I’m currently studying at home) I’m having trouble setting boolean component values…