8 Replies Latest reply on Nov 5, 2007 6:03 AM by Claudiney Calixto da Silva

    How to update the browser title with A4J?

    Claudiney Calixto da Silva Newbie

      Hi,

      I am trying to update the browser title with A4J.

      I am using in my project: JSF, Facelets, A4J, Rich Faces and Tomahawk.

      My code is not working and I do not know what are wrong. Someone can tell where is my mistake?

      Below is my code:

      1. Defining a ajax panel

      ...
      <head>
       <a4j:outputPanel ajaxRendered="false" id="panelTitulo">
       <title><h:outputText value=" #{myBean.title}" /></title>
       </a4j:outputPanel>
      </head>
      ...
      




      2. Code where I have a like that calls a backing bean. This function changes the value of myBean.title.

      ...
      <a4j:commandLink value="Test Link" action="#{myBean.changeTitle}" reRender="panelTitulo" />
      ...
      



      Thanks in advance!!!!

      Claudiney
      Programmer, Brazil