JSF manual refresh issue

Posted by k.elgohary on Stack Overflow See other posts from Stack Overflow or by k.elgohary
Published on 2012-07-03T03:12:52Z Indexed on 2012/07/03 3:15 UTC
Read the original article Hit count: 282

Filed under:
|
|

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>

© Stack Overflow or respective owner

Related posts about jsf

Related posts about jsf-2.0