Questions tagged as 'jsf'

1
answer

How to get quantity of items from an ArrayList?

I'm trying to count how many items it contains in a ArrayList , I already have something ready: private int quantidadeN = listaNotificacaos.size(); It should save the amount inside the variable quantidadeN , but when I play the...
asked by 20.06.2016 / 20:47
1
answer

Conditional validation on PrimeFaces component

Hello I have the following problem. I have the inputText description which is disabled by default. When I click the browse button, it enables inputText and then instantiates an object to search. If I do not pass a filter in the inputText desc...
asked by 20.08.2015 / 21:47
2
answers

Error in converting JSF

Error or Bug? Hi, I have an error appearing on the eclipse console, on the registration screen the form writes perfectly, everything ok, but the console points: java.lang.NumberFormatException: For input string: "Selecione" at java.lang.Nu...
asked by 14.05.2015 / 21:54
1
answer

Error using required inputs on Primefaces

I have some Primefaces inputs inside a Wizard , showing just one of them: <p:inputText id="inputTitulo" value="#{editalBean.edital.titulo}" required="true" requiredMessage="Informe um título" label="titulo" /> It happens...
asked by 08.02.2015 / 19:43
1
answer

Dynamic fields with jsf and ajax not rendering mascara

I have a JSF form in which I add <input> fields dynamically with AJAX. When I click on <h:commandButton> it triggers the routine to add <input> the field is added however the mask that I set for it is no...
asked by 06.08.2014 / 15:11
1
answer

Lazy Load OneToMany

Hello. I'm having difficulty running my fetch = FetchType.LAZY relationships with the @OneToMany annotation. In my entity Nota Fiscal, there are several lists fetch = FetchType.LAZY, when loading the object by id, I load all these lists with...
asked by 22.09.2014 / 19:46
2
answers

jpql filter without using the filter of primefaces (with its own method)

Changed to probable solution but still not working, it seems that the line with ajax is not updated. <h:body> <h:form id="formTableProd"> <ui:composition template="/templates/master.xhtml"> <ui:define name="con...
asked by 24.07.2014 / 03:00
1
answer

How to Call Other Class Values

I am creating a vehicle control, and in it I have a Fuel register that has description and value, and another cadastre of Supplies. In my supply register has a autoComplete of Fuel. The problem starts here, when I select the fuel I need t...
asked by 16.11.2016 / 13:39
1
answer

Dynamically update a primefaces table

Hello, I'm creating a java master with Primefaces. I have the following problem: I have a screen in xhtml and the same loads the data, so far so good. The problem is when someone on another computer is accessing at the same time, you will not be...
asked by 06.11.2016 / 04:13
1
answer

can not be cast to java.util.Map

The method below that I created in the model layer, is returning the error "can not be cast to java.util.Map" public List<NotaFiscalProduto> listaItens (boolean entSaid, Date dtinicio, Date dtfim){ Criteria r = this.session.createC...
asked by 14.11.2016 / 12:19