2 Replies Latest reply on May 10, 2009 2:31 PM by Andreas Koch

    rerender works only once

    Andreas Koch Newbie

      I want to do some ajax action on a page. First link adds 2 more links to a dav. The 2 links should change the content of a second div. But only when I cklick first time on either of one of the 2 links the second div changes.
      <a4j:form>
      <a4j:commandLink action='#{tb.setValue("reset")}' reRender="overViewDiv,details" value="reset" />
      <a4j:commandLink action='#{tb.setValue("overview")}' reRender="overViewDiv" value="overview" />
      <a4j:outputPanel layout="block" id="overViewDiv" >
      <a4j:commandLink action='#{tb.setValue("33")}' reRender="details" rendered='#{tb.value eq "overview"}' value="__set tb to 33__" />
      <a4j:commandLink action='#{tb.setValue("44")}' reRender="details" rendered='#{tb.value eq "overview"}' value="__set tb to 44__" />
      <s:fragment >
      </s:fragment>
      </a4j:outputPanel>
      <a4j:outputPanel layout="block" id="detailsDiv" >
      Value: <h:outputText id="details" value="#{tb.value}"/>
      </a4j:outputPanel>
      </a4j:form>
      click on overview - click on one of 2 links.
      tb is a Seam Bean

      I use
      - SEAM 2.1.2 CR1
      - Rich faces 3.3.1 (also tested with 3.3.0)
      - JBOSS 4.2.2.GA

      What do I wrong?
      Andreas