commandLink not work primefaces mobile

83 Views Asked by At

primefaces mobile commandLink action does not work, it's not loading the page with id="station1". f:setPropertyActionListener is work and call setSelectedStation() method .

<pm:page id="fastStationPage">
    <pm:header title="Fast Charging Station" swatch="b" ></pm:header>

    <pm:content>
        <h:form id="stationsDetailsForm">
            <p:growl id="messages" showDetail="true" />
            <p:dataList value="#{navigationViewImpl.fastStationList}" var="station" type="ordered">
                <p:commandLink value="#{station.name}" action="pm:station1?transition=slide" update=":station1:stationDetail">
                    <f:setPropertyActionListener value="#{station}" target="#{navigationViewImpl.selectedStation}" />
                </p:commandLink>
            </p:dataList>
        </h:form>
    </pm:content>
</pm:page>

<pm:page id="station1">
    <pm:content>
        <h:outputText  id="stationDetail" value="#{navigationViewImpl.selectedStation.name}" escape="false"/>
    </pm:content>
</pm:page>

public void setSelectedStation(StationDTO selectedStation) {
    this.selectedStation = selectedStation;
}
1

There are 1 best solutions below

0
Lotes Silva On

I got answer. I not configure face-config.xml file. I am not add navigation-handler

<application>
    <navigation-handler>
        org.primefaces.mobile.application.MobileNavigationHandler
    </navigation-handler>
</application>