Most voted "jsf-2.2" questions
Javaserver Faces (JSF) is a Model-View-Presenter framework commonly used to create web applications. Always report: What technology you are using, JSP or Facelets; Error messages displayed; Minimum copy of code that can be executed. Use this tag for the specific version 2.2
Learn more…248 questions
Sort by count of
-
0
votes0
answers29
viewsonly a commandbuttom works
<ui:define name="titulo da pagina">Cadastro De Bairro</ui:define> <ui:define name="miolo"> <div class="conteudo_do_modulo"> <h:form id="Salvar" acceptcharset="ISO-8859-1"…
-
0
votes2
answers493
viewsWhy is my Bean not getting the form Ubmit?
Why my Bean is not recognizing the attribute of a simple selectOneMenu: I created in my Bean the attribute private Long areaprevencaoId. This attribute is associated with a <p:selectOneMenu>…
-
0
votes1
answer111
viewsTo interrupt and return to xhtml error to display in <p:messages>
I have a processing of a <p:dialog> within this dialog I have a <p:messages>. <p:messages id="msg-dialog" showDetail="true" autoUpdate="true" closable="true" /> The messages of…
-
0
votes1
answer191
viewsHow to run a <p:confirm> through the bean?
My question is: How can I execute one <p:confirm> through the Bean? I will explain the problem better. During the insertion of a record I need to check if it already exists in the list in…
-
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
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
votes1
answer688
viewsNavigation to pages in subfolders in JSF 2 does not work
I have the following problem: I have a hierarchy of folders where I separate my web pages from the project: Web |- Acoes | |- usuariosAcoes.xhtml | |- cadastrarAcao.xhtml |- usuarios | |-…
-
0
votes1
answer303
viewsPerformance when generating a JSF table
I’m having a question of how to improve perfomance when generating a table on a page using components JSF and Primefaces. I am generating a table, after making an SQL query and mapping the object…
-
0
votes0
answers356
viewsJSF - Custom validator executed, no problems found, but execution flow does not arrive in Managed Bean
I created a Custom Validator, referenced it in a <h:inputText>, Validator runs, no exception is raised, but the execution flow does not arrive in Managed Bean. Where I must be going wrong?…
-
0
votes1
answer202
viewsWhy does the primefaces dataScroller stop fetching records?
My xhtml is like this: <p:dataScroller ajax="true" id="listaDiarios" chunkSize="3" lazy="true" value="#{managedBeanUsuario.lazyRegistrosDiarios}"…
-
0
votes1
answer401
viewsJSF 2.1 confirmDialog problems
I was able to implement the deletion of record on a JSF page, but when deleting the record it doesn’t ask for the confirmation screen, I can’t understand, because it’s not working, but the line of…
-
0
votes1
answer219
viewsInsert arrow in Submit input for when jsf render appears on button
I made a whole layout in HTML5 and I have a "next" button where I have an arrow in it, but the developers are doing it in JSF and by rendering the commandButton becomes a input type submit and the…
-
0
votes0
answers392
viewsUse of the p:tabview component of Primefaces
I’m using the p:tabview component of Primefaces: <p:tabView dynamic="true" id="tab_view"> <c:forEach items="#{tabbedView.listOfTabs}" var="listOfTabs"> <p:tab…
-
0
votes1
answer54
viewserror file facesProduces
is making a mistake Caused by: org.jboss.Weld.exceptions.Deploymentexception: WELD-001409: Ambiguous dependencies for type Httpservletrequest with Qualifiers @Default at Injection point…
-
0
votes2
answers3959
viewsProblems with UTF8 in postgres
I have a JSF project with JPA, Postgres 9 bank The information with lighting is being recorded with accent problems. Ex: ã records as At£ Shark records as Tubara The Bank is with: Ecoding = UTF8…
-
0
votes0
answers553
viewsPrimefaces - Requestcontext Update
Hello, When loading the page the method iniciarTeste() will be called as follows: <f:metadata> <f:viewAction action="#{testeController.iniciarTeste()}" /> </f:metadata> On the same…
-
0
votes1
answer203
viewsNetbeans Does Not Recognize File . Java
I am having trouble calling report JSF application. Do not search for data in Netbeans 8.1 does not recognize Jaspersoft generated file. I cannot find plugin for this version. Request reports…
-
0
votes1
answer186
viewsHttpsessionlistener a single session per user
How can I make only one http session is open per user on the system. Main technologies in the project: Spring 4 JSF 2.2 Hibernate 5 Example: The user Juca, works on your computer using 3 browser.…
-
0
votes0
answers397
viewsChat in Spring JSF and Primefaces
I need to develop a chat for our website. Developed in: JSF 2.2 Srping 4.2 Hibernate 5 Primefaces 5.3 Css bootstrap I already downloaded a project from github, it works cool but is very poor, wanted…
-
0
votes1
answer82
viewsI’m not getting a postBack on my project
I’m trying to do a postBack on my project only I’m not getting it. When I submit the form it continues to select without precision. That is, it was in the same way public class FacesUtil { /** *…
-
0
votes1
answer44
viewsI do 2 dates check plus is persisting
I have a form, and before saving I want you to make a check that in case would be two dates. Only when a check is made it launches a Message until then OK. More ends up appearing another referent…
-
0
votes0
answers64
viewsProblem with JSF & JPA Lists
I don’t know if it’s right the way I’m doing it, but I got a problem: java.lang.Illegalargumentexception: id to load is required for loading. When I try to remove a template from the list, and also…
-
0
votes0
answers29
viewsJSF web redirect on mobile is not working!
I am developing a student project with JSF 2.2, Primefaces 5.0 and wildfly 8, and came across the following problem: My Application works normally when I access from a desktop device, but when I try…
-
0
votes0
answers298
viewsProblems with charset="utf-8"
I have a die with light recorded on the bank postgres with UTF-8 example: Joseph When I recover the page comes correctly, but when I give the Submit changes to : Josã. My JSF header looks like this:…
-
0
votes1
answer316
views -
0
votes1
answer292
viewsEditing a record with Daialog primefaces framework
I’m a beginner in the java and java web world, starting with jsf, primefaces and I’m having a problem that I’m not able to solve. I have a datatable listing some data, I have the ajax event to…
-
0
votes0
answers526
viewsTomcat is configured by Eclipse to climb on port 8085 but only opens on 8080
Guys, when setting up Tomcat in the eclipse he gave the error saying that the default ports (8005,8080,8009) were busy, I changed the ports and ran the program, only in Google Chrome when I put…
-
0
votes0
answers19
viewsMake Global selection in the App
I wanted to know how to make the selection of the global year in the application and work with the data only with the selected year. Do I have to make Managedbean Applicationscope? How do I navigate…
-
0
votes0
answers62
viewsSelectonemenu does not back the description of the object in editing
I’m performing a registration that has a relationship with another, I’m using Selectonemenu to bring it, when performing a new works all correctly, but in editing it is not bringing the object of…
-
0
votes1
answer37
viewsThe "javax.faces.source" parameter does not appear when I use the update="#{principalControl.updateAlterarGeneric}" tag in a p:commandButton
I’m using PhaseListener to validate user permission. And when I use the Update tag with biding I cannot view the parameter javax.faces.source in the request. HTML that works: <p:commandButton…
-
0
votes1
answer162
viewsObject comes pro bean with all blank JSF fields
I have a list of Predio objects that is being iterated in my xthml Then, for each iteration, I create a panel and in each panel I display the name of each of the predicates in the list and a button…
-
0
votes1
answer270
viewsUpload JSF File with ajax
I’m trying to upload any file by the element h:inputfile jsf itself, and, I try to do this with ajax, but when I try to upload this error appears in the browser console... Uncaught TypeError: Cannot…
-
0
votes0
answers642
viewsHow to fix in my code: Null Pointer Exception
my database has those responsible with values of "Supervisor" and "Manager". However, I do a search to get the Employees responsible and no return. See my getResponsaveis method in my class "Maid.":…
-
0
votes1
answer34
viewsHow do I make a for in a list and change results using javaEE
I have an object called (Bank) that has several accounts, with balance in these accounts I make payments of various expenses. what I want is to get all the expenses paid and to give low in the bank…
-
0
votes0
answers44
views -
0
votes1
answer90
viewsHow to list all Jsonarray data using JSF?
I’m having trouble listing all the data from JsonArray in a JSF, always remains only the last value, already when I use System.out.println(variavel) I can list everything without problems. Page JSF…
-
0
votes0
answers20
viewsWhen I update a non-jsf component ( normal html ) the element disappears from the rendering and loses its contents
I’m using an element <span> that is using a javascript library on it. Remember that JSF features only work on your elements When I run an "update = id_component" (this id_component is a…
-
0
votes1
answer105
viewsImage in the Primefaces menubar
Hello, I have a problem that is not able to put an icon to the left of the menubar and the menu items to the right, someone can help me? <h:body> <h:form> <p:menubar> <f:facet…
-
0
votes1
answer103
viewsPrimefaces 6.2 onCellEdit - getNewValue() nn is receiving the new value
I’m doing a project with Primefaces and on a screen I use a Datatable with cellEdit and I followed the example of the right showcase and tals however the getNewValue and the getOldValue are coming…
-
0
votes1
answer137
viewsHow to disable button and enable only after selecting combos
I have a button (Transfer) and I would like when the user enters the screen it is disabled and only after the selection of combos (Combo1 and Combo2) the button is enabled. I’m working with JSF.…
-
0
votes1
answer156
viewsUpload the image into the context of the java jsf project
I have a project in JSF put. One of the parts is to add the image to the product by making the upload of the image. That’s why I’m using the primefaces p:fileUpload, it works, but the image is…
-
0
votes0
answers10
viewsError in passing parameter Confirm Dialog Primefaces
I am using version 7 of the first faces with JSF 2.2 By clicking the delete button the parameter is not passed correctly. <p:column headerText="Ação"> <p:commandButton icon="fa fa-fw…
-
-1
votes1
answer434
viewsMy application does not recognize my Bean
Take a good look at the figure; look at my Bean class package br.com.terezinha.adm.controller; import java.io.Serializable; import javax.faces.bean.ViewScoped; import javax.inject.Named; import…
-
-1
votes1
answer111
viewsJSF Post with Spring Boot - Viewexpiredexception
When I try to submit a form I get the following error: javax.faces.application.Viewexpiredexception: /Patient-form.jsf - No saved view state could be found for the view Identifier: /Patient-form.jsf…
-
-1
votes1
answer664
viewsorg postgresql util Psqlexception ERROR syntax error at or near auto_increment in a JSF project
I wonder what that problem might be? 2018-04-30 14:50:08,218 [http-nio-8080-exec-8] WARN org.hibernate.ejb.HibernatePersistence - HHH015016: Encountered a deprecated…
-
-1
votes1
answer1318
viewsConnection is not Associated with a Managed
One of our systems is showing the error below: Connection is not associated with a managed connection.org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6@437f90c8 This mistake has happened a lot,…
-
-1
votes1
answer231
viewsProblem with JSF2 + CDI + Tomcat
Personal talk, I’m working with JSF and I’m here. I have a simple project for now, with a page with a form that has an Enum attribute in it, IE, when the page is loaded has a selectItems there that…
-
-2
votes1
answer72
viewsIs it possible to return a value using Remotecommand?
I wonder if in the same way it is possible to pass parameters to a function of a "remoteCommand" if it is possible to receive the return? Just like the example: Xhtml:<p:remoteCommand…