Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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";
- }
- }
- <p:commandLink process="@this" action="#{navigationBean.individualStudy}" update=":studyView">
- <p:commandLink actionListener="#{navigationBean.individualStudy}" update=":studyView">
- <p:commandLink onclick="studyFunc()" />
- <p:remoteCommand name="studyFunc" update=":studyView" actionListener="#{navigationBean.individualStudy}" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement