Questions tagged as 'jsf'

1
answer

Primefaces: EventBusFactory.getDefault () returns null

I am developing an application with Primefaces that uses the pub / sub model provided by this framework. Technology stack: tomcat 8 java 8 primefaces 6 atmosphere-runtime 2.4.7 In the web.xml file, I define the servlet for Pu...
asked by 13.10.2016 / 16:47
1
answer

How to filter accents in a selectCheckboxMenu of primefaces

I have a problem using the selectCheckboxMenu filter, since it does not filter the accents, for example I have this list. But when filtering for example the letter "a", only that character filters me and not the accented one. S...
asked by 20.04.2018 / 23:02
3
answers

what is the best way to not use many if?

I have a combo that is filled with a list, which has 29 elements, and each element by selecting it in the combo displays more fields, then I have the following conditions, what it does is validate which document you selected and render the input...
asked by 12.01.2018 / 16:46
4
answers

Error refreshing table in XHTML (Primefaces JavaWeb)

I have a problem loading a table from a MySQL database. The table is in PrimeFaces and loads the data from the database when I deploy the application. But when I modify a data, even though it loads it into the database, it does not show it in th...
asked by 07.06.2016 / 21:24
3
answers

Query database every X seconds

What I need to do is the following, I do not know why but if you update a data in database does not paint it at once in my view, I must run my project to see the update of the data. I would like to do a method that every 5 seconds consult the da...
asked by 06.06.2016 / 19:10
2
answers

JSF Primefaces: Bug when exporting selected rows (excel, pdf)

I have a table on which I can select several rows using a checkbox that would be the column selector : <p:dataTable value="#{cityBean.cities}" var="city" id="dt_cities" widgetVar="w_cities" filteredValue="#{c...
asked by 25.10.2016 / 13:54
3
answers

EmailValidator using apache.commons.validator does not correctly validate email

index.xhtml file where I specify the tag When I execute the application and enter the data and a correct email and click on save the validator tells me that it is an invalid format When I do not enter email (which should not be) the val...
asked by 16.01.2016 / 02:48
1
answer

How to prevent the keyboard from using an a4j: commandButton in jsf?

I have an a4j in the header of a web: commandButton which responds to some events caused from the computer keyboard, when I press the enter in the keyboard the action of said commandButton is launched, and when I press the delete button in the k...
asked by 02.03.2016 / 16:31
1
answer

Show image in Java from project directory

I'm doing a web project with JSF and PrimeFaces. When I save an image in the directory of my project and I want to use it at that moment, eclipse shows me this error saying that it does not find the specified route: I have to update the...
asked by 01.07.2016 / 19:29
4
answers

Action on primefaces does not redirect me

Home page: <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmln...
asked by 12.04.2016 / 21:58