Questions tagged as 'jsf'

1
answer

Get project path

I have a JSF project and would like to return the project path in String . This path must take the webapp folder to be root. How do I do it?     
asked by 03.01.2018 / 15:20
1
answer

Update in a dialog outside the tab

Hello everyone I'm trying to make an update to appear a dialog dlgPages and does not appear when clicking the search button. <p:dataTable id="tabelaPagamentos" var="pagamentoAux" widgetVar="tabelaPagamentosWdg" value="#{criticaI...
asked by 03.01.2018 / 12:24
0
answers

Primefaces Wizard skips the tab without validating fields

I created a javascript function to validate form fields made up of the <p:wizard> component of Primefaces. The function is called through the onnext="" event of the <p:wizard> , that is, only when the person click...
asked by 03.01.2018 / 22:36
0
answers

How to improve performance of ajax update? JSF

I'm developing a restaurant system and I have a dataGrid that updates the other. For example: I click on the class and update the product dataGrid. It works, but the result is a bit slow. I'm using a <h:commandLink> with updat...
asked by 14.12.2017 / 18:44
0
answers

Problem to convert with composite key in jsf, selecttonemenu

I'm doing a selectOneMenu where the itemvalue will be a compound key. Which will be separated by hyphen. However at the time of sending, the method getasobject is called several times, sending all items from my selectonemenu and not just the sel...
asked by 29.11.2017 / 17:14
0
answers

Error running JSF

I'm having an error in JSF that I can not figure out. It looks like it's with my DAO product or Product. This was happening when I was recording a product, now the project does not even open. Informações: visiting unvisited references Inform...
asked by 26.11.2017 / 23:51
2
answers

how to change the color in each selectitem of a selectOneRadio jsf

I have a selectOneRadio which has 3 options: Finishing, embargo and Shipping <h:selectOneRadio value="#{solicitacaoImpressaoBean.entrega.tipoGuia}" class="tipoGuia" > <f:selectItem itemValue="Acabamento" itemLa...
asked by 07.12.2017 / 13:18
0
answers

How to fix it in my code: Null Pointer Exception

My database has those responsible for "Supervisor" and "Manager" values. However, I make a search to get the Employees responsible and zero return. See my getResponsible method in my class " EmployeeDA.java ": public List<Empregado> getR...
asked by 01.12.2017 / 01:07
1
answer

How to display html content in a dataTable

I have the message field in an Editor that after inclusion is shown in a dataTable. <rich:editor value="#{solicitacaoImpressaoBean.solicitacao.mensagem}" toolbar="full" style="margin-bottom: 1em"> DataTable: <rich:dataTable id="...
asked by 06.11.2017 / 12:16
1
answer

Problem with JSF during form validation

I have a problem with the animal registration form: Here's the part of the diagram involved in the form relationship: TheproblemisthatwhenIamregisteringananimal,Icangetbythename,age,genderandtypeofanimal(whichinthiscaseisfromanothertable)...
asked by 03.11.2017 / 00:26