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