My setup is the following: I have a composite component (taskEntry) inside another (taskList).
<ul class="tableView">
<ui:repeat value="#{cc.attrs.taskList}" var="task">
<jid1:taskEntry task="#{task}" />
</ui:repeat>
</ul>
The task entry is defined as:
<li>
<h:outputText value="#{cc.attrs.task.title} " />
<h:commandLink actionListener="#{cc.attrs.taskBean.toggle(cc.attrs.task)}">
<f:ajax execute="@this" render="??" />
</h:commandLink>
</li>
Can you suggest which Id I should render?
If I define an 'id' inside the 'li' (eg. a panelGroup), first ajax call works as expected, second call does nothing, third one gives me an JS error. Adding a panelgrid to surround the 'li' does not render the panelgrid definition at all. I do not want to re-render the whole list, just the jid1:taskEntry
The error I get at the 3rd click is:
java.lang.IllegalStateException: Component ID j_idt37:j_idt52:j_idt55:j_idt61 has already been found in the view.