Questions tagged as 'jsf'

1
answer

The life attribute of the Growl component works only the first time

We are running a project in JSF using PrimeFaces (v5.0) and have created a simple validation for blank fields in our form. The first time it is fired, the component performs the actions correctly. If the user again forgets some blank field, t...
asked by 04.04.2018 / 15:28
1
answer

requiredMessage not working in JSF selectOneMenu

I have the following requiredMessage <h:selectOneMenu class="form-control" id="selectOlhos" value="#{corpoController.corpo.corOlhos}" required="true" requiredMessage="Selecione uma opção."> <f:selectItem itemLabel="Escolh...
asked by 18.03.2018 / 16:54
2
answers

Doubts in SelectOneMenu Primefaces

I have a SelectOneMenu in my xhtml view. In it I have an onchange that on clicking calls a p: dialog to fill a form. Follow selectOneMenu <p:column headerText="Mecânica"> <div id="mecanicasAll">...
asked by 16.03.2018 / 19:04
1
answer

Browse rows from a javaEE, jsf2 and Primefaces dataTable with the arrow keys?

I found this code on the internet, but some of it has been discontinued xhtml: <p:hotkey bind="down" update=":testform:tabletest" action="#{aBean.moveDown()}" /> aBean: public void moveDown() { FacesContext facesContext...
asked by 16.03.2018 / 19:58
0
answers

Paging with criteria.distinct_root_entity

I'm developing Java web application and came across a problem. I have a n: n relationship between DateTime and DateTime and it is returning duplicate data when I make a query ... I can return the situation using criteria.setResultTransformer (Cr...
asked by 15.03.2018 / 20:35
0
answers

Filter Datatable Primefaces does not work with p: selectCheckboxMenu

Talk to people! I'm using the filter of datatable of primefaces itself but it is not working when I use it to filter p:selectCheckboxMenu . When I select one of the options it does not find anything. I used this example and I...
asked by 13.03.2018 / 00:21
0
answers

Duvida Dialog + SelectOneMenu JSF

Hello, I'm trying to open a dialog with a selectonemenu, depending on what the user selects. My SelectOneMenu is like this <p:column headerText="Mecânica"> <h:commandButton> <h:selectO...
asked by 20.03.2018 / 19:18
1
answer

Criteria to filter a string array list

I'm developing a Java Web application and came across a question. I have a relationship n: n between AgendaTriados and Indicacao thus forming the triados_indicacao. And when saved to the database, it saves a string array of the names of the indi...
asked by 05.03.2018 / 21:51
1
answer

Could not verify the CSRF token because your session was not found

I am using Spring security 4.2.3 and spring 4.2.5 when I run the login screen and the user registration screen works correctly when I ask to access the home screen. this error appears: messageCould not verify the provided CSRF token because yo...
asked by 05.03.2018 / 14:22
1
answer

Spring Secuirty dependency error

I am not able to adjust the dependencies of my Spring security, I tried to download the libraries 4.3.5 but could not deploy. I'm not using pom so I need help, my library: Error compiling: Grave: Context initialization failed...
asked by 02.03.2018 / 14:08