0 Replies Latest reply on Apr 14, 2008 12:24 PM by David Reed

    h:outputText not re-rendering along with everything else

    David Reed Newbie

      I have a simple xhmtl file that has an h:outputText in it that doesn't get re-rendered when a s:link right next to it does.

      I am using the following:

      JBoss 4.2.2 GA
      Seam 2.1.0 snapshot
      Facelets 1.1.14
      RichFaces 3.2.0

      Here is code in the xhtml file:

      <h:outputText value="Welcome, #{identity.username}!"
       rendered="#{identity.loggedIn}"/>
      <s:link view="/Logon.xhtml" value="Login"
       styleClass="menuButtonLink"
       rendered="#{not identity.loggedIn}"/>
      <s:link view="/Index.xhtml" action="#{identity.logout}"
       styleClass="menuButtonLink"
       value="Logout" rendered="#{identity.loggedIn}"/>
      <s:link view="/Index.xhtml" value="Home"
       styleClass="menuButtonLink"/>


      After a successful login where the identity.loggedIn is true, the logout link is shown, but nothing is shown for the h:outputText. Not even "Welcom, ".

      Am I missing something or do I need an extra a4j option inside of the h:outputText? This all happens after leaving the logon page and going to the index page even though both are using this same code as part of the north facelet xhtml file.

      Thanks,
      David