Questions tagged as 'jsf'

1
answer

saving method: org.hibernate.exception.ConstraintViolationException: could not execute statement

Personal I have a small screen that registers name and type. When I click on Physics type the date of birth is rendered and I need to save it and when I click on Legal I have to save a branch of activity that is loading the branches correctly in...
asked by 21.08.2016 / 00:53
0
answers

JSF + Primefaces p: selectOneRadio within Datatable and Pagination

<p:dataList value="#{simuladoBean.questoes}" var="q" type="unordered" rowIndexVar="qi" itemType="none" paginator="true" rows="1" styleClass="paginated"> <h:panelGrid columns="2" style="color:#000;"...
asked by 21.06.2016 / 01:53
2
answers

JSF - How to pass a Bean function as an argument to a function in JavaScript?

I would like your help. I am developing a system in JSF, and I have the following need: I would like to pass a bean function as an argument to a function of mine in JS, so that I determined future moment I can call such a function. For example:...
asked by 02.08.2016 / 04:33
0
answers

connections in web application

I'm creating a J2EE project, jsf. They have multiple beans and a controller, and the beans access the Database. I am having doubts about how to manage the connection to the database, at the moment I have only one connection, but it does not make...
asked by 08.06.2016 / 12:44
0
answers

How to uncheck a checkbox when another one is selected?

<t:selectOneRadio layout="pageDirection" forceId="true" forceIdIndex="false" id="selectCodigoProcesso" rendered="#{!bkbCadastroPessoaJuridica.orgaoEntidade}" styleClass="e...
asked by 23.05.2016 / 20:27
0
answers

Show and receive response from a p: confirmDialog triggered through the Managed / CDI Bean

I have a view with a record button, but the method that executes on the record button does some checks on the bean and asks the user if they really want to save. Show the dialog: RequestContext.getCurrentInstance( ).execute( "PF('confG').show(...
asked by 29.04.2016 / 18:18
0
answers

View PDF in a Dialog

I'm wanting to change the way the user views the system report I'm developing, currently clicking the button to view the report, is given the option for the user to download or open direct in the PDF viewer that is installed on the machine, but...
asked by 01.05.2016 / 20:10
0
answers

Error org.apache.jasper.compiler.TldLocationsCache

I am developing an application in JSF 2 (Mojarra 2.1.1), JPA 2.0 (Hibernate 4.2.3), Apache Tomcat 7.0.47 and JDK 7u79 and this error message is appearing: / p>    ContextListener:   attributeAdded ('org.apache.jasper.compiler.TldLocationsCac...
asked by 22.04.2016 / 16:48
0
answers

IntelliJ JSF - Page opens in white

What I did I created a Maven project and added the JSF module, however, even with the downloaded library. What's happening When I run my project using Tomcat , the olamundo.xhtml page is blank. The URL should come as http:/...
asked by 04.02.2016 / 01:46
1
answer

facebook namespace do not work in JSF?

I'm using personal jsf, I'm trying to make facebook recognize my meta tags: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/j...
asked by 28.01.2016 / 16:40