Question

J'ai ce code dans mon modèle 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>

Cela fonctionne parfaitement en dehors de la balise a4j: repeat, mais aucune action n’exécute à l’intérieur de a4j: repeat comme elle est implémentée dans mon modèle.

Était-ce utile?

La solution

Le problème était dans le type SCOPE de la variable personList, c’était CONVERSATION, après que je l’ai changée en PAGE, tout fonctionne bien. C’est étrange que SEAM n’ait signalé aucune erreur.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top