5 Replies Latest reply on Jun 6, 2007 1:51 PM by Alex Shlang

    How to rerender?

    Alex Shlang Newbie

      In the page i have following code:

      <a4j:form id="voteForm">
      <a4j:commandLink immediate="true" rendered="#{Video.mayVote}"
       id="voteButton" limitToList="true" reRender="voteButton, voteImageDisabled" actionListener="#{Video.addVote}">
      <h:graphicImage id="voteImage" url="img/votenow.gif"/>
      <f:param name="video" value="#{Video.ids}"/>
      <h:graphicImage id="voteImageDisabled" rendered="#{!Video.mayVote}" url="img/votenow_d.gif"/>

      After invoking actionListener method Video.mayVote() will return false. So link must disappear and image must be displayed. But nothing changed.
      Can anybody explain what is wrong?