Questions tagged as 'jsf'

1
answer

Differences between JSF and JSP

Web programming recently (4 months) and went straight to JSF , that is, I did not study anything about JSP . I started to take a course and my teacher kind of belittles JSF saying that he has many limitations, that JSP...
asked by 18.08.2015 / 14:00
3
answers

Architecture for a JSF Application with Android APP

I'm in the planning part of a web application that I'm going to develop for a Client. There will be CRUDs and some report, nothing too complicated. At the moment I'm writing an architecture so that this application can evolve well without muc...
asked by 03.01.2014 / 19:58
2
answers

How to get form data via "POST"?

Is there any way I can receive data coming from an external form using method="post" on my jsf page? I can already do this when data travels via GET . <f:metadata> <f:viewParam name="dados" value="#{testeMB.dadoExt...
asked by 08.01.2014 / 13:56
0
answers

SelectOneMenu is not loaded when selecting object for editing

I have a SelectOneMenu (Primefaces) component of cities, which loads according to the selected state. My component has the following behavior, right after saving the object and then selecting it in DataTable through commandLi...
asked by 26.05.2015 / 01:55
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
2
answers

Spring Security with Java EE

Hello, I'm developing a Maven Enterprise Application EAR project and I'm currently implementing the authorization part using Spring Security with Annotation instead of xml. Project Structure: FileAppConfig.javapackagebr.com.seguranca.confi...
asked by 11.05.2015 / 16:21
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
2
answers

How to make 3 SelectOneMenu nested?

I'm creating a page that has to have 3 SelectOneMenu of primefaces. In the first one I will load a center (of the university), the second will carry a edital and the third would load the disciplines of this edital. The first SelectO...
asked by 07.07.2015 / 05:05
3
answers

Format date in Java web with Primefaces

Speak, 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 entry view looks like this: <h:outputText value="Data de...
asked by 23.09.2016 / 19:31
4
answers

Intercept Exception

I'm using Demoiselle in my application, but it does not come out very well in one respect. In an association between two or more entities, deleting throws an exception. With the exception handling available in Demoiselle, I've created a method t...
asked by 23.03.2015 / 12:56