2009-10-30 4 views
1

J'ai un tel code dans mon modèle JSF:JSF a4j: composant commandLink ne fonctionne pas à l'intérieur a4j: répéter

<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> 

Cela fonctionne parfaitement en dehors de la a4j: tag répétition, mais aucune action PERFORMs à l'intérieur a4j: répétition comme c'est implémenté dans mon template.

Répondre

0

Le problème était dans le type SCOPE de la variable personList, c'était CONVERSATION, après que je l'ai changé à PAGE tout fonctionne bien. Il est étrange que je n'ai vu aucune erreur de SEAM.

Questions connexes