繁体   English   中英

JSF a4j:commandLink组件在a4j:repeat中不起作用

[英]JSF a4j:commandLink component doesn't work inside a4j:repeat

我的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 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM