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
-
2
votes1
answer61
viewsSelect menu link
I’m using javascript to select the menu to open the page I selected, the menu is already being selected but is not opening the pages. And the click event is working when I click on the menu.…
-
2
votes1
answer303
viewsSet Bean dynamically according to the registration screen
I’m starting a project with JSF, but I’m still "crawling" on the Framework, and starting with Java now as well. I already work with programming, but not with Java... hehe In my project, I want to…
-
2
votes1
answer286
viewsCriteria Bringing Duplicate Hibernate Data to JSF
I am receiving duplicate data or sometimes missing data until, how can I solve? This is my DAO: public List<Produto> filtrados(Filtro filtro) { try { Criteria criteria =…
-
2
votes1
answer300
viewsInject Dao into Converter
I’m having a java.lang.Nullpointerexception error in a Converter at the moment it will access the bank, apparently the dependency is not being injected by the CDI, there are arguments that the…
-
2
votes1
answer65
viewsRegistration with Validation
currently my system has Person and Time, a person can already create a Time, defining some attributes(name and passwordTime). Now, I aim to create a "Join Team" method where someone will join an…
-
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
votes1
answer72
viewsHow to make my image appear inside the ui:repeat tag?
I have a question. I am using JSF and Primefaces to make a website for ebooks and need to display the ebooks that are stored in the database. I can register the ebook normally, but when it comes to…
-
2
votes1
answer188
viewsError deploying to glassfish server
Project not Rada on server after deploy. glassfish 4.1 Project cdi, jsf, primefaces, jpa System error: WELD-000335: Context is already active java.lang.Illegalstateexception: WELD-000335: Context is…
-
2
votes0
answers162
views -
2
votes1
answer389
viewsWorking with Javaweb Dates
Hello, I am doing a project that manages all projects of my company, I am using Hibernate, Javaweb, primefaces, TDD and MVC standard. My entity is shaped like this for date variables:…
-
2
votes1
answer216
viewsJsf 2 - Datatable does not select the line at the click and does not recognize paging
I’m using the Jsf 2 WITHOUT Primefaces and would like to know how I do to solve the following problem: My DataTable is loading the data correctly, but it does not allow me to select the line that…
-
2
votes0
answers65
viewsShow result in same tab (JSF)
Hello, I have the following situation: I have a button (search) that executes a search method and returns the data in the same tab already opened in a <p:dataTable. After generating a report on…
-
2
votes0
answers533
viewsTabview in Primefaces with Ajax
Next, I have a small problem, but I am following the same steps of the showcase of the first faces, but without success. I want you to fire an ajax every time a tab is selected, clicked. That way…
-
2
votes1
answer41
viewsHelp with Broken pipe
Guys, I have a problem in my system, it is falling too much the connection as database, this system gets to 12 hours idle, I need a help to configure C3P <!--Configuração do pool de c3p0 -->…
-
2
votes1
answer286
viewsHow to update a form with ui:repeat without duplicating oc fields in jsf?
I’m having a problem with my ui:repeat components, I want to update and not repeat the components, have as? my form: <h:body> <h:form > <h:outputLabel class="col-sm-2 col-sm-2…
-
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
votes2
answers104
viewsbootstrapValidator.js with jsf does not work
My validation script using bootstrapValidator.js <h:outputScript library="primefaces" name="jquery/jquery.js" target="head" /> <h:outputScript library="primefaces"…
-
2
votes1
answer360
viewsHow to search for ID’s in the bank and display the names on the screen?
In my JSF + Primefaces project, I have the following entities: @Entity @Table(name = "geracao") public class Geracao { @Getter @Setter @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private…
-
2
votes1
answer159
viewsLoad image after selected item
In my application the user defines a root directory. After defining the root there is the listing of files present in the directory. When the file is selected there is another directory where there…
-
2
votes0
answers545
views@Managedproperty in a Managed Bean class returning null
I am trying to inject a Managed Property in my class, but whenever I try to access it in a method annotated with @PostConstruct it returns me null thus generating an Exception. Follow down my class:…
-
2
votes1
answer507
viewsMethod does not Override or implement a method from a supertype
I’m creating a converter and it’s giving me this mistake: Method does not Override or implement a method from a supertype Converter code: package com.mycompany.conversor; import…
-
2
votes0
answers21
viewsChange Table Location Exported from Primefaces
I am developing a web system using jsf and primefaces and would like to ask a question. I’m using the dataExporter to export a dataTable in PDF.... I am using the method preProcessor to add various…
-
2
votes1
answer74
viewsComposite vs. Bean CDI - How to access bean methods
I am trying to create a component to receive the user profile picture. But for this I need to make the component access the methods within the CDI bean of the page in question. I’m doing something…
-
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
answer42
viewsCode simplification
I have the following piece of code: <p:menuButton value="#{messages['relatorio']}"> <p:menuitem value="PDF" update="painelRelatorioResumoExpedicaoDesembarque" oncomplete="gerarRelatorio();"…
-
2
votes1
answer531
viewsUpload and Donwload JSF + Primefaces + Mysql files
How to recover the file name saved as BLOB from the database and display on screen? I am using a loop, to recover, the value saved in the database column, but returns memory values ([B@2248bd40):…
-
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
answers385
viewsIs there a JSF style PHP famework?
I am a Java programmer and I use JSF in the projects of the company where I work. I am developing a personal project and I chose the PHP language even to learn a little more. The problem is that I…
-
2
votes0
answers44
viewsFile . java without class signature
I was taking a look at primefaces code, when I came across the following situation (buttontemplate.java file): import java.util.List; import java.util.Map; import org.primefaces.util.HTML; import…
-
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
answer490
viewsGenerate columns with repeat Primefaces
I’m unable to generate these columns dynamically with the p:repeat of the Primefaces. Is there no way to do this in Primefaces? Or is there no way to do it? There is a better solution? The problem…
-
2
votes1
answer323
viewsTransfer objects between methods in a bean
I am developing a web application using the bootsfaces framework in Java WEB On one of my screens I have a datatable of bootsfaces that when one of the lines is clicked, is selected by activating…
-
2
votes2
answers366
viewsProblems using Selectonemenu primefaces
I have a problem to update the data of a Selectonemenu in the primefaces, as suggested by the code below, I have a button that when clicked, brings data of a Webservice and stores in a variable of…
-
2
votes1
answer43
viewsHow to create a date search method?
I can in no way create a date search method that works. I’ve already been able to register the date and other attributes as well. I have already managed to list all attributes and also search all…
-
2
votes0
answers29
viewsAnalyze Java Application Performance
I wonder if there are applications for monitoring transactions for an application made in JSF (JBOSS Server) with SQL Server database. Application is quite slow and this may be due to…
-
2
votes2
answers248
viewsDatatable column row with more than one attribute
I have a Datatable with several columns. One of them is a column that should display more than one attribute in each row of that column, as it is part of a Manytomany relationship. This column will…
-
2
votes1
answer126
viewsJPA returning Object different from class object type
The following query returns java.lang.Classcastexception: [Ljava.lang.Object; cannot be cast to br.com.satisfacer.model.Client public List<Cliente> teste(Cliente cliente) { return…
-
2
votes1
answer193
viewsHow to reduce JSF application CPU consumption
From a while ago, my application started to have a very large CPU consumption. I installed Jprofiler, and from what I understand from him, there’s a problem with the c3p0 from Ibernate. I am using…
-
2
votes0
answers256
viewslocalhost redirected it too often
Good afternoon, I am trying to direct a system user to an error page in case something goes wrong with the session or if the user is denied access to a particular page etc... I’m using Spring…
-
2
votes1
answer43
viewsProblem with datatable Selection, and how to access a var outside of the repeat method (primeFaces)
Hello I have a screen where I list some records through the datatable (primefaces) 1) In my Bean I have two lists one that I feed with the records returned from the bank and the other that will be…
-
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
votes1
answer2032
viewsJSF Javadoc not located in Netbeans
I use Netbeans 7.2.1 and wondered why only Javadoc of Java objects (java.lang, java.io, etc) are shown. All others (javax.*) show something like this: javax. faces. context public Abstract class…
-
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
answer663
viewsJSF rendering
How do I render the components of Richfaces. I have a combobox and when I click on an item I want it to render my form according to my item. Examples please.…
-
1
votes1
answer263
viewsRun JSF on Jetty 9
I am having problems running JSF on Jetty 9. Some specific jar is required within the application or some configuration in Jetty?
-
1
votes2
answers2022
viewsSimple authentication example with level without Hibernate and spring
I would like a simple example of user authentication. I already have the table in the database, which contains the user data and level (Administrator, common user). As I have no time to mess with…
-
1
votes1
answer248
viewsFloodfill with primefaces. Catch coordinate of click on p:graphicImage
I want to make an image painting application using java. As it is for the web environment I chose primefaces as a framework for the vast documentation that exists about it. However I did not find…
-
1
votes0
answers834
viewsCustomize the Ckeditor taskbar (Java Version)
I am using the lib Ckeditor integration with JSF (ck-jsf-editor-0.9.4.jar) and is working properly, but the Toolbar that is appearing is the default and I would like to set this up. Would anyone…
-
1
votes1
answer344
viewsHow to change only checkboxes visible from a datatable?
Problem situation, suppose we have a datatable on the first faces with the following features: The first column instead of the title has a checkbox with the label all. All rows in this first column…
-
1
votes2
answers1020
viewsLock a button inside a datatable in the primefaces
I have the following problem, I own a dataTable which contains the possibility of editing the data by editing by line, using the tag rowEditor and cellEditor. Next to this I have a button to delete…