Linked Questions
256 questions linked to/from Why JSF calls getters multiple times
7 votes
2 answers
11k views
Why is BackingBean method called multiple times when requesting facelet? [duplicate]
I'm working and learning about JSF + Facelets these days. I have a BackingBean and a Facelet xHTML page. When I request the facelet-page (only one time) the backing-bean-method is called multiple ...
0 votes
2 answers
556 views
c:forEach.items getting repetitively called [duplicate]
Environment: Seam, Richfaces The following code snippet causes the method getUsers to be called multiple times, how do I avoid this in my application so that it gets called only once. <c:forEach ...
1 vote
1 answer
935 views
JSF getter method called many times [duplicate]
I am using "c:forEach" in an xhtml in the following way: <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java....
0 votes
1 answer
1k views
Why does Table Component in ADF iterates many times over method bound to value attribute [duplicate]
In my ADF project , I have a table component on JSF page whose value attribute is bound to method in Managed bean which returns List type object . I am able to show the data on the table but i can see ...
0 votes
0 answers
808 views
JSF DataTable value get from method [duplicate]
Can I get value of DataTable in JSF from method that will return a list of objects instead of getting from getter of an attribute? FilmBean.java @ManagedBean(name = "filmBean") @SessionScoped public ...
0 votes
1 answer
701 views
Getter gets called as many times as there are values in ArrayList for h:dataTable and Eclipse says "Method must have signature "String method ..." [duplicate]
I'm really new to JSF, I've been learning it exactly 2 days now. Besides the initial confusion about the concepts, I have issues with eclipse too. I'm using JSF 2.0 with obviously Eclipse and Tomcat 7....
0 votes
1 answer
382 views
Did jsf <h:datatable> fetch data two times? [duplicate]
I'm using JSF 2.0. I wanted to use h:dataTable and I realized that the function from value in dataTable is invoked 2 times when I open view in browser. I'm confused with that and I don't know what I'...
0 votes
0 answers
430 views
ui:repeat within or inside ui:repeat not work [duplicate]
I have a problem using a <ui: repeat> inside another <ui: repeat>. Let's see the code to explain it better: <h:form> <ui:repeat value="#{myManagedBean.listDocsFather}" var="...
1 vote
1 answer
420 views
why values in <p:selectOneMenu> are duplicated after changing language in jsf? [duplicate]
I used for internationalization the JSF configuration, and I have a list of countries from the class Locale in <p:selectOneMenu>, but I am facing a problem of duplicate values of the countries ...
1 vote
1 answer
241 views
checkbox click executes many hibernate queries [duplicate]
I'm using Jboss. I have a bunch of checkboxes which I generated via a producer(@Named, @SessionScoped), the data comes from a mysql database (using hibernate). When I click a checkbox I print out (p:...
1 vote
0 answers
191 views
Why does ui:repeat make my application slow, and how can I fix it? [duplicate]
I have a primefaces wizard containing a ui:repeat, as follows: <p:wizard flowListener="#{reportWizard.onFlowProcess}" widgetVar="wiz" showStepStatus="false" showNavBar="false"> <p:tab id=...
0 votes
2 answers
101 views
Unexpected JPA SELECT statements logged when JSF page submitted [duplicate]
I'm using Glassfish Server 4.1 with bundled JSF. I've enabled JPA FINE logging in "persistence.xml". I have this Facelets page: <p:dataTable var="customer" value="#{customerService.customers}">...
0 votes
0 answers
51 views
Primefaces dataTable with commandButton send multiple request to hibernate [duplicate]
I am new with Primifaces and JSF framework I am using PRimefaces 5, JSF 2, Spring 4 and Hibernate 5 The problem that I am facing is that when adding a button into dataTable the number of request to ...
0 votes
0 answers
42 views
JSF Methods: multple calls without loading at startup [duplicate]
Currently, I try to make a game based on JSF 2.x with XHTML, JavaScript and Java as back-end. This game is round based with up to 6 players. Creating player (objects) and make some settings on it (...
0 votes
0 answers
40 views
load items for primefaces datatable - I need help to improve my code [duplicate]
I have currently the following code: <h:form id="activitiesListForm" rendered="#{activitiesRequestByObjectController.init('BOOKING_DATE', bookingDateEditController.bookingDate.id)}"> &...