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
-
2
votes1
answer383
viewsHow to assign new Selectonemenu value to entity?
I have a table with several columns, between them I have one that is a SelectOneMenu, the table is loaded with a list of Inscricao. In the status column of the application I have a SelectOneMenu…
-
2
votes0
answers305
viewsError while logging in with Spring Security and JSF
I am trying to implement a login with Spring Security 4.0.1.RELEASE and JSF 2.2, when trying to log in it always returns as invalid login. login.xhtml <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0…
-
2
votes2
answers390
viewsUse or not use "Backing Bean"/"Manage Bean" with JSF?
On page 64 of the Algaworks e-book "Java EE 7, with JSF, Primefaces and CDI", explains the use of the backing Beans, which are managers Beans, responsible for controlling the components of the JSF…
-
2
votes2
answers278
viewsJSF2 tags does not work inside a Bootstrap tag
I created a Java Web project that is using JSF2 + Bootstrap, both CSS file and Bootstrap are correctly configured in my project, and in previous Web Java project was always responsible for the…
-
2
votes1
answer498
viewsjava.lang.Classcastexception: Converter JSF error
I am implementing the Converter below: @FacesConverter(forClass = Cargo.class) public class CargoConverter implements Converter { @Inject private CargosRepository cargoRepository; public…
-
2
votes0
answers414
viewsHow do I clear a <p:messages> from the form by Bean?
I have the following situation: 1. I have a xhtml with <p:tabView> with id="tab"; 2. In this tabview I have 3 tabs and each one with its photons and <p:messages> with their respective…
-
2
votes1
answer685
viewsClear a Bean variable from the JSF page
I have a page with some iteration loops inside my page JSF and then I’d like to know how I do to after each loop clear that attribute from the page. To be clear, I know that when rendering a page…
-
2
votes1
answer399
viewsCapture Schedule component month manipulation event
When using the component Schedule of Primefaces it is possible to manipulate the events of the buttons that change the current calendar month, the buttons marked with the circle in the image below?…
-
2
votes2
answers836
viewsJSF - How to pass a Bean function as an argument to a Javascript function?
I’d like your help. I am developing a system in JSF, and I have the following need: I would like to pass a bean function as an argument from a function of mine in JS, so that I certain future moment…
-
2
votes3
answers110
viewsJSF panelGrid does not work
The code below should show a simple screen divided between the names and input areas, but the panelGrid is not working, what’s wrong? When executing nothing appears. <!DOCTYPE html> <html…
-
2
votes1
answer193
viewsFileupload does not load the Listener into JSF 2.2
I am migrating a project to JEE7 from Primefaces 3.5 to 5.0 and I have a problem with Fileupload. Does not load the file into the JSF 2.2 Event Manager. Follow the xhtml code: <p:fileUpload…
-
2
votes1
answer218
viewsCheck if there is a file in a particular jsf rendered folder
People I am saving image in a certain project folder and I need to check if this file exists in the folder. Was using a command as below:…
-
2
votes0
answers223
viewsGet User name in jsf session
I’m having doubts about how to get the username in the session. I’m using Spring Security 4.2 I have my User Class import javax.persistence.Entity; import javax.persistence.GeneratedValue; import…
-
2
votes1
answer204
viewsLoading Lazy in Datatable of Primefaces does not bring the record data
I got a shipment lazy in DataTable of Primefaces, and in this table I upload I want to edit a record. Clicking on the line will open a dialog with a form for editing that record. But clicking on the…
java hibernate jsf-2.2 primefaces-5.2 java-ee-7asked 6 years, 1 month ago Raimundo Almeida Matos 35 -
1
votes2
answers122
viewsChanges directly in the database reflect in the bean Managed?
I’m developing a simple web application, a form. I did the DAO’s, Facades and they are working correctly (at least I think they are) but I will also need to edit some values directly in the bank…
-
1
votes1
answer274
viewsHow to make it load the full Welcome-file url
In web.xml it is mapped like this: <welcome-file-list> <welcome-file>agendamento/index.xhtml</welcome-file> </welcome-file-list> When opening the application in the browser…
-
1
votes1
answer1611
viewsHow to use Google Maps with JSF
I need to use Google Maps in a JSF application. Primefaces offers the Gmap. I also found the Gmaps4jsf. Which of the two approaches is the best, or if there are others, which one will bring me more…
-
1
votes3
answers1169
viewsHow to load the list of items from p:selectOneMenu when clicking to open the dropdown?
I would like my p:selectOneMenu to reload the items and show the options every time I click to open the dropdown, has anyone ever tried this? If so, how do I?
-
1
votes1
answer664
viewsProblem disabling button on primefaces
I am trying to realize a logic of effecting the export button excel is disabled by clicking the search button if the number of records is equal to zero. The problem is that the first time it works…
-
1
votes1
answer137
viewsWhat is the difference between these two statements?
I was reading some tutorials and documentations and came across two different ways to declare the RequestContext: RequestContext requestContext = RequestContext.getCurrentInstance();…
-
1
votes1
answer906
viewsDoubts in the use of the dataExporter
Guys, I’m using the primeFaces support to pdf the contents of a datatable. The problem is that the pdf does not bear the name of the columns, only the content. In the examples I saw in the showcase,…
-
1
votes1
answer762
viewsJSF does not find component ID
I have something like <p:panelGrid id="tabelaUm"> <h:form id="formUm" rendered="#{condicao ? true : false}"/> <p:commandButton action="#{condicao = false}" update="formUm,…
-
1
votes1
answer120
viewsHow to keep a check box true after an error message is displayed?
How can I keep a checkbox true when I display error message? Every time I display a errorMessage my checkbox turns into false. How can I solve this problem? I am using jsf2.0 and primefaces. This is…
-
1
votes1
answer665
viewsProblem using Dialog Prime Faces
Good night, I’m developing a simple CRUD using JSF, but I’m having trouble using Prime Faces functions. I want to make the insertions, changes and exclusions through Dialogs...but so far I could not…
-
1
votes1
answer145
viewsMethod not found:
When I click the save button to run the method, the following error appears in the console: Jan 15, 2015 4:12:26 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute Advertência: Method not…
-
1
votes2
answers439
viewsJAAS - request.isUserInRole always returning false
I am implementing a JAAS with only 2 types of users, one type will be an Administrator and another will be a Collaborator. Instead of creating separate directories for administrator and…
-
1
votes0
answers295
viewsError message Method not found: class Bean
This is the error message displayed; mai 25, 2015 3:40:55 PM com.sun.faces.context.SessionMap put ADVERTÊNCIA: JSF1063: AVISO! Definindo valor de atributo não serializável em HttpSession (chave:…
-
1
votes1
answer618
viewsHow to correctly export footer with Xtensions primefaces
Use JSF 2.2 and Primefaces 5.0 Using the Extensions primefaces to export, in a single excel file, three tables of a system, I’m having problems with the exported information: The table footer with…
-
1
votes0
answers220
viewsColspan and rendered do not work in Subtable
I have a Datatable with Subtable, I use Column renderings of both tables and colspan in some columns. Rendered and colspan tags in subtable do not work as expected. Look at the code: ```…
-
1
votes1
answer587
viewsJSF agenda with datatable containing data from different lists
I am making a software in JSF (2.2), primefaces and JPA with the Postgres bank. I need to make a schedule of accounts to pay with the following columns and their data: Column before yesterday with…
-
1
votes0
answers131
viewsUpload JSF Multiple Photos
I need to make a registration screen, where the user can choose up to 5 photos to save. I am using JSF 2.2 would like to know the best way to do this without using primefaces or richfaces, using a…
-
1
votes0
answers247
viewsMy application does not find my method
Take a look at the error message; jul 28, 2015 8:12:39 PM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException GRAVE: Error Rendering…
-
1
votes0
answers725
viewsCould not find Factory: javax.faces.application.Applicationfactory
This error message only appears when I close and eclipse, after opening the eclipse again it generates this error in my project when I go up the page in Tomcat, but before all this my project works…
-
1
votes2
answers578
viewsHow do I block access to an application from the user’s IP?
How do I block access to a web java application by the user’s IP. The application will be hosted outside the company environment, but need that by certain profile can be accessed from outside. I…
-
1
votes1
answer568
viewsProblem creating custom Components in JSF
I’m having problems creating custom components in JSF, it’s actually the first time. I found some guides on the internet but it hasn’t worked. Here’s what I did. I created the custom.taglib.xml…
-
1
votes1
answer654
viewsImage upload problem with more than 10mb primefaces
Guys, I’m going through a very boring and seemingly simple problem and I haven’t found a solution yet, so can someone help me? I’m using the upload of the first faces and it just doesn’t upload…
-
1
votes1
answer1345
viewsPrimeface uploadFile + graphicImage: Upload image and display without refresh
I’m starting to program on jsf + primefaces. A long time ago I worked with JSP(java 1.4) and I’m kind of lost. I’m looking to upload an image and have it displayed below. xhtml images. <?xml…
-
1
votes0
answers41
viewsUpdate on component created with Composite does not work
Staff created a component using Composite <composite:implementation> <p:dataTable id="#{cc.attrs.id}" </dataTable> </composite:implementation> But when I call it in my code it…
-
1
votes0
answers216
viewsHow to use inheritance in Managedbeans?
Considering: public abstract class Usuario { public Usuario(String login, String senha) { this.login = login; this.senha = senha; } private String login; private String senha; } public class…
-
1
votes0
answers43
viewswant to pass my java script function to the bean when loading the page
want to pass my java script function to the bean when loading the page, no need to click the button ? I am using the remote,…
-
1
votes0
answers143
viewsMask for CPF and Date using <p:Keyboard> Primafaces
I looked at several websites on this subject but found nothing to solve my problem. Come on, I have two fields one for CPF and one for Date of Birth both using the "Keyboard" component of…
-
1
votes0
answers157
viewsTestng Facescontext.getCurrentInstance() Return null
I’m running a test on Facescontext.getCurrentInstance() is returning null. Ambience: Spring 4.3 JSF 2.2 Scope view Escope view is customized for Spring This is scope class, it works public class…
-
1
votes1
answer275
viewsJSF: How to Reference Managed Beans
I’m starting to study JSF and soon came to me the question of how to reference the View (JSF) with Managed Beans. Because in the examples I see I can’t understand how JSF can see the Bean. For…
-
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
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
answers68
viewsChange method to insert image - JSF
How do I change the method to insert the image? public Produto gravarImagem(Produto produto) { Session sessao = HibernateUtil.getSessionFactory().openSession(); Produto produtos = null; try { Query…
-
1
votes0
answers120
viewsDAO Method Cannot Save Image
My bean class can already save the image in my specific directory,I know this because I did a test, but it only needs to be able to save the String that is the name of the file I do Fileupload in…
-
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
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
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…