Questions tagged as 'jsf-2.2'

2
answers

Error adding CSS / JS to the head of a page in JSF

I'm trying to include a CSS in a JSF view. However, I am not succeeding. Below is an excerpt from the view: <h:head> <h:outputStylesheet library="css" name="bootstrap.css" /> </h:head> The version of JSF is 2.2.12....
asked by 27.07.2015 / 21:54
2
answers

@PreDestroy in @ViewScoped

I noticed that @PreDestroy in beans with @ViewScoped scope is only called if the session that was active expired or if I forced a page redirect (? faces-redirect = true). Without these conditions, the bean with that scope is never destroyed, and...
asked by 27.08.2014 / 20:14
1
answer

How to get the customer's request?

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 session in a login situation: @ManagedBean...
asked by 07.11.2014 / 01:32
3
answers

Help in Get List (Code Refactoring)

I have a class with 2 attributes: public class Classe(){ private String conteudo; private String tipoConteudo; getters...setters.. } So I have an ArrayList with 3 or more objects of this class, how do I on a line a get of a s...
asked by 21.02.2014 / 12:03
1
answer

Problem using JSF ApplicationScope

I'm having a problem using ApplicationScoped on JSF to save my list of countries. I made this managedBean: package view.point; import javax.faces.bean.ApplicationScoped; import javax.faces.bean.ManagedBean; import view.country.Co...
asked by 28.04.2015 / 20:55
2
answers

How to insert data from inpuText into a list using JSF?

I have the following problem: I need a form to submit test questions. Therefore, the form should contain a field for the question (question statement), and several fields for the alternatives. With this, I wanted the values of the input's...
asked by 25.04.2015 / 06:43
1
answer

Problem with Spring Security - page not found

When the user accesses a page that he does not have authorization, he is directed to the page of AcessoNegado.xhtml . However it has the following image: Thispageislocatedhere:\GestaoADM\src\main\webapp\AcessoNegado.xhtml And the set...
asked by 30.06.2015 / 17:04
2
answers

What DTD to use in JSF with HTML5 tags

Generally, when I make a JSF page with XHTML, I use the DTD for XHTML 1.0 Transitional. However, if I use the namespace and put some HTML5 tags (passtrough elements / attributes), which DTD should I use? <html xmlns="http://www.w3.org/19...
asked by 13.03.2015 / 14:43
0
answers

Problem with Weld CDI with TomCat server

Hello everyone, I'm having trouble using the CDI implementation, Weld on Tomcat 7. I've been researching and tried several proposed solutions, but all these solutions are old, with dates of 2012. None of these solutions worked. Let the setti...
asked by 09.12.2015 / 18:54
2
answers

Navigability 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 able to put navigability in them, see below; so it works; <li ><a href="/Terezinha.Bandeira" >Inicio</a></li...
asked by 18.09.2015 / 13:31