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
answer89
viewsJSF editable datatable shows no object attributes
I need to do an activity with a JSF list where it is possible to add, edit and delete registered users. I had managed to make the records of new people, but when I started using cellEdit to make the…
-
0
votes1
answer76
viewsError of references to upload Tompcat application by Eclipse
Good afternoon, you guys! Here’s the thing: I’m with a JSF application that if I build it from Maven (Maven install) and get the . War generated and der deploy on it by Tomcat, runs normally.…
-
0
votes1
answer131
viewsHow to take the value of a variable that is pointing to a list
Hello, I need some help with this code. I think it’s relatively simple for those who already have more experience. I’m trying to get the value of a variable, but when debugging, I see the address…
-
0
votes1
answer33
viewsJSF <p:command button> action is not invoked for download
Good morning guys, I need to open a dialog for report, and in p:inputtext I need to validate if there is such a client , if there is no client list open by another dialog and select which…
-
0
votes1
answer153
viewsJquery and JSF - format masks for text fields
Good evening, I’m doing a college job and I’m wearing shades for decimal fields in my text field, where I have to validate with an accuracy of 4 houses too much at most, I put a mask with the…
-
0
votes1
answer59
viewsPause a for to execute a request
I am mounting a questionnaire where each question should appear one at a time on the screen for the user and, as soon as the user answers it, he should proceed to the next question. For this I am…
-
0
votes1
answer30
viewsFire loading when Calendar is filled
I have a calendar that when I have both dates filled in, I need to trigger the loading/loading and also update the status field with (*). The problem that I can’t load in Calendar follows code…
-
0
votes1
answer266
viewsFirst faces problem when converting an Enum
I’m having trouble converting an I made a class to convert only at the time of subtemer the form happens the following error: javax.faces.FacesException: java.lang.IllegalArgumentException: No enum…
-
0
votes0
answers17
viewsUse Datatable with Lazy within several p:tab
I’ve been looking at some places like making a datatable with Lazy, so I can only upload the page data in display and not overload the server. But all the examples used only one table. I have a…
-
0
votes0
answers47
viewsCreate a Java ID search with Mysql
Hello, I am creating a simple sales system. I am developing a DAO class to work with the products. I did the methods of the bank, but when I go to the methods of listing, a following question…
-
0
votes0
answers9
viewsProblem with xhtml, using the appendTo="@(body)" property and saving, does not update my object data in the bean
header="Atualizar Contatos" dynamic="true" modal="true" closable="false" appendTo="@(body)"> <p:panel id="pnlAtualizarTelefones" class="panel-simples"> <c:linha> <c:coluna…
-
0
votes0
answers5
viewsUncaught Referenceerror when trying to open a dialog of the first faces
I am having problems trying to open a dialog, in the browser console is returned the following error: Uncaught ReferenceError: baixarArquivoRemessa is not defined at <anonymous>:1:1 at p…
-
0
votes0
answers5
viewsWelcome file list does not work
Hello, before posting here I searched in several forums and could not find a solution. I have a Maven project, jsf 2.3, it works, but when starting Tomcat I would like to welcome page, but it does…
-
0
votes0
answers30
viewsHow to Grab Primary Key and Insert Foreign Key from another JSF Table via Selectonemenu
I’m doing a test project, and I’ve reached a point where I can’t pass a PK of one entity to be a Fk in another, I’m getting this PK ID via selectOneMenu but I try to send the value will not, always…
-
0
votes0
answers12
viewsHow to make partial submission through a dialog called in the datatable?
Hello, I have a datatable of the first faces that shows registered patients. In this datatable, I have a button that leads to a screen to inform the patient’s blood type (blood type and RH factor…
-
0
votes0
answers9
viewsError while starting Tomcat
I am using the Adminlte project in the eclipse, having TOMCAT 10 as a server, and I am some time with error starting, I tried several dependencies but without success, someone who broke the head tbm…
-
-1
votes1
answer148
viewsI’m having trouble saving the contents of a docx in pdf
I have a Rest method that takes a Word document, replaces the placeholders and converts it to PDF and saves it to a directory. But I have a Nullpointerexception I couldn’t solve, someone can help?…
-
-1
votes2
answers112
viewsHelp in Nullpointer Exception
Before the data goes to the bank I’m with a nullpointer that already debugged and I can’t find where the problem is. Down with my classes: package br.com.pokemax.controle; import…
-
-1
votes1
answer89
viewsHow to create a list with Months to change the Datatable result?
I have a dataTable that brings the data of a specific month set in DAO. I would like to create a field where I select the month and it updates the table with the selected month. You have to use…
-
-1
votes1
answer375
viewsdoubt block page transition via URL
I have a question I would like to know how to block any kind of transition of pages via URL regardless of whether the user is logged in or not, for example if I am on the home page.xhtml can only go…
-
-1
votes1
answer3136
viewsAn error occurred while performing resource injection on the managed bean paisControler
Trying to start a system page shows this error. I’ll put the codes: DAO package br.com.netsoft.desif.dao.endereco; import java.io.Serializable; import java.util.List; import…
-
-1
votes1
answer47
viewsJava arithmetic operations with database data
What is the best way to calculate values in java? I need to make a method that returns the sum of all inputs and output and subtraction. Example: Insert all Double entries in column X, and all…
-
-1
votes2
answers1469
viewsTarget Unreachable error, Identifier 'Clientebean' resolved to null
System with error: Error message: Caused by: javax.el.Propertynotfoundexception: /index.xhtml @22,72 value="#{Clientebean.cliente.name}": Target Unreachable, Identifier 'Clientebean' resolved to…
-
-1
votes1
answer283
viewsAn error occurred while performing resource injection on the state managed bean
When I try to run java, this error occurs. I’ll send the code. MODEL: package com.pi.drogaria.model; import javax.persistence.Column; import javax.persistence.Entity; @SuppressWarnings("serial")…
-
-1
votes1
answer19
viewsInputtex with 2 Managedbean
Good morning, everyone How can I pass the contents of an inputText to 2 Managedbeans? Example <p:inputText id=“usuario” value="#{usuarioBeanCelular.usuarioCelular}" /> <p:inputText…
-
-1
votes1
answer114
viewsJava Web Project
To program Java Web, you need to use the Javaserver Faces extension or I can only use HTML pages with Servlet? And what’s the difference of using without JSF?
-
-1
votes1
answer144
viewsAdd action and onClick to a commandButton
Good afternoon, I am building a javaWeb system, I wonder if I can add an Action and an onClick in a commandButton? h:commandButton value="Reservar" action="#{aluguelController.reservarEtios}"…
-
-1
votes1
answer40
viewsView Datatable only if there is registration
I have several datatables in a panel, each one displays a value of an object and a button, and as the data is received, some are filled and others are not, the problem is that those who have no…
-
-1
votes1
answer161
viewsEvent change with ajax
I need a field, when a value x is set, to render two other fields. With my current method, I can only render a single field. How do I select one? <h:selectOneMenu id="regional"…
-
-1
votes1
answer199
viewsError using outputPanel with autoupdate=true in primefaces
I have a custom component where I use the Carousel. When I click on an item from Carousel I update my managebean and need the screen to be updated. I use the outputpanel with autoupdate=true, but…
-
-1
votes1
answer278
viewsHow to access a Managedbean through an external js file?
How do I access a Managed bean jsf through an external javascript file? I am trying to access it as follows: $("#botaoCadastroMaterial").click(function(){ '#{cadastroMaterialController.salvar()}';…
-
-1
votes1
answer51
viewsPage does not list items
For some reason the XHTML page does not list the items from #{nomesMB.nomes}. Codes: XHTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"…
-
-1
votes1
answer301
viewsHow to disable a commandButton in Primefaces according to the return of a Boolean method implemented in the bean?
I have a button to delete a file that I just want to appear to the user if my class has records. Just follow his code: <p:commandButton icon="ui-icon-trash" value="Excluir"…
-
-1
votes2
answers250
views"algaworks" - Bigdecimal - Sum of values
I am trying to add the values added in the column "Value", IE, to each entry of a recipe the total field below needs to update doing the sum of the values in the column value, however I am with the…
-
-1
votes1
answer75
viewsHelp with JSF Login System
I am creating a jsf login system, which I validate the data through a bean and if(has record) redirects to the home page, Lse goes to the error page, but always enters Else, I found that the object…
-
-1
votes1
answer21
viewsProblems opening a Select One Menu within a p:dialog
I own a select one menu within a p:dialog, I can see that it loads the data, but it doesn’t open, doesn’t drop down, outside the p:dialog it works normally. I searched on but found no results. My…
-
-1
votes1
answer37
viewsError when selecting data saved in BD via a <p:Selectonemenu>
I’m having trouble loading a user’s data into the form. Man selectOneMenu is loaded(correctly) with a list of guys however the TYPE object entered in the User record is not being selected during…
-
-1
votes1
answer32
viewsError calling save method using JSF Hibernate JPA An established connection has been overridden by the software on the host computer
I am trying to save the data from my form but when I click save of error saying that "An established connection was annulled by the software on the computer". But when I test the save method using…
-
-1
votes1
answer20
viewsHow to update a button inside a <ui:repeat>?
Let’s get to my problem. I have two <p:commandLink> inside a <ui:repeat>. These buttons simulate checkbox. Then I would like to click on them to update the specific line within the…
-
-1
votes1
answer19
viewsPage does not return Managedbean
I’ve seen several similar posts, but it didn’t help much. My problem is very simple. I have a form page that will record data and display in a table using Managedbean. But when I click to write, the…
-
-1
votes2
answers42
viewsProblem searching for BD - JSF specific columns
When I return all the values of the bank, it works. However, I look only at the columns id, celular, cpf, nome, status to list in the table, returns error. Would be the type of return that is wrong?…
-
-1
votes1
answer22
viewsJavascript Does not execute . click correctly with JSF
The script works partially, it updates the page after 5 sec., however it does not perform the click on the button: <script> $(document).ready(function() { setInterval(function() {…
-
-2
votes1
answer187
viewsSortby in JSF, brief explanation of what he does?
Could someone give an explanation as to the function of sortBy in the JSF?
-
-2
votes1
answer114
viewsWhat are the reasons for migrating an application to a newer technology
I wonder what you think about that? What are the benefits? Thank you.
-
-2
votes1
answer253
views"JSF - HTTP Status 404 - Not Found" what can it be, even doing the suggested steps?
I’ve been programming for 32 years, but beginner in Java, so whoever votes negative, gentileza comenta o motivo... What may be obvious to you may be unattainable to others. I started a web project…
-
-2
votes1
answer154
viewsChart primefaces does not take Selectonemenu variable
I am trying to pass a Selectonemenu variable to a Chart of the first faces and I believe the program updates the Chart before passing the variable. <p:outputLabel for="listagem"…
-
-2
votes1
answer58
viewsError javax.el.Propertynotfoundexception: Array index out of range: 0 Java JSF intersection exercise
I’m new to programming and new to the Forum. I have a college exercise that I’m not able to do, I need to create a screen called Intersection, which takes 2 intervals and returns a message on screen…
-
-2
votes1
answer73
viewsQuestions with JSF
Well, I am not long in Java WEB and I have some doubts in Javaserv Faces, and I would like to understand, to be able to manipulate well, etc. So if anyone can ask my questions, I would be grateful.…
-
-3
votes1
answer36
viewsMy button does not work when I put f:validateRegex
Without f:validateRegex the button works normally, but after you put f:validateRegex to validate the input data, it doesn’t work anymore, someone can help? Follow the code attached, I can’t format…
-
-3
votes1
answer216
viewsSend data to the server with javascript and then retrieve it
People I am with following problem, I need to send the data of a page to the server and after being able to recover this data, I was seeing an option to send this data of the page with an event…