Note that there are some explanatory texts on larger screens.

plurals
  1. POJSF2 & <ui:repeat> <ui:repeat> <h:commandLink> <f:param <f:ajax>
    text
    copied!<p>I have a problem with jsf2 &amp; combination of <code>&lt;ui:repeat&gt;</code> <code>&lt;ui:repeat&gt;</code> <code>&lt;h:commandLink&gt;</code> <code>&lt;f:param&gt;</code> <code>&lt;f:ajax&gt;</code> tags</p> <p>if i use one <code>ui:repeat</code> tag then i get my call on ajax listener method but not if there is a nested <code>ui:repeat</code> tag.</p> <p>Thank you</p> <p>i have a @PostConstruct to private LiferayDocument liferayFolderAktuell; private List liferayFoldersArchiv;</p> <p>this one WORKS - it sends an event to backingbeans method addToInfomappex</p> <pre><code> &lt;ui:repeat var="file" value="#{documentService.getFiles()}" &gt; &lt;h:form id="frm_#{file.documentId}"&gt; &lt;h:commandLink id="a_#{file.documentId}" class="addToInfo" data-tooltip="Zur Infomappe" alt="Zur Infomappe hinzufügen" &gt; &lt;f:param value="#{file.documentId}" /&gt; &lt;f:ajax event="click" listener="#{documentService.addToInfomappex}" /&gt; link &lt;/h:commandLink&gt; &lt;/h:form&gt; &lt;/ui:repeat&gt; </code></pre> <p>This one does not work - the are 2 ui:repeat tags - i get no event to the same method:</p> <pre><code>&lt;ui:repeat var="folder" value="#{documentService.liferayFoldersArchiv}"&gt; #{folder.title} &lt;ui:repeat var="file" value="#{documentService.getFiles(folder.documentId)}"&gt; #{file.title} &lt;h:form id="frm_#{file.documentId}"&gt; &lt;h:commandLink id="a_#{file.documentId}" class="addToInfo" data-tooltip="Zur Infomappe" alt="Zur Infomappe hinzufügen" &gt; &lt;f:param value="#{file.documentId}" /&gt; &lt;f:ajax event="click" listener="#{documentService.addToInfomappex}" /&gt; link &lt;/h:commandLink&gt; &lt;/h:form&gt; &lt;/ui:repeat&gt; &lt;/ui:repeat&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload