Primefaces モバイルの ap:dataList で ap:commandLink を機能させようとしています。
このスニペットでは、commandButton がメソッド内に入り、別のビューにリダイレクトされますが、commandLink はそうではありません。どうしてこれなの?
<pm:content id="resultsContent">
<h:form id="resultsForm">
<p:dataList type="inset" id="studyList" value="#{navigationBean.studies}" var="study">
<p:commandLink action="{navigationBean.individualStudy}" update=":studyView">#{study.styRefNum} - #{study.shortDesc}</p:commandLink>
<p:commandButton value="#{study.styRefNum} - #{study.shortDesc}" action="#{navigationBean.individualStudy}" update=":studyView" />
</p:dataList>
</h:form>
</pm:content>
@ManagedBean
@ViewScoped
public class NavigationBean {
public String individualStudy() {
System.out.println("in individualStudy");
return "pm:studyView?transition=slide";
}
}