Questions tagged as 'jsf-2.2'

1
answer

problems with JSF 2.1 confirmDialog

I was able to implement the deletion of the record in a JSF page, but when I delete the record it does not ask for the confirmation screen, I can not understand why it is not working, but the line of code that asks for confirmation of the deleti...
asked by 14.12.2015 / 11:33
2
answers

Why is not my Bean receiving the submit form?

Why my Bean is not recognizing the attribute of a simple selectOneMenu: I created in my Bean the private Long areaprevencaoId attribute. This attribute is associated with a <p:selectOneMenu> xhtml <h:selectOneMenu...
asked by 14.10.2015 / 02:03
1
answer

How to render a jsf component through Bean?

I need to render a jsf component (Primefaces) through the Bean. I have a selectOneMenu that changes the type of person (physical / legal) and I need to render the field "CPF", since I use the same field for CPF / CNPJ and when changing the type,...
asked by 06.11.2015 / 23:17
1
answer

Performance when generating a table in JSF

I'm having a question about how to improve perfomance when generating a table on a page using components JSF and Primefaces . I am generating a table, after doing a SQL query and mapping the object using Hibernate ,...
asked by 09.11.2015 / 17:53
1
answer

How to write image to database with JSF2

I'm having a JSF project with the DAO template using Hibernate , and I'm having a hard time understanding how to save the image in the database. I just need to know what the method would look like to save an image to a DAO cla...
asked by 07.05.2015 / 23:58
2
answers

Dialog disappears after being opened

I'm using a primefaces dialog: <h:form> <p:dialog widgetVar="dialog" modal="true" resizable="false"> <p:outputLabel value="Mensagem qualquer."/> <p:commandButton value="Botão 1" action="#{chama um métod...
asked by 15.11.2014 / 23:10
1
answer

java.lang.NumberFormatException: For input string: "code"

I am developing a project with JSF, primefaces, maven and JPA with the specification of hibernate and PostgreeSQL DBMS (I created the separate database script, then connected with hibernate) and when I tried to run the page listing all the clien...
asked by 18.06.2018 / 02:33
1
answer

How to list all JSONArray data using JSF?

I'm having trouble listing all the JsonArray data in a JSF , always only the last value, since when I use System.out.println(variavel) I can list everything without problems. JSF page that needs to receive the data <?xml v...
asked by 13.04.2018 / 01:09
1
answer

Recover shopping cart after closing and opening browser

I'm building a shopping cart with JSF it's working, but not the way I think it's the right one. Example: When I enter sales sites, even though I'm not logged in, I can add items to the cart, and even closing and opening the browser will kee...
asked by 13.03.2018 / 17:56
1
answer

How do I make a list and change results using javaEE

I have an object called (Bank) that has several accounts, with balance in these accounts I make payments of several expenses. What I want is to get all the expenses paid and to write down the bank accounts in a single bank transaction, but I can...
asked by 12.12.2017 / 13:22