Questions tagged as 'jsf'

1
answer

DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled

hello good morning I'm working with the following xhtml      <h:form id="form_emisor_listado"> <p:growl id="messages" showDetail="true" /> <h:outputText id="txt_validador_controlador"> <...
asked by 21.04.2018 / 16:13
0
answers

how to refresh a datatable of primefaces after a click?

I have the following form <h:form id="form"> <p:commandButton icon="ui-icon-clock" styleClass="element-button green hacia-izquierda" style="margin-right: 5em; margin-top: -1em;" value="Horario" update=":form:horario" oncomplete="PF(...
asked by 04.04.2018 / 17:29
0
answers

Error converting object to string jsf-hibernate

I am doing a control program for borrowed books where only the Isbn of the book and the Student's card are kept in the Loan table; I do it with JSF and Hibernate. I'm loading a selectOneMenu with a query of Student-type objects but when converti...
asked by 24.03.2018 / 01:33
0
answers

How to calculate amount in primefaces jsf with ajax?

I need to calculate the amount of products that are in a dynamic datatable I am using the edit property of datatable jsf. the multiply fields are the price by the amount = amount. the price is an outputlabel, the quantity is inputtext, and...
asked by 23.03.2018 / 16:30
1
answer

Primefaces: Error when deploying war in tomcat

I want to display my war exported on my tomcat directly and I get this error (image). In NetBeans everything works fine. The steps I did in the Tomcat are: create my user, add to the System Path, Run to Tomcat, enter localhost: 8080, Manager App...
asked by 30.03.2018 / 19:37
1
answer

Modification-Error in the creation of an instance with jsf-spring-hibernate-mysql

I already asked this question previously but now it gives me another error product of a change. I am a beginner in this Spring-Hibernate (I know the essentials). I have created in Netbean a login with hibernate (annotations) and access to MySql...
asked by 20.03.2018 / 17:38
0
answers

how to select a record in a table and get the selected value to display it?

I have the following table, and I want that when selecting a record in the action button a modal appears, and that in that modal the info of the regstro that I select is shown <p:dataTable id="detalle" var="detalle" styleClass="column...
asked by 16.03.2018 / 18:53
1
answer

how to get the maximum and minimum date of a query in jpa with java?

I have the following query @NamedQuery(name = "findRegistroAccesoByNuserid", query = "select myRegistroAcceso from RegistroAcceso myRegistroAcceso where myRegistroAcceso.nuserid = ?1 and TO_CHAR(myRegistroAcceso.fecRegistroEntrada, 'dd/MM/yyyy...
asked by 21.03.2018 / 17:03
0
answers

Export more data from a table p: dataExporter

I have a simple table: (Example based on the official website) <p:dataTable id="carId" var="car" value="#{dtBasicView.cars}"> <p:column headerText="Id"> <h:outputText value="#{car.id}" /> </p:column>...
asked by 14.03.2018 / 18:05
0
answers

Load an image in jsf with javascript

I want to upload an image with javascript since the image is generated from the server side and it needs to be loaded from the client side in jsf with glassfish     
asked by 06.03.2018 / 17:04