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
-
24
votes8
answers17582
viewsUse Bootstrap and Primefaces without one interfering with the other?
I’m trying to use Bootstrap along with primefaces in a JSF project, the problem is that in most components I need to use JSF tags instead of the primefaces because the primefaces do some tricks with…
-
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
votes1
answer1008
viewsProblems with JSF Fileupload
I am able to save the disk image in this JSF project <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"…
-
12
votes2
answers669
viewsJAAS or Spring Security on page control
I’m doing an Eclipse project with JSF 2.2, JPA 2.1, Hibernate 5, Primefaces 5.3, CDI (Weld 1.1). I want to implement the security part of the application and I’m in doubt between JAAS and Spring…
-
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…
-
7
votes1
answer5553
viewsjava.lang.Illegalargumentexception error in Hibernate when working with Enum
Take a look at the error message: jun 02, 2015 5:23:57 PM com.sun.faces.lifecycle.ApplyRequestValuesPhase execute ADVERTÊNCIA: /WEB-INF/template/pedidos/CapaPedido.xhtml @29,99…
-
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
answer383
views -
6
votes2
answers453
viewsProblems with table configuration in Primefaces
Greetings to you all, I’m new as a Java programmer, and I’m having difficulty setting some things in the table for lack of experience, note the image; As you can see the field Manufacturing year is…
-
5
votes2
answers704
viewsComponent pe:Masterdetail does not work on dynamic pages
I’m developing a web app that aims to work like Facebook. During the navigation the page is not reloaded, loading via AJAX only the central content. I’m using Primefaces 4.0 and Primefaces Extension…
-
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
votes0
answers833
viewsError deploying to Wildfly 8: Failed to define class
I am getting the error below when trying to deploy my application, after migrating from Jboss AS 7.1 to Wildfly 8.2 and Java 7 to Java 8 and still cannot identify the source of this error. I’m using…
-
4
votes3
answers271
viewsGet List Help (Code Refactoring)
I have a class with 2 attributes: public class Classe(){ private String conteudo; private String tipoConteudo; getters...setters.. } So I have a Arraylist with 3 or more objects of this class, as I…
-
4
votes2
answers856
views@Predestroy on @Viewscoped
I noticed that @Predestroy in @Viewscoped scoped Beans is only called if the session that was active expires or if I force a page redirect (?faces-redirect=true). Without these conditions, the bean…
-
4
votes1
answer630
viewsHow to get the client’s requisition?
I’m trying to get the user session from the request, but I’m not sure if I’m capturing the request correctly: I have a Managed Bean (Sessionscoped) with data. The following block creates a user’s…
-
4
votes2
answers137
viewsWhat JSF DTD to use with HTML5 tags
Usually, when I do a JSF page with XHTML, I use the DTD for XHTML 1.0 Transitional. However, if I use namespace and put some HTML5 tags (passtrough Elements/Attributes), which DTD should I use?…
-
4
votes2
answers1269
viewsHow to insert inpuText data into a list using JSF?
I have the following problem: I need a form to submit questions of evidence. Therefore, the form should contain a field for the question (question statement), and several fields for the…
-
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
answer380
viewsProblem with Spring Security - page not located
When the user accesses a page that he does not have authorization for, it is to be directed to the page of AcessoNegado.xhtml. But it presents the following image: This page is located here:…
-
4
votes2
answers450
viewsError including CSS/JS in the head of a JSF page
I’m trying to include a CSS in a JSF view. However, I’m not succeeding. Below we have an excerpt from the view: <h:head> <h:outputStylesheet library="css" name="bootstrap.css" />…
-
4
votes0
answers1609
viewsWeld CDI problem with Tomcat server
Greeting to everyone, I’m having trouble using the CDI implementation, Weld on Tomcat 7. I’ve been doing some research and tried several proposed solutions, but all these solutions are old, with…
-
3
votes1
answer366
viewsError in final bar with mod_rewrite and mod_jk
I have the following structure on my server. Apache HTTPD (port 80) Tomcat (gate 8080) I used the mod_jk to make the connection between apache and Tomcat and this is working perfectly. I created a…
-
3
votes1
answer2881
viewsdatatable calls a dialog for editing, but editing is not effective. (prime faces 5.1)
I have a WEB application with 5.1 primefaces of a datatable I call a dialog for editing, but editing is not effective. I will describe with images and at the end put the full xhtml. I have a…
-
3
votes2
answers597
viewsproblem in a Maven + JSF application
I’m trying to follow a workbook but when I do the Access project properties procedure and find the Project Facets side menu appears the window in the attachment and then I mark the altenativa as…
-
3
votes1
answer2259
viewsProblems with Maven package dependencies
When I insert this package it generates an error, because it will be? <!-- Abstração para envio de e-mails --> <dependency> <groupId>com.outjected</groupId>…
-
3
votes3
answers3889
viewsTemplate and Themes for JSF/Primefaces
I would like to ask a question, and I believe it is quite simple. There are a wide variety of templates for Angularjs, Wordpress and etc. In the same site of Primefaces, has themes such as Modena,…
-
3
votes2
answers60
viewsNavigation problem using Button in Bootstrap
I created a JSF project and I’m using Bootstrap, and I’m trying to implement buttons in my project and I’m not being able to navigate them, see below; thus work; <li ><a…
-
3
votes2
answers373
viewsSelectonemenu is not powered
I have a p:selectOneMenu and would like it to be fed with existing data in the database as soon as the page was loaded: xhtml. <p:selectOneMenu id="carros"> <f:selectItem itemLabel="Carros"…
-
3
votes1
answer212
viewsError au render screen in pimefaces application - Nullpointexception
Uu method, to be called gives NullPointException. Has an expression that validates when editing appears header "Product Editing", if New registration appears "new". No cadastroProdutoBean.java has…
-
3
votes1
answer274
viewsHow to generate compiled classes and maintain the. java in Maven?
Guys every time I do Maven install it compiles the classes and generates the xxx.class, so far so good. I would like to know if it is possible to generate . class and also keep all . java, in the…
-
3
votes2
answers496
viewsProblem with Fileupload
I had the opportunity to find an application ready on the internet as shown below:…
-
3
votes1
answer456
viewsProblems with Javascript Currency Formatting
Greeting to all, I’ll get right to the point; When I enter the page I fill out a form and the value field gets the currency formatting working, as you can see below; After saving the currency…
-
3
votes2
answers470
viewsProblems opening connection to JSF and JPA
There’s something wrong with mine persistence.xml? I can’t open the connection. My Bean is like this: import java.util.List; import javax.faces.bean.ManagedBean; import…
-
2
votes2
answers869
viewsValidation with JSF
I want to perform the validation of the form displayed in the image in a different way than the framework requires. The validation would be something like an alert, IE, the user would be informed…
-
2
votes0
answers47
viewsProblem with rich:suggestionbox component in IE
We have a problem with the rich:suggestionbox component in the IE 8 browser. When the suggestion list appears and the user clicks inside the suggestion, but in no item in the list, the suggestion is…
-
2
votes1
answer147
viewsEclipse does not show java attribute hint
When I press on CTRL+Space and I click on attribute, Eclipse is not showing the attribute hint before Click. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"…
-
2
votes0
answers2604
viewsProblems with JSF converter: "f:convertNumber"
Good night to you all, In an application I developed in JSF the converter worked well running locally with local mysql database (JPA/Hibernate) but when I deployed the application and put it into…
-
2
votes1
answer1176
viewsThe Primeface confirmation screen does not work
This is the screen that appears in my Browser When I press the delete button it simply does nothing. Does not generate any error on the eclipse consoles This is the separate code is problem here!…
-
2
votes1
answer192
viewsWhat is the difference between the following methods?
I am developing a JSF application and came across the following methods and want to know the difference between them. ((HttpSession)FacesContext.getCurrentInstance()…
-
2
votes1
answer1016
viewsJSF datatable how to fill columns with List<List<Integer>?
I have the following situation. A vector that will store the values that will be registered in the bean public class PainelControleExtratoVO { public Integer[] demandaEmAberto; public Integer[]…
-
2
votes3
answers658
viewsBusiness rules in JSF
In JSF where would be the best place to define business rules? In the model, in the Managed-bean or in a layer of business rules( I am very reluctant to adopt this last approach), or even to…
-
2
votes2
answers303
viewsBacking bind with JSF components
I’m a beginner in Java EE and I’m using an e-book from Algaworks "Java EE 7, with JSF, Primefaces and CDI. Up to ManagedBean occurred normally, but when I started backing bean Java could not find…
-
2
votes0
answers167
viewsDoubt migration JSF 2.1 to JSF 2.2
I migrated my application from JBoss AS 7.1.1 to the Wildfly 8.2 and JSF 2.1 for JSF 2.2. Also use Hibernate 4.3.7, JPA 2.1 and PostgreSQL. I am being able to access my application normally, but…
-
2
votes3
answers1539
views<f:param sends id null and is released java.lang.Numberformatexception
I use the same registration form to update a datatable record. By clicking update it sends to inputText the name to be updated so far all right, the problem is when the name is changed and the…
-
2
votes1
answer111
views -
2
votes1
answer203
viewsNull pointer exception on a radio button
I’m trying to put two Primefaces radio buttons on one page xhtml: <p:selectOneRadio id="fis_jur" layout="custom" value="#{usuario.fis_jur}" required="true"> <f:selectItem itemLabel="Física"…
-
2
votes1
answer66
viewsHow to disable a button during ajax request with primefaces?
How to disable a button during ajax request with primefaces using p:ajaxStatus. I wanted to do it in a generic way, ex: all buttons will be disabled during ajax request;
-
2
votes1
answer226
viewsJPA+Hibernate releasing update alone
Hello, I have an object that is managed by Hibernate. On screen, an attribute of this object is updated the value and Hibernate immediately triggers an update in the database, without even going…
-
2
votes2
answers2116
viewsTomcat V8.5 not booting, error: Child container failed During start
I’m doing a college paper, a simple crud with JSF2, Hibernate, Primefaces and CDI. However at the moment I will initialize the project in Tomcat I have the following error: GRAVE: A child container…
-
2
votes1
answer482
viewsHow to insert icons in JSF?
In a registration form I have to insert edit and remove icons in a form made in JSF. <h:commandLink action="#{clienteController.editar}">Editar…