1

我的 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 内部没有执行任何操作,就像它在我的模板中实现的那样。

4

1 回答 1

0

问题出在变量 personList 的 SCOPE 类型中,它是 CONVERSATION,在我将其更改为 PAGE 后一切正常。奇怪的是我没有看到 SEAM 的任何错误。

于 2009-10-30T19:00:02.023 回答