Here is the situation
I have the following dropdown defined with ajax4jsf event onchange
Code:
<h:panelGrid columns="3" styleClass="detail" columnClasses="label">
<h:outputText value="Manufacturer" />
<h:selectOneMenu id="manufList"
value="#{manufacturerBean.selectedManufacturer}" >
<f:selectItem itemLabel="New" itemValue="New" />
<f:selectItems value="#{manufacturerBean.manufacturerList}" />
<a4j:support
action="#{manufacturerBean.loadManufacturerDetails}" event="onchange"
reRender="manufName,manufDescription,manufSource,btnSave,btnDelete" />
</h:selectOneMenu>
</h:panelGrid>
The perfomance issue is
Whenever i pick a different value from the dropdown, i expect only ajax4jsf
action method is called i.e.
<a4j:support action="#{manufacturerBean.loadManufacturerDetails}"
event="onchange"
reRender="manufName,manufDescription,manufSource,btnSave,btnDelete" />
BUT why is the method defined in f:selectItems is getting called
twice as seen in log file
<f:selectItems value="#{manufacturerBean.manufacturerList}" />
Logs:
2007-05-04 14:16:31,694 INFO
[com.boeing.nmt.nams.view.bean.ManufacturerBean] - < *** In
getManufacturerList Backing Bean*** >
Any pointers/suggestions will be highly appreciated
Regards
Bansi
--
View this message in context:
http://www.nabble.com/Perfomance-Issues-with-JSF-dropdown-tf3694314.html#a10330594
Sent from the MyFaces - Users mailing list archive at Nabble.com.