Dear All,
I happen not to understand this concept in ADF. Being a newbie I would like to know
the rationale behind this.
I have use af:foreach components and then I bind it in my managed bean below.
<af:panelTabbed id="pt1">
<af:forEach var="item" items="#{testBean.departmentsData}">
<af:showDetailItem text="#{item}" id="sdi1"/>
</af:forEach>
</af:panelTabbed>
public class TestBean {
public List getDepartmentsData() {
System.out.println("I was clicked!!!!");
List lstData = new ArrayList();
lstData.add("IT");
lstData.add("Finance");
lstData.add("Accounting");
return lstData;
}
}
On first load, it prints 7 times of "I was clicked".
When I clicked any of the tab, I get 7 times again which means my method was called 7 times.
Any reason behind this.? Thanks.
I used JDEV PS3 by the way.