Questions tagged as 'jsf-2.2'

2
answers

JAAS or Spring Security in page control

I'm doing a project in Eclipse 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 am in doubt between JAAS and Spring Security. The template below corresponds...
asked by 01.12.2015 / 14:30
1
answer

Problems 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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html x...
asked by 20.05.2015 / 21:57
2
answers

___ ___ erkimt With the departure of ViewScoped the new specification of the JSF, which scope to use now in my managed beans that used using JSF 2.2? ______ qstntxt ___

I have a big question now with the appearance of JSF 2.2: What do I do with my views and my old managed beans? How do I now (what scope to use) since I can not use more view scoped in a view that needs to keep some objects in memory between ajax requests?

    
______ azszpr95 ___

According to: link

La says that the @ViewScoped annotation in the javax.faces.bean.ViewScoped package should become deprecated, given the creation of the @ViewScoped annotation of the javax.faces.view.ViewScoped package.

This happens, considering the adoption of an extension of the CDI, using the second annotation. If you do not use the CDI, this annotation will not work.

    
______ azszpr96 ___

You can and should use the CDI ViewScoped: javax.faces.view.ViewScoped, however of course, you need to use CDI beans.

What happens is that JSF ViewScoped does not work with CDI beans, and JSF is taking the course where CDI beans will override JSF Managed Beans. So they are making arrangements for the entire javax.faces.bean package to become deprecated in the future.

More information here at this link: link

    
___

I have a big question now with the appearance of JSF 2.2: What do I do with my views and my old managed beans? How do I now (what scope to use) since I can not use more view scoped in a view that needs to keep some objects in memory between ajax...
asked by 11.12.2013 / 19:18
1
answer

Is 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, the entire front-end (static) with HTML, CSS and Javascript using modern layouts....
asked by 30.01.2015 / 20:08
1
answer

java.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 completeMethod="#{cadastroPedidoBean.completarCliente}": java.lang...
asked by 02.06.2015 / 22:28
1
answer

CDI @Inject Named bean in another Named bean

I'm using jsf 2.2. I have 2 @Named beans in @ViewScoped @Named(value = "menuMB") @ViewScoped public class MenuMB implements Serializable{ } @Named(value = "produtoGeralMB") @ViewScoped public class Produt...
asked by 25.02.2014 / 14:09
2
answers

Problems with configuring tables in PrimeFaces

Greeting for everyone, I'm new as a Java programmer, and I'm having trouble setting up some things in the table for lack of experience, look at the image; Asyoucansee,theYearofmanufacturefieldisbadlyplaced,itlookslikethis;AnodeFabricaAnditsho...
asked by 22.07.2015 / 01:11
1
answer

Sort dataTable by attribute

On the JSF page, it picks up the managed bean from the list of any objects. public class Ob implements Serializable { private Integer id; private Date data; private String descrição; } I wanted to mount the table more or less li...
asked by 13.07.2015 / 01:38
0
answers

Error when deploying on Wildfly 8: Failed to define class

I'm getting the error below when trying to deploy my application after migrating from JBoss AS 7.1 to Wildfly 8.2 and from Java 7 to Java 8 and still can not identify the source of this error. I'm using Wildfly 8.2, Primefaces 5.1 and JSF 2.2...
asked by 29.07.2015 / 14:41
2
answers

Component eg: MasterDetail does not work on dynamic pages

I'm developing a web application that aims to work like Facebook. During browsing the page is not reloaded, loading via AJAX only the central content. I'm using PrimeFaces 4.0 and PrimeFaces Extension 1.2.1 But when my page (from the centr...
asked by 01.02.2014 / 03:07