2009-10-30 42 views
1

我有這樣的代碼在我的JSF模板:JSF A4J:commandLink組件不裏A4J工作:重複

<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:重複標記,但沒有行動進行內部A4J:重複就像它在我的模板中實現一樣。

回答

0

的問題是範圍型變量personList的,它的談話,我已經把它改爲PAGE後一切工作正常。 奇怪的是,我沒有看到SEAM的任何錯誤。