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
-
3
votes1
answer299
viewsdoubts about Regex using Primefaces
I own a input, where when a name is entered in the field, ex.: João Da Silva, he of the error of Regex. In case this field should allow uppercase and lowercase letters. Now when I put space it does…
-
3
votes1
answer2243
viewsFamous error: Conversion error when setting the value XXX to 'null Converter'
Good afternoon. I’m having the famous error "Conversion error when setting the value XXX to 'null Converter'." I’ve seen several topics here and in other forums, Showcase of the first faces and I…
-
3
votes0
answers4730
viewsAngularjs or JSF which to choose?
People the development team of the company where I work is deciding which technology to use for a web project that is to come. Some points were analyzed and we were in doubt between these two…
-
3
votes1
answer1030
viewsHow to load picture graphicImage primefaces into different component
My idea at first is this: I have a component p:dialog header="Foto Funcionário" widgetVar="dlg" resizable="false", where I capture my image and crop, as soon as this image is cropped, I would like…
-
3
votes1
answer267
viewsJSF page displaying Object reference value
good night. I have a JSF page called simulated.xhtml on which implement a filter to generate the simulated and I’m also trying to display results from the database that have already been filtered on…
-
3
votes1
answer339
viewsShow data in a Datatable + JSF + Primefaces + CDI + Managedbean
Talk to me, people! I’m having a problem to popular a Datatable, I’m using Jsf, CDI. I believe that the name of teacher is coming normal because he is an object and the pupil is a List, But I don’t…
-
3
votes2
answers1060
viewsPrevent browser autocomplete
There is how to prevent, through code, the browser to make suggestions to fill in the login form? It is that the system will be used in laboratories and it would be boring the browser to suggest all…
-
3
votes0
answers107
viewsSubreport is not printed
I have a report and I need to use subreports, I can generate the report, but the subreports are being printed blank, as if they had no data XML of the Report <?xml version="1.0"…
-
3
votes1
answer93
viewsNullpointerexception when saving an object
I have a save methodRegister and in this method I save the company and its address, it saves the company first, but when saving its address occurs a Nullpointerexception Entity Address Person…
-
3
votes3
answers3645
views -
3
votes1
answer1763
viewsUpdate a component that is in another form
Hello! Guys, I made a dialog that inserts fields into a list. This list fills in the values of a selectOneMenu, which is in another form: <h:form id="idFormDadosTeatro"> <p:panel…
-
3
votes1
answer573
viewsError generating report with Jasper Reports
I’m trying to generate a report with Jasper Reports + JSF and I’m having the following exception: net.sf.jasperreports.engine.Jrexception: Invalid page index range : 0 - -1 of 0 at…
-
3
votes1
answer164
viewsManytomany mapping. Bean problem
After doing the Manytomany relationship between tables I don’t know how to save on my bean. I have a class schedule that has one or more lawyers taken care of this term. The lawyer can also be…
-
3
votes1
answer893
viewsHow to popular a p:datatable with a List<> that contains two List<> attributes inside?
I spent all day today trying to do something that’s supposed to be simple but I couldn’t. The thing is, I’m wearing the primefaces and I’m new to it yet and I need some popular way of my…
-
3
votes1
answer337
viewsHow to Call Values from Another Class
I am creating a vehicle control, and in it I have a register of Fuel that has description and value, and another record of Supplies. My supply record has a autoComplete of Fuel. The problem starts…
-
3
votes1
answer248
viewsHyperlink login with user and password in email with JSF and Spring Secutity
I have a system in JSF(with primefaces) with spring security. When the user registers it receives an e-mail with user and password. Okay - It works. However I would like to send in the body of the…
-
3
votes2
answers185
viewsRelation between bean and view
I have three views that show the same table with a sequence of leds and information, I have a class service that makes the business logic to know which led and which color to show, in my bean…
-
3
votes0
answers103
viewsScheduled cron message sends three times
Hi! I have a routine on a JSF+Spring 3.0.5 system that sends an email containing 4 attachments in pdfs on every 11th day at 07:01 AM to 11 addresses. My problem is that when the application is in…
-
3
votes2
answers503
viewsDeleting data from a MYSQL table with Java
I’m trying to delete data from a table with Java but for some reason the code is not working. Excerpt from the code below: public void excluir(ModeloObjeto modelo) throws Exception{ Connection…
-
3
votes2
answers64
viewsUnable to find Primefaces component
I have the following problem: I want to create a login screen and password. I’m using the primefaces to pick up the components, but I’m not getting the field to fill in the password. Analyzing with…
-
3
votes1
answer1363
viewsUpdate JSF component via Bean
Inside my code I have two variables called displayMessage and displayImage that are two Strings, as the method is running, the messages are being updated. In my Managedbean messages are updated, but…
-
2
votes1
answer216
viewsClear Target on JSF+JPA+Richfaces projects
How can I clear the Targets generated from the project when we deploy for Jboss?
-
2
votes1
answer88
viewsOpenlayers | Cloudpopup
I’m trying to do a popup using Openlayers (more specifically using Ol4jsf) but the add to popup use the direct jscript, and the popup gets out all the time. What’s the reason? Code used:…
-
2
votes1
answer2169
viewsHow to know the execution order of the JSF component methods
How do I find out which order to execute methods in jsf? My doubt is based on the following, once a button was firing late a method, as it had not chosen correctly the method of the button. In this…
-
2
votes2
answers1021
viewsProcessing of Session Objects
I’m working with legacy systems in JSF 1.2 and noticed that developers make absurd use of Session to store all kinds of objects, ranging from user-informed filters to collections. As you can…
-
2
votes1
answer317
views -
2
votes1
answer1090
viewsHow to run a Bean method by clicking the rich:Editor’s Save button using Richfaces4?
Hello, I am using Richfaces4 and in my project includes the tag This one features a Save button (Disket) and my intention is to call a method in my Bean and run my code to save. I don’t want to add…
-
2
votes2
answers3143
viewsHow to load a jQuery function when loading a page that uses JSF and Primefaces
I am using a function to check if all checkbox are marked to load a registered already filled. So I wanted to know how to call the function. function selectAllCheckbox() { var booleanArray = new…
-
2
votes1
answer85
viewsTrack SQL output in Java
My java application for web gives several times the error of SQL Syntax, but only indicates a snippet of the SQL script that gives error. Is there any way I can see the full script that was "played"…
-
2
votes2
answers869
viewsValidation with JSF
I want to perform the validation of the form displayed in the image in a different way than the framework requires. The validation would be something like an alert, IE, the user would be informed…
-
2
votes1
answer128
viewsJavaweb with xhtml
How can I make a menu to enter the date of birth to register a new registration? My code is like this: <!-- Nome --> <h:outputText value="Nome" /> <h:inputText…
jsfasked 10 years, 6 months ago Júnior Nascimento 679 -
2
votes2
answers1726
viewsexclusion of a database object with jpa 2 and jsf 2
Well I’m trying to do a jpa deletion using jsf but I’m not succeeding. have my table. <p:dataTable value="#{mbProduto.produtos}" var="produtos" paginator="true" rows="10"…
-
2
votes1
answer1016
viewsJSF datatable how to fill columns with List<List<Integer>?
I have the following situation. A vector that will store the values that will be registered in the bean public class PainelControleExtratoVO { public Integer[] demandaEmAberto; public Integer[]…
-
2
votes2
answers1136
viewsHow to read a user-submitted file using Fileinputstream?
I would like the user to send a file . xls to the system and from this would be created a database. The method I have is working, but the parameter that Fileinputstream receives is a String…
-
2
votes4
answers2527
viewsHow to take the edge of a primefaces datagrid?
How do I take the edge of a primefaces datagrid??? follows the part of the code I use the datagrid: <p:dataGrid columns="3" value="#{projetistaBean.listaDeProjetistas}" var="projetista"…
-
2
votes2
answers1647
viewsPrimefaces + Bootstrap Admin LTE Conflict jQuery
I have been working with Primefaces since version 2.1 and am currently creating a project in version 5 using Adminlte (http://almsaeedstudio.com/AdminLTE/) which is an administrative panel using the…
-
2
votes1
answer5323
viewsError "Transaction is required to perform this Operation" when inserting, editing, or deleting - Wildfly
So, guys, I’ve been racking my brain about this mistake for a while and I can’t figure out how to fix... The situation is this, I had this project running on Tomcat and now it was necessary to…
-
2
votes2
answers1113
viewsTooltip or Hint in rowEditor in Primefaces
I have a problem, I wanted to add a tooltip or hint by hovering the mouse over the edit, confirm and cancel icon roweditorand celleditor of Primefaces. I’ve researched and tried using css but it…
-
2
votes1
answer512
viewsHow to correctly sort a JSF <ui:repeat> tag
I have a code put in the view view it’s coming out disfigured. <ui:define name="conteudo"> <h:form id="content"> <ui:repeat value="#{mbProduto.resultado}" var="prod"> <div…
-
2
votes2
answers6415
viewsHow to pass object to another view in JSF?
What better way to pass an object to another view in JSF? I have two pages a query and another with the data to edit a particular object, the query page has a list of objects and each object has the…
-
2
votes1
answer725
viewsProblems with selectOneMenu
I have a table and in this table I have the option to edit. Clicking on the edit option opens the dialog and all fields (columns) of the current row I want to edit are filled in. A list is loaded on…
-
2
votes1
answer536
viewsFind out which Primefaces component performed an action using jQuery function
I want to make a refactoring in my code, and for that I need to get the id of a component that suffered an action. My target would be that I have two datatables, and wanted to take the id and from…
-
2
votes1
answer177
viewsError while deploying to Openshift using my git
Hello. I’m having a very strange problem with my application in openshift. I created in Openshift a Jboss application and added Jenkins. From there I changed the source code source to my git…
-
2
votes1
answer982
viewsHow to change page after inserting object in database?
I created a JSF page with a client form, after saving client by pressing the sign up button. The object persisted in the BD, and consequently I would like you to change pages going to the…
-
2
votes1
answer111
views -
2
votes1
answer1965
viewsUpdate form dialog without closing it
How can I update my form dialog without closing the same? In other words, I need to search the address by the zip code, and throw it in the form, but I’m not getting it. Follow the code I’m using.:…
-
2
votes0
answers503
viewsProblem with browsing between pages with Outcome
I have a JSF application where there is a template within WEB-INF and the other pages in the Webcontent root. In the Template there are several links pointing each to its entity and in this…
jsfasked 9 years, 11 months ago Alexsandro Lopes 31 -
2
votes1
answer475
viewsFormatting problems with <p:Columns>
I’m having trouble formatting a datatable with a fixed column and x variable columns. POJO @Entity @Table(name="avaliaprojeto", schema="somore") public class AvaliaProjeto implements Serializable,…
-
2
votes1
answer1383
viewsLoad values from an already saved Selectitem into a database on the screen
I have a problem to load the selected value in <f:selectItem> by the user When render gets that way: <option value="320">Coordenador Desenvolvimento</option> I wanted the attribute…
-
2
votes1
answer164
viewsManipulating two lists of a Drag and Drop component in different Managedbeans
I am using the Datatable Drag And Drop component. Contextualizing is as follows: I got a rap sheet based on footsteps. Where in the first step I enter the information of an Edict X, what is…