0

I have a <p:commandLink> inside a <ui:repeat> in my xhtml page, my bean scope is set to 'View'. I am using JSF2.0 with primefaces 3.4. Here is the code snippet.

<ui:repeat value="#{bean.selectedJob.conversions}" var="conversion">
    <p:commandLink styleClass="contextMenuItem"
    update=":form:outputParent" immediate="true"
    action="#{bean.method()}"
    oncomplete="$('#outputFilterContextMenu').hide();">
<h:outputText value="#{conversion.convType}: #{conversion.convNodeName}" />
</ui:repeat>

but command link doesn't invoke the back end method. I have tried it with actionListener instead of action but that doesn't work either. Any help or suggestion will be highly appreciated. Thanks

Raptor
  • 53,206
  • 45
  • 230
  • 366
Ubaid Raja
  • 51
  • 1
  • 5

1 Answers1

0

When the commandLink is inside <ui:repeat>, the bean, which action is called, must be SessionScoped.

Mihai
  • 333
  • 1
  • 14