Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7932265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:57:48+00:00 2026-06-03T20:57:48+00:00

When navigating from one page to another the doesn’t update in my pages. Can

  • 0

When navigating from one page to another the doesn’t update in my pages.
Can anyone tell me why?

The setup:

Page a.xhtml:

<html
        xmlns="http://www.w3.org/1999/xhtml"
        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:ice="http://www.icesoft.com/icefaces/component">
    <h:head>
    <ui:insert name="stuffToInclude">
    </ui:insert>
    </h:head>
    <h:body>
    ....
    </h:body>

Page b.xhtml:

<html xmlns="http://www.w3.org/1999/xhtml"
    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:c="http://java.sun.com/jsp/jstl/core"
    xmlns:ice="http://www.icesoft.com/icefaces/component">

<ui:composition template="/a.xhtml">


    <ui:define name="stuffToInclude">
        <meta name="description" content="pierre" />
        <title>
            <ui:insert name="title"/>
        </title>
    </ui:define>

    </h:head>

Page c.xhtml:

<html xmlns="http://www.w3.org/1999/xhtml"
    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:ice="http://www.icesoft.com/icefaces/component">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    </h:head>
    <h:body>
        <ui:composition template="/b.xhtml">
    <ui:define name="title">
       <ice:outputText id="title" nospan="true" value="C Title" />
    </ui:define>
        .....
    </h:body>
</html>

Navigation to page c.jsf is done this way:

FacesContext.getCurrentInstance().getViewRoot().setViewId("c.xhtml");

The problem is that the “TITLE” element does not update to the new title. It keeps the value from the first page that I was on before going to c.xhtml.
It seems that the whole “HEAD” element isn’t loaded for the new page.
Suggestions?

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T20:57:49+00:00Added an answer on June 3, 2026 at 8:57 pm

    We have now change the way we navigate to pages.
    Now we’re using:

    FacesContext.getCurrentInstance().getExternalContext().redirect(getViewId());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whenever we redirect from one page to another page, Query string can be used.
I have two pages that inherit from one master page, First.aspx or second.aspx. Navigation
i have faced some problem while navigating from one class to another with the
Initially I am navigating from one to another XAML class like this (for example,
I need a progressbar in between two jframes;ie while navigating from one jframe to
I'm having trouble navigating to a different controller view from another controller action. e.g.
My page has two 'tabbed' navigation sections. Both independent of one-another, but resulting in
I know how to navigate from one pivot item to another, within the pivot
I am developing an app where i am navigating from different pages Particularly in
I have a page, with a navigationbar that loads content, from another page, into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.