Questions tagged as 'primefaces'

0
answers

Error in the "rowkey" attribute of DataTable - JSF 2.2 with PrimeFaces 6.2

I'm new to JSF and am having trouble with the rowkey attribute of the DataTable. It simply can not find the reference I put of my var attribute. It's as if the name I put in var only serves the components that are inside the DataTabl...
asked by 05.08.2018 / 10:05
1
answer

AutoComplete with New Registration option - JAVA

I have an autoComplete on the sale screen, when the user types the customer name I want it if it does not have any records it displays something like ADD NEW CUSTOMER, could anyone help me? I'm using primefaces: <p:autoComplete id="cliente...
asked by 23.07.2018 / 22:26
1
answer

Update JSF only works on whole form (Primefaces)

Good evening. I'm breaking my head with a problem that seemed simple I have a form with some fields, while selecting a combobox I want to hide and display some fields. I'm using 'p: ajax' to run the update. And in the fields to hide, I'm u...
asked by 12.07.2018 / 04:48
2
answers

I can not make the LIST page work in JSF

I have the following code that I'm developing with JAVA JSF, primefaces, postgre, cdi, tomcat: BUSCARBEAN package controller; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.annotation.PostCons...
asked by 10.07.2018 / 21:03
0
answers

Error while showing a list of images that were retrieved from DB

Images are retrieved normally but are not displayed in the gallery. NOTE: If I take an image from the list and play in a p:graphicImage it works normal. MBean: package org.salomao.bean; import java.io.Serializable; import java.time....
asked by 26.06.2018 / 17:54
0
answers

How to change an image using the commandButton in Java JSF?

0 vote against favorite Good afternoon, I'm developing a naval battle game in JAVA using Primefaces to make the front end. I would like a help to mount a commandButton that when clicked, trigger a function that will return if the house selected...
asked by 17.06.2018 / 16:55
0
answers

Component p: firstfaces toolbar java.lang.IllegalArgumentException no Id

So, any id that I put in my toolbar generates this error (test was a temporary name that I put in the id): java.lang.IllegalArgumentException: teste at javax.faces.component.UIComponentBase.findComponent(UIComponentBase.java:651) at o...
asked by 14.06.2018 / 04:43
0
answers

Dynamic PanelGrid JSF

I have an application that needs to have a dynamic panel, I was able to create and display the screen and put the values from the database, but I can not get the values of the inputnumber if the user modifies, my question is how do I get these v...
asked by 15.06.2018 / 22:05
0
answers

How to do a JSF Login

Friends once again around here, I'm doing a college job, that the teacher wants a login page. To start I have done all the part that saves the user, with screens in xhtml, the system will have two more types of users the fiscal and the genera...
asked by 02.06.2018 / 00:46
1
answer

Call method in bean if condition is true

I created this confirm: <script type="text/javascript" language="javascript"> function salvarAntes(){ var r=confirm("Deseja confirmar?"); if(r){ return true; } e...
asked by 29.05.2018 / 17:29