Questions tagged as 'primefaces'

1
answer

Call method when closing dialog

This code is the showcase of primefaces : <h:panelGrid columns="1" cellpadding="5"> <p:commandButton value="Basic" type="button" onclick="PF('dlg1').show();" /> <p:commandButton value="Modal" type="button" onclick...
asked by 29.03.2017 / 20:30
3
answers

Problem with accent when saving text to the database

Good morning guys, I have the following problem. My system makes changes to a table in the database, if the content is inserted directly by script in postgres, accenting works normally, but when updating the text by the system, the accent does n...
asked by 27.04.2017 / 15:15
1
answer

View PDF JSF primeFaces

Personal I'm creating a pdf file so it's beauty. Now I would like to display this PDF in a formulário.Xhtml Here is the code I use to create the pdf if someone can help me: CreatePdfBean class package br.com.view; import java.io...
asked by 16.03.2017 / 15:45
1
answer

Primefaces (TabView): Null properties when saving

I'm using a TabView with two tabs and each tab with an external file with fields. By clicking the "Save" button the attributes are coming as null. Here is the code: Registered Clients.xhtml: ... <h:form id="frm-cadastro-cliente-dialog"&g...
asked by 27.02.2017 / 20:13
1
answer

How to change getRealPath () save location? Photocam primefaces

I'm trying to use the Photocam component of Primefaces, it's working, but the image is saved within the target of the application. I want to change the rescue location. Here's a snippet of the code. ExternalContext externalContext = FacesCo...
asked by 10.01.2017 / 11:30
1
answer

Target Unreachable, identifier 'users' resolved to null

My bean: package com.cliente.Bean; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; import org.omnifaces.util.Messages; import com.sist...
asked by 05.01.2017 / 19:42
1
answer

Show suggestions while typing autocomplete

I have the following autoComplete : <p:autoComplete id="geracao" value="#{habilidademb.habilidade.geracao}" completeMethod="#{habilidademb.listarGeracoes()}" dropdown="true" var="bean" itemLabel="#{bean.nome}" itemValue="...
asked by 30.11.2016 / 23:46
1
answer

Centralize components

The print below is the confirmation of a record of my datatable, the popup opens when you click the delete record button: Thecodeforthisdialogisasfollows:<p:commandButtonicon="ui-icon-trash" action="#{geracaomb.excluir(linha)}" ajax="true...
asked by 09.11.2016 / 16:23
1
answer

Java Framework for Ecommerce Website Style

Good evening! I would like the opinion of those who are active on the most appropriate framework for developing an E-commerce site using java. I was thinking of JSF 2 + Primefaces but I believe JSF is more geared towards corporate applicat...
asked by 07.10.2016 / 23:08
3
answers

Primefaces edittable edit does not send updated value to edit

I'm trying to perform an update through the editfile of the firstfaces, but it does not send the updated inputtext value to the bean. The process occurs almost correctly, the value is sent and updated, but the old value, already loaded into the...
asked by 09.10.2016 / 22:14