У меня есть ссылка на команду jsf 1.2
<h:commandLink id="cars" action="${swapViewHandler.myFunction1}">
<h:commandLink id="ships" action="${swapViewHandler.myFunction2}">
myFunction1 заполняет swapViewHandler.listA автомобилями и переходит на cars.xhtml
<navigation-rule>
<navigation-case>
<from-outcome>cars</from-outcome>
<to-view-id>cars.xhtml</to-view-id>
<redirect />
</navigation-case>
myFunction2 заполняет тот же swapViewHandler.listA с кораблямии переходит на ship.xhtml
<navigation-rule>
<navigation-case>
<from-outcome>ships</from-outcome>
<to-view-id>hips.xhtml</to-view-id>
<redirect />
</navigation-case>
Мне нужно обработать обновление пользователя (F5), чтобы при вызове обновления в cars.xhtml вызывался myFunction1 и заполнял список listA (с автомобилями), а также когда ship.xhtmlобновляется myFunction2 вызывается и заполняет listA (с кораблями)
cars.xhtml и ship.xhtml имеют одинаковую основу (swapviewhandler)
, и они оба содержат
<c:forEach id="tablePicList" items="${swapViewHandler.listA}" var="entity" varStatus ="status">