JSF a4j:commandLinkコンポーネントはa4j:repeat内では機能しません

StackOverflow https://stackoverflow.com/questions/1650732

  •  22-07-2019
  •  | 
  •  

質問

JSFテンプレートにこのようなコードがあります:

    <h:form>
    <table id="users" cellspacing="0">
    <a4j:repeat var="person" value="#{personList}">
    <tr>
    <td class="col1">
    <a4j:commandLink 
disabled="#{!canCreatePerson}" 
styleClass="#{canCreatePerson ? '' : 'inactive_link'}" 
action="#{adminPageController.create}"  
reRender="user-dialog-region" 
timeout="5000" 
limitToList="true" 
ignoreDupResponses="true" 
title="#{canCreatePerson ? messages['edit_user'] : ''}" 
onclick="if (!ajaxSubmissionAllowed) {return false;} 
ajaxSubmissionAllowed=false;" 
oncomplete="ajaxSubmissionAllowed=true;"> 
<h:outputText id="userName" value="#{person.name}"/>
</a4j:commandLink>
    </td>
    </tr>
    </table>
    </h:form>

これはa4j:repeatタグの外では完全に機能しますが、テンプレートに実装されているようなa4j:repeat内ではアクションは実行されません。

役に立ちましたか?

解決

問題は、変数personListのSCOPE型にあり、CONVERSATIONでした。PAGEに変更した後、すべてが正常に機能します。 SEAMからエラーが表示されなかったことは奇妙です。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top