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
answers213
viewsMethod with Fileuploadevent from Managedbean not found: javax.el.Methodnotfoundexception
This is the error presented: ADVERTÊNCIA: Method not found: [email protected]() javax.el.MethodNotFoundException: Method not found:…
-
0
votes2
answers758
viewsNullpointerexception error when using JSF EL
When I add this line of code to my XHTML page: <f:param name="pedido" value="#{pedido.id}"/> It generates this error: jun 04, 2015 10:59:42 AM…
-
0
votes2
answers2691
viewsDisplay an image that is outside the JSF project
Hello I have a screen that uploads a file and saves in a folder in a directory of the computer until and saved in the database the complete path of the image, now I want to display this image in a…
-
0
votes1
answer90
views -
0
votes2
answers986
viewsDialog some after opening
I’m using a dialog of the first faces: <h:form> <p:dialog widgetVar="dialog" modal="true" resizable="false"> <p:outputLabel value="Mensagem qualquer."/> <p:commandButton…
-
0
votes1
answer945
viewsIs URL friendly with JSF, Facelets and Bootstrap possible?
I am using in a JSF project with Facelets and Bootstrap. How to make it URL friendly? Example: After logging in the URL looks like this: example.com/public/home.xhtml When you click on a menu item…
-
0
votes0
answers92
viewsIs there a restriction of jsf 2.2.5 with the Collection interface?
I am running an application with jsf 2.2.5. I used the component h:dataTable to display an object collection on the screen. I added this two component h:commandLink, one that must execute an editing…
-
0
votes0
answers280
viewsHow to implement Upload to Frameworks Primefaces?
Greetings to you all, I was trying to implement upload in my JSF2 project, but in the act of clicking the save button appeared this message below; at…
-
0
votes2
answers3057
viewsHow to change the Jumbotron tag in the bootstrap in the google Chrome browser?
Look carefully at the image; Now take a look at the code <!-- jumbotron--> <div class="jumbotron"> <div class="container text-center"> <h1>JWB Tecnologia</h1>…
-
0
votes0
answers136
viewsHow to configure JSF in Eclipse JEE?
I’m starting my JSF studies, how can I set my environment to start with JSF in Eclipse JEE? What I need to install add-on?
-
0
votes2
answers294
viewsError in update selectOneRadio
I am trying to update the value field and percentage of the page under development. When I put in ajax the option:update=":formDlgSolicitacao:idPercentual :formDlgSolicitacao:idValor" it does not…
-
0
votes1
answer701
viewsHow to pass data between pages?
I’m trying to pass some values between pages using Managedbeans, but it’s not working: @ManagedBean @SessionScoped public class Chute { private Boolean chutar; //getters e setters... } On the first…
-
0
votes1
answer1051
viewsTarget Unreachable, Identifier resolved to null
When I try to open the page, I get: javax.el.PropertyNotFoundException: pagina.xhtml @3,54 value="#{meuManagedBean.valores}": Target Unreachable, identifier 'meuManagedBean' resolved to null…
-
0
votes1
answer630
viewsHow to start a certain tabindex tab (primefaces)?
How do I display one on a particular tab? I tried to use the tabIndex="#{meuBean.tabIndex}"setando for 0,1,2 and etc, but when opening it always positions in the first tab.
-
0
votes2
answers915
viewsdatatable primeFaces shows the number of correct records but does not show the fields
I have a problem I can’t solve if you can help me thank you. In short, it’s a prototype invoice registration with notafiscal items, I can enter the records through a dialog, the table shows that the…
-
0
votes0
answers366
viewsViewexpiredexception in view periodically updated
Good morning. I am with a periodically updated view which throws the following exception: Nov 03, 2015 11:21:49 AM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError GRAVE:…
-
0
votes1
answer859
viewsHow to render a jsf component through the bean?
I need to render a jsf component (Primefaces) through the Bean. I have a selectOneMenu that changes the type of person (physical/legal) and I need to render the field "CPF", because I use the same…
-
0
votes1
answer1315
viewsLine break in <p:confirm> Primefaces message
I am unable to implement the break line in the following code: <p:confirm icon="ui-icon-alert" header="Confirma a alteração do Status" message="Tem certeza que deseja alterar a Situação do…
-
0
votes0
answers151
viewsHow to add new columns in h:datatable in jsf without refreshing what update does in the table,
Guys, I have a problem, I created a paginated query that always brings 5 records, implemented with jquery one $(window). scroll so that whenever the scroll arrives at the bottom of the page it…
-
0
votes1
answer77
viewsMany lines in a csv file
The scenario of my doubt is the following: I have a system that reads a file that has around 3 million lines, each line has a separator, I identify each item on the line, I do the proper treatment…
-
0
votes1
answer59
viewsProblem with JSF Redirect 2
I have a CDI Session Bean which I store some information for use in the application while the user is logged in, however I need a control that when the other Beans try to use some attribute of this…
jsf-2.2asked 8 years, 1 month ago Jeremias Santos 403 -
0
votes2
answers191
viewsnull return when registering new product, but when editing I can save give no error
Hello guys I’m having jsf application problems, cdi, when new product registration give null return, but when editing makes editing normally. give error ago 28, 2016 12:52:37 AM…
-
0
votes1
answer175
viewsp:primefaces editor tabindex does not work
In a view . xhtml I use the p:editor of the first faces <p:editor id="idDescription" tabidex="2" > ... When the tab key is pressed, after being in field 1, tabindex="1", it does not go to the…
-
0
votes1
answer896
viewsProblems loading datatable Primefaces
I am using in the Java Web CDI, JPA and Maven application, my application is already entering records in the database without any problem, now what I have left is list the records in the Primefaces…
-
0
votes1
answer445
viewsWhat is the difference between actionlistener and action?
What’s the difference between actionListener and action? When using one or the other? <h:commandButton action="xxxx" actionListener="zzzz" id="teste"/>…
-
0
votes1
answer796
viewsPlug-in org.eclipse.jpt.jpa.ui was unable to load class org.eclipse.jpt.jpa.ui.internal.editors.JpaXmlEditor
Everybody, I have an error that just appeared in the eclipse Hello, does anyone know what it might be, some plugin to update? The persistence.xml file does not open and an error appears in the title…
-
0
votes1
answer42
viewsTime to update - JSF
Fala ae galera blz? Is there any native way I can update some component after a few seconds? I was able to do it natively using "p:remoteCommand"
-
0
votes1
answer889
viewsHow to Save Image in Database with JSF2
I’m with a project JSF with the model DAO using Hibernate, and I’m having a hard time understanding how to save the image in the database. I would just need to know what the method would look like…
-
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
answer453
viewsUpdate a selectOneMenu (bean method)
Well I’m trying to get a selectOneMenu to fill another selectOneMenu and update a field, but I still don’t quite understand how to do. classes: package model; import java.io.Serializable; import…
-
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
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
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
votes0
answers21
viewsHow to get server path without starting Facescontext - JOB execution?
I have a JOB in which I need to download files in order to use them. My project is Java + JSF + CDI. It happens that at the time of the execution of JOB I have no user logged in and the return of…
-
0
votes2
answers1839
viewsjava.lang.Numberformatexception: For input string: "code"
I am developing a project with JSF, primefaces, Maven and JPA with the specification of Hibernate and SGBD Postgreesql (I created the separate database script, then connected with Hibernate) and…
-
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
votes0
answers47
viewsAdminfaces - Failed to read Artifact Descriptor
Good morning, I’m starting with the Admin-Faces. By including the dependency to the project (eclipse), I’m getting the error below: org.eclipse.Aether.resolution.Artifactdescriptorexception: Failed…
-
0
votes0
answers135
views -
0
votes2
answers509
views -
0
votes0
answers89
viewsTag issues in CSS files in a JSF2 project
Greetings to all, I’d like you to look down at the image; You may notice that there is a blue top with a Horizontal menu, it is attached to this tag below in XHTML; <header> <div…
-
0
votes1
answer851
viewsHow to build a Complex Layout in JSF2?
I need to apply a type of Layout on my system in a way that looks more like desktop system, so I looked for a layout model on the site of Primefaces below;…
-
0
votes0
answers296
viewsThe implementation of Beanvalidation is not working
Greeting to all, please note the XHTML page; <ui:composition template="/WEB-INF/template/LayoutSystem.xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"…
-
0
votes0
answers468
viewsHow to save folder path to database?
Greeting to all, I created an application that is saving the records in the database, as shown in the figure; This application is succeeding in saving the title, date and description, and is…
-
0
votes1
answer137
viewsProblem with Viewscoped Requestscoped and Session
I have the following scenario: A Datatable with a button that executes a Bean method, but this Datatable is using a Lazy Loading Pagination, but according to the session annotation that I use the…
-
0
votes1
answer123
viewsProblem with JSF Timezone
This is my method in managerBean public void carregarDadosVenda(){ vendaCadastro.setHorario(new Date()); } this is my page; <p:panelGrid columns="2"> <h:outputText id="txtVendaValorTotal"…
-
0
votes1
answer136
viewsDoes an http request on a JSP page open a session?
I have a web application that contains some JSP pages that return a JSON. This application has a large access flow, and I noticed that there are many open sessions in the Glassfish server monitoring…
-
0
votes1
answer369
viewsTomcat 500 Error: java.lang.Unsupportedoperationexception
Web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee"…
-
0
votes2
answers4152
viewsHow to get selectOneMenu primefaces value?
good evening. I’ve been having a little problem for 3 days, I’m not able to get the value of selectOneMenu related to the product, example: I have three product categories: Tapiocas, Snacks and…
-
0
votes0
answers642
viewsRequesting help in converting to selectOneMenu JSF
Look at the figure; When clicking save it generates this error message on screen, which indicates that it was not possible to use a null converter, saying that there is no null conversion to the…
-
0
votes2
answers563
viewsGives success message that saved, not error message, but in the database is not saved - jsf
My code is giving message of success in saving the record, but in reality it is not saving, I have already checked in the database, is not generating error message, and presents the code all right,…