0

I have a JSF form like this:

<h:form id="myform">
    <ui:repeat value="#{managedBean.getData()}" var="step">

        <h:outputText value="#{step.someValue}" />

        <h:commandLink id="link_to_events" onclick="openLoaderModalBase();" > 
        <f:ajax listener="#{managedBean.actionMethod(step.someValue)}"  render="link_to_events" />
        </h:commandLink>

    </ui:repeat>
</h:form>

I would like to NOT submit the whole form when I click on my commandLink. If I click now on the link, my managedBean.getData() is invoked again, and it is take a while to be executed. I would like only invoke my actionMethod with the given paramter, and this method will redirect to another page.

I don't want to use PrimeFaces and I'm using JSF 2.2

Is this possible to do? Thank you!

Jasper de Vries
  • 16,868
  • 6
  • 60
  • 93
solarenqu
  • 756
  • 3
  • 14
  • 42

0 Answers0