2 Replies Latest reply on Nov 4, 2010 9:58 AM by maru sc

    How to add page title individually

    maru sc Newbie

      Hi all,

      I am using seam 2.2.0 and Icefaces 1.8.2 and i have the following question

      How to add page title individually.
      For Example : 1) if i am in the login page the login page title should be like welcome to Login page.
      2)if i am in the home page title of the home page should be like welcome to welcome to page.

      please let me know if anybody know this

      Thanks and Regards

        • 1. Re: How to add page title individually
          Vasilii Lukoyanov Newbie

          If I understand correctly <ui:param> tag should do what you want.

          in main template define:

                <ui:insert name="head"/>

          in the login template:

          <ui:composition xmlns="http://www.w3.org/1999/xhtml"
          then on login template:composition xmlns="http://www.w3.org/1999/xhtml"
          <ui:define name="head">
              <ui:define name="head">
                  <title>Login page</title>

          And so on in the other templates...


          Visit my website

          • 2. Re: How to add page title individually
            maru sc Newbie

            Thanks for reply Vasilii L.

            I have one main template and this template can be used in all the modules which i have

            My question is how do i get page title dynamically

            For Example: i have modules like Module-1 , Module-2 , Module-3

            if i am using Module-1 pages, i want page title should be dynamically changed based on the page action
            Example:if that is an Add page then title should be 'Add Page similarly 'View Page' , 'List Page'.......

            Thanks and Regards