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

    How to add page title individually

    maruthyshetty

      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
      Maruthy

        • 1. Re: How to add page title individually
          v.lukoyanov

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


          in main template define:


             <head>     
                ....
                <ui:insert name="head"/>
             </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"
              xmlns:s="http://jboss.com/products/seam/taglib"
              xmlns:ui="http://java.sun.com/jsf/facelets"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:rich="http://richfaces.org/rich"
              xmlns:a="http://richfaces.org/a4j"
              template="layout/template.xhtml">
              
          <ui:define name="head">
              <ui:define name="head">
                  <title>Login page</title>
              </ui:define>
          
          



          And so on in the other templates...


          --------


          Visit my website

          • 2. Re: How to add page title individually
            maruthyshetty

            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


            Maruthy