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
-
19
votes2
answers982
viewsSelectonemenu is not loaded when selecting object for editing
I have a component SelectOneMenu (Primefaces) of cities, which is loaded according to the selected state. My component is with following behavior, right after saving the object and then selecting it…
-
16
votes1
answer9352
viewsDifferences between JSF and JSP
Web programming a little while ago (4 months) and went straight to JSF, I mean I didn’t study anything about JSP. I started taking a course and my teacher kind of belittles JSF saying that it has…
-
15
votes3
answers1353
viewsArchitecture for a JSF Application with Android APP
I am in the planning part of a web application that I will develop for a Client. It will be Cruds and some report, nothing too complicated. At the moment I’m designing an architecture so that this…
-
14
votes2
answers1611
viewsHow to obtain form data via "POST"?
Is there any way to receive data from an external form using the method="post" on my jsf page? I can already do that when the data traffic via GET. <f:metadata> <f:viewParam name="dados"…
-
12
votes2
answers4872
viewsWith the output of Viewscoped from the new JSF specification, what scope do I use now in my managed Beans that used it using JSF 2.2?
I have a big question now with the appearance of JSF 2.2: What to do with my views and my old Beans Managed? How to do it now (what scope to use) since I can no longer use view scoped in a view that…
-
12
votes2
answers1221
viewsSpring Security with Java EE
Hello, I am developing a Maven Enterprise Application EAR project and am currently implementing the authorization part using Spring Security with Annotation instead of xml. Structure of the Project:…
-
8
votes1
answer1423
viewsIs JSF 2.2 suitable for modern HTML and CSS?
I will develop several web applications, and in most of them, besides receiving the documentation with the requirements, I will receive from a good web designer, all the front-end (static) with…
-
8
votes1
answer438
viewsReturn value processed in Javascript to the Managed bean
Is it possible to return processed value in Javascript to the Managed bean? What’s different in this process is that I run the JS method on the bean, like this:…
-
8
votes2
answers663
viewsHow to make 3 nested Selectonemenu?
I’m creating a page that has to be 3 SelectOneMenu of the first faces. In the first I will carry a center (of the university), the second will carry an edict and the third would carry the…
-
7
votes4
answers957
viewsIntercept Exception
I am using Demoiselle in my application, but it has not been behaving very well in one aspect. In an association between two or more entities, deleting an exception is made. With the exception…
-
7
votes3
answers1691
viewsButton does not execute the Managedbean method
When I click the change or delete buttons, Managedbean methods are not executed. Anyone have any ideas? Some settings are missing on the buttons? Project: https://github.com/fercosmig/Forum…
-
6
votes1
answer3389
viewsHow to upload Dynamic Images to JSF?
What is the best strategy for uploading and using JSF images? I don’t want to use the field blob in the database, then how do I resolve the problem of the images storage folder, since the file . War…
-
6
votes2
answers1085
viewsSave image after upload
I am trying to save a cut image after the user uploads the image. The upload works well and I can save the image cropped too, but something strange is happening. The image is only cropped and saved…
-
6
votes1
answer1130
viewsCDI @Inject Named bean in another named bean
I am using jsf 2.2. I have 2 @Named @Named(value = "menuMB") @ViewScoped public class MenuMB implements Serializable{ } @Named(value = "produtoGeralMB") @ViewScoped public class ProdutoGeralMB…
-
6
votes1
answer640
viewsHow do the <p:editor> of the first faces escape the special characters typed by the user before saving them?
I am using the primefaces component. My problem is that it is recording the accents that the user type into the text without doing the proper Escaping HTML. There’s a way to change this so he knows…
-
6
votes1
answer1333
viewsChange validation behavior in Primefaces components
I have 2 generic templates for crud. The commandButton Template search CRUD.XHTML (Code 2) is with the following logic: (When opening the page, all input fields are disabled, when you click the…
-
6
votes1
answer622
viewsHow to take refresh from the full page when using the Fileupload component of the first faces
I’m using the component FileUpload of the first faces in the mode="simple" and it’s run normal. But when I click the save button on a certain folder, it refreshes the whole page. There’s a way to…
-
6
votes1
answer383
views -
5
votes2
answers1264
viewsAccentuation of request parameter in JSF page
I have a JSF page that receives as a parameter, in the URL, the error message to be displayed. Ex.: http://example.com/application_error.jsf?exception=Não+permitido On the page, the parameter is…
-
5
votes1
answer78
viewsWhat is the benefit of Jsf’s life Cycle?
People I see people talking about understanding the life cycle of JSF. And I wanted to understand what uses we will have when understanding?
jsfasked 10 years, 1 month ago Macario1983 1,335 -
5
votes1
answer3313
viewsHow to pass parameter for a dialogue with Primefaces?
I’m calling a Dialog via a JSF button with Primefaces 5.1 enabling the Dialog through the onstart="PF('iconeDeProcessamento').show()" button. Can anyone tell if it is possible to pass a parameter to…
-
5
votes1
answer5783
viewsConversion of Dates to Mysql database
Hello! Well, I’m using xhtml and primefaces. On my xhtml page, I have a field for date and use the converter to save in the database, I have a problem with the day. If I want to save 30/04/1989 In…
-
5
votes0
answers714
viewsProblem loading database image with JSF
I’m having a problem loading images from the database with JSF and CDI, below is the code for a better understanding of the problem. <ui:define name="titulo">Detalhes Anuncio</ui:define>…
-
5
votes1
answer460
viewsHow do I communicate Javascript data in JSF?
I am developing an application that performs digital signature. In it, I upload a file PDF that has the address stored in a variable JavaScript. In the background, there is an application in JSF,…
-
5
votes3
answers4457
viewsCalling Java application via PHP
I created a Java application here in my company but they want to call this application in Java via a site made in PHP. I wonder if it is possible to make a PHP code that calls a Java application, no…
-
5
votes1
answer422
viewsHow to create a sign-up page using JSF + Spring
I am creating a user registration page but am finding the following error: type Exception report message Unable to create instance for class: managedBean.Cadastrobean. Description The server…
-
5
votes2
answers352
viewsDoubt with datatable and/or JSF/JPA modeling
Good evening, I have the following problem... at first it seems kind of silly, but honestly I can’t get out of it I want to create a table where the columns are Sunday, Monday, Tuesday, Wednesday,…
-
5
votes1
answer228
viewsChanged database data is not shown in the Primefaces Datatable
I am trying to disable JPA cache (Eclipselink 2.5.2) through "persistence.xml", but it is not working. Changes made to the tables, externally to the application, are not presented in the Primefaces…
-
5
votes1
answer1173
viewsRedirect to another page only if the user is authenticated
I have a login screen where I authenticate a user, but when I put one action to switch page regardless of whether the user was authenticated or not the page opens. My question is to know where I…
-
5
votes2
answers2674
viewsGenerate PDF with Jasper and download without storing it
I’m generating a PDF with Jasper, I’ll show you how it’s being done. I’m saving it on disk, storing the path in the bank and then downloading it. I would like to know how to make so that the moment…
-
5
votes1
answer7203
viewsHow do I resolve the "No appenders could be found for logger" warning?
I am trying to configure Log4j in my project with JSF. I followed all the steps of a tutorial I found on Youtube. However, the following message is being sent: log4j:WARN No appenders could be found…
-
5
votes1
answer468
viewsProblem with JSF 2 redirection
In a JSF project the pages are organized like this: admin/pages admin/main admin/template. My web.xml is like this: <?xml version="1.0" encoding="UTF-8"?> <web-app…
-
5
votes3
answers1866
viewsFormatting date in Java web with Primefaces
Speak guys, I need to format a date in Java. I’m using Java web, Primefaces, MVC, TDD, JSF, Hibernate. I am an intern and I am doing a Project Manager project for my company. My date input view…
-
5
votes1
answer813
viewscannot be cast to java.util.Map
The method below that I created in the model layer, is returning me the error "cannot be cast to java.util.Map" public List<NotaFiscalProduto> listaItens (boolean entSaid, Date dtinicio, Date…
-
5
votes1
answer1139
viewsJSF is specification or framework?
In Javaee’s Github there is the repository javaserverfaces-spec that in his README.md says: Javaserver Faces (JSF) is a JCP Standard technology for Authoring Component based user interfaces on the…
-
5
votes1
answer44
viewsConfiguration of the Hibernate!
Hello I’m having a difficulty regarding a Hibernate configuration hibernate.hbm2ddl.import_files i believe q am doing everything right to find the sql path, I am using the same to insert some data…
-
4
votes1
answer232
viewsHow to make the p:Poll component not interfere with the modal in Primefaces 3.5
I have a page that has a table in the center, this table is updated every 30 seconds using the component p:poll <p:poll interval="30" update=":centro" /> The problem is that I have a menu that…
-
4
votes1
answer442
viewsWhat is the relationship between the Primefaces ajax and the events
Faced with certain problems during my developments I arose the following doubt for example. When I use the tag ajax in the Primefaces, has the property event where we passed events, then I arose a…
-
4
votes1
answer822
viewsImplement serializable in JSF
Why to implement serializable in the JSF bean Managed? When to use and not to use? What is the serializable interface for?
-
4
votes1
answer2681
viewsHow to run a back bean method from a Javascript function?
I am developing a web page with canvas in HTML 5, it will be presented dashboards in real time, for this use Managedbean to return the respective values, I have a component developed in JavaScript…
-
4
votes1
answer134
viewsHow to get the value of the attribute "Lazy" of the datatable primefaces in the bean?
To get the attribute value selectionMode datatable (primefaces) in MB: DataTable dt = (DataTable) FacesContext.getCurrentInstance().getViewRoot().findComponent("IdForm:IdDataTable"); String sm =…
-
4
votes3
answers1367
viewsProblems to implement convert to selectOneMenu
Good afternoon. I’m having trouble implementing a selectOneMenu of objects in my xhtml. Keeps giving "Conversion Error". Could someone tell me the problem of the code below? Error code: Erro de…
-
4
votes3
answers5090
viewsHow to make eclipse auto-complete code automatically without pressing Ctrl+space?
<ui:define name="menu"> <ui:include src="/includes/menuPrincipal.xhtml"></ui:include> </ui:define> <ui:define name="conteudo"> <h:form id="frmFabListagem">…
-
4
votes1
answer464
viewsError when using required inputs in Primefaces
I have some inputs from Primefaces inside a Wizard, showing only one of them: <p:inputText id="inputTitulo" value="#{editalBean.edital.titulo}" required="true" requiredMessage="Informe um título"…
-
4
votes2
answers862
viewsReading PDF with Defaultstreamedcontent. How to close it?
I have a JSF page where I Gero a PDF and need to show it on the screen. For that, I created a <p:media> It is working, but the PDF file gets stuck (never closed) and over time it ends up…
-
4
votes1
answer161
viewsProblem using JSF Applicationscope
I’m having a problem using the ApplicationScoped in JSF to save my country list. I made this managedBean: package view.point; import javax.faces.bean.ApplicationScoped; import…
-
4
votes1
answer196
viewsselectOneMenu Does not list correctly
I am trying to put selectOneMenu in my code and I am in trouble. I want to list the months of the year, by clicking to select, it lists the names side by side and not one below the other as it…
-
4
votes1
answer528
viewsProblems Implementing Spring Security
I am implementing Spring Security in a project, however, I have come across some problems. I will put the code of contexts, the part of web.xml for Spring Security and how I put it on a page for you…
-
4
votes2
answers1494
viewsAccess and permission control
I have a CRUD project to manage faculty and college courses using jsf+primefaces+jpa. My problem is this: There are the users who are the coordinators of the courses and the users who are…
-
4
votes3
answers1762
viewsRecover logged in user
I have Java Web application, but I want to do the following: When I log into my application with a certain user then I need to do some operations, such as saving some information in the database,…