I'm new in JSF and PrimerFaces, and I'm having some problems trying to make p:commandLink work with ui:repeat.
I have a simple example in which I'm trying to update a h:ouputText tag using an actionListener in a commandLink, and it works as expected: when I click the link, the listener method is executed and the otuputText is updated.
Code: Select all
<p:commandLink update="display" actionListener="#{pprBean.savePerson}" style="margin-right:20px;">
<h:outputText value="Ajax Submit" />
</p:commandLink>
<p:panel id="display" header="Information" style="margin-top:10px;">
<h:outputText value="#{pprBean.userIdx}" />
</p:panel>
Code: Select all
<ui:repeat value="#{pprBean.employees}" var="employee">
<p:commandLink update="display" actionListener="#{pprBean.savePerson}" style="margin-right:20px;">
<h:outputText value="Ajax Submit" />
</p:commandLink>
</ui:repeat>