Question

I have the following code working, the objective is simple: execute the action, then open the modalpanel, it's working, but the action is only executed one time, after that the modalpanel is opened without the action being executed.

<h:form>
  <ui:repeat id="al11" var="albumslistvalue1" 
  value="#{AlbumDetailBean.getAlbumImagesList()}">
    <a4j:commandLink id="link" action="#{AlbumDetailBean.mudaIdatual()}" 
    reRender="link, panel" 
    oncomplete="javascript:#{rich:component('panel')}.show();">
      <f:param value="#{albumslistvalue1.id}" name="idfotoatual"/>
      <h:graphicImage id="image" 
      url="#{albumslistvalue1.albumimagename}"/>
    </a4j:commandLink>
  </ui:repeat>
</h:form>

I'm stuck on this for a long time, any ideas on what I'm doing wrong or maybe forgetting?

Était-ce utile?

La solution

The common cause of this is because there are some validation errors on your page, to get them all you can use h:message and h:messages to see if there are validation errors.

You can check this thread for detailed info, specially item number #4. Jsf Action not being called

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top