JSF manual refresh issue
- by k.elgohary
I need your help .
i am developing a simple project with jsf2.0 and primefaces 3.2.
I have 2 pages first is the page1.xhtml whci contains :
<p:column>
<p:panel header="#{ct.coTypeName}" >
<h:panelGrid columns="1" width="100" height="100">
<h:outputText value="#{ct.coTypeId}" />
<p:commandLink action="distributer/distributersList.xhtml">
<h:graphicImage url="/resources/images/homePagecartoonBusinessMan.jpg" width="100" height="100"/>
<f:param name="bt" value="dist" />
<f:param name="ti" value="#{ct.coTypeId}" />
</p:commandLink>
</h:panelGrid>
</p:panel>
</p:column>
</p:dataGrid>
When i press The command link it forwarded me to another page "distributer/distributersList.xhtml" which have a selectOneMenu which doesn't show its items until i refresh the page manually .
<f:selectItems value="#{bussinessOwnersViewerMB.cities}" var="city" itemLabel="#{city.cityName}" itemValue="#{city.cityId}"/>
</p:selectOneMenu>