Questions tagged as 'jsf'

1
answer

Spring boot Data-JPA and JSF Java Config

I'm setting up a project using Spring boot for ioc and Data-Jpa along with JSF but I have a problem with @Autowired my DAO is not loading. Does anyone know how to do this setting and where can I be wrong? Here's my setup: Applica...
asked by 09.07.2015 / 08:42
1
answer

How to make the p: poll component not interfere in modal in Primefaces 3.5

I have a page that has a table in the center, this table is refreshed every 30 seconds using the p:poll <p:poll interval="30" update=":centro" /> The problem is that I have a menu that opens a popup (modal) with a form to be po...
asked by 24.04.2014 / 17:40
1
answer

How to get the value of the lazy attribute of the first datatable in the Bean?

To get the value of the selectionMode attribute of the datatable (primefaces) in MB: DataTable dt = (DataTable) FacesContext.getCurrentInstance().getViewRoot().findComponent("IdForm:IdDataTable"); String sm = dt.getSelectionMode(); A...
asked by 16.04.2015 / 16:45
1
answer

Reading PDF with DefaultStreamedContent. How to close it?

I have a JSF page where I generate a PDF and need to show it on the screen. For this, I created a <p:media> It's working, but the PDF file gets stuck (it's never closed) and over time it ends up dropping Tomcat by Many file...
asked by 08.04.2015 / 16:10
1
answer

Error converting from JSF

I'm having trouble converting from JSF, it always returns null . Convert Project: @FacesConverter("projetoConverter") public class ProjetoConverter implements Converter { @Override public Object getAsObject(FacesContext faces...
asked by 05.05.2016 / 15:25
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
1
answer

Problems implementing Spring Security

I'm implementing Spring Security in a project, however, I've come across some issues. I'm going through the context code, the part of web.xml to Spring Security and how I put it on a page for you to see. What happens is that Spring...
asked by 08.05.2015 / 22:49
1
answer

selectOneMenu Not listed correctly

I'm trying to put selectOneMenu in my code and I'm having problems. I want to list the months of the year, when clicking to select, it lists the names side by side and not one below the other as it should be. Followthecode:<h:form><h:pa...
asked by 04.05.2015 / 16:15
3
answers

Retrieve 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, but I want it at the time I do this insertion,...
asked by 11.06.2015 / 22:35
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