Can anyone tell me why relationBean getSusgs method gets called getSusgs.size() times? :) (getSusgs loads a List of objects from database on first call and from instance variable after. relationBean scope is request)
Code:
<ice:selectOneRadio id="susg" styleClass="modal-select data2" layout="spread" value="#{relationBean.susgRefNum}">
<c:forEach var="susg" items="#{relationBean.susgs}">
<f:selectItem id="si#{susg.susgRefNum}" itemValue="#{susg.susgRefNum}" itemLabel=""/>
</c:forEach>
</ice:selectOneRadio>
<ice:dataTable value="#{relationBean.susgs}" var="susg" styleClass="modal-select data2" columnClasses="w1p noclass" varStatus="varStatus" columnWidths="13px,100px,auto">
<h:column><ice:radio for="susg" id="s#{susg.susgRefNum}" index="#{varStatus.index}"/></h:column>
<h:column>
<f:facet name="header">
<h:column>#{ef:t_p('label-number')}</h:column>
</f:facet>
<ice:outputLabel value="#{susg.senuMobileNum}" for="s#{susg.susgRefNum}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:column>#{ef:t_p('label-user')}</h:column>
</f:facet>
<ice:outputLabel value="#{susg.suinName}" for="s#{susg.susgRefNum}"/>
</h:column>
</ice:dataTable>
This is the only place in my code where getSusgs method is used.