Questions tagged as 'jsf'

1
answer

How to sort a JSF ui: repeat tag correctly

I have a code but in the view in the view it is leaving unconfigured. <ui:define name="conteudo"> <h:form id="content"> <ui:repeat value="#{mbProduto.resultado}" var="prod"> <...
asked by 28.09.2014 / 19:30
1
answer

How to know the order of execution of the methods of the components in JSF

How do I find out the order of running methods in jsf ? My question is based on the following, one time a button was firing late a method as it had not chosen the button method correctly. In this link the guy responds to the execution seq...
asked by 07.03.2014 / 01:58
1
answer

Follow the SQL output in Java

My application in java for web gives the error of SQL Syntax several times, but only indicates a trick of the SQL script that gives error. Is there any way I can see the full script that was "played" in MySQL that gave error? Li...
asked by 15.07.2014 / 01:17
1
answer

JPA returning Object other than the class object type

The following query returns java.lang.ClassCastException: [Ljava.lang.Object; can not be cast to br.com.satisfacer.model.Customer public List<Cliente> teste(Cliente cliente) { return manager.createQuery("from Cliente c join c.compras...
asked by 27.08.2018 / 00:48
1
answer

Transfer objects between methods in a bean

I'm developing a web application using the framework bootsfaces in Java WEB On one of my screens I have a datafile of bootsfaces that when one of the lines is clicked, is selected by activating the method selectUser. This method receives a...
asked by 30.08.2017 / 14:50
2
answers

bootstrapValidator.js with jsf does not work

My validation script using bootstrapValidator.js <h:outputScript library="primefaces" name="jquery/jquery.js" target="head" /> <h:outputScript library="primefaces" name="jquery/jquery-plugins.js" target="head" /> <script ty...
asked by 08.11.2016 / 15:10
1
answer

PanelGrid does not divide columns with Repeat

I have a panelgrid that I can not in any way divide into a ui: repeat columns, whatever the amount. <h:panelGrid columns="2" > <ui:repeat var="p" value="#{cadSetor.campos}" > <p:commandLink actionListener="#{telaL...
asked by 29.06.2016 / 03:58
1
answer

How to update a form with ui: repeat without duplicating oc fields in jsf?

I have a problem with my ui: repeat components, I want to update and not repeat the components, how? My form: <h:body> <h:form > <h:outputLabel class="col-sm-2 col-sm-2 control-label" value="CEP" />...
asked by 02.11.2016 / 23:12
2
answers

How to sort a p: dataTable

How do I sort a datatable by a text. For example my system is a system of order of services, I need the orders "Open" to come first. Follow the datatable code below. I tried sortby but it did not work. This is my listAll: public List<...
asked by 14.04.2016 / 13:12
1
answer

Instantiate annotated class with Hibernate inheritance using CDI

Good afternoon, I am creating a project using JSF , CDI , Bootstrap and Hibernate . I would like to know how to work with the following problem, I created a set of classes to represent a person entity física...
asked by 30.03.2016 / 18:16