<h:commandLink id="cars" action="${swapViewHandler.myFunction1}">
<h:commandLink id="ships" action="${swapViewHandler.myFunction2}">
myFunction1 자동차와 swapViewHandler.listA을 채우고
<navigation-rule>
<navigation-case>
<from-outcome>cars</from-outcome>
<to-view-id>cars.xhtml</to-view-id>
<redirect />
</navigation-case>
myFunction2는 웁니다 cars.xhtml로 이동합니다 JSF 1.2 명령 링크가 새로 고침을하는 방법을 선박과 와 같은 swapViewHandler.listA는 ships.xhtml로 이동합니다
<navigation-rule>
<navigation-case>
<from-outcome>ships</from-outcome>
<to-view-id>hips.xhtml</to-view-id>
<redirect />
</navigation-case>
새로 고침이 일어날 때 cars.xhtml myFunction1이 호출되어 listA (자동차와 함께) 을 다시 채우고 ships.xhtml이 새로 고쳐지면 myFunction2가 호출되어 listA (배송 포함)가 다시 채워지도록 새로 고침 (F5)을 처리해야합니다.
cars.xhtml 및 ships.xhtml는
같은 backingbean (swapviewhandler)가 그들 모두는 자신의 백업 콩을 가져야한다
<c:forEach id="tablePicList" items="${swapViewHandler.listA}" var="entity" varStatus ="status">