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 7907251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:20:56+00:00 2026-06-03T11:20:56+00:00

I have seen examples of creating a Facelets page template where each defined region

  • 0

I have seen examples of creating a Facelets page template where each defined “region” is wrapped in a div tag with a defined id. Is it a best practice to wrap these regions in a div tag with a defined id? What are some practical examples of why someone might benefit from wrapping in a div tag with a defined id like the example below?

    <div id="header">
    <ui:insert name="header" >
        <ui:include src="/template/common/commonHeader.xhtml" />
    </ui:insert>
    </div>
  • 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-03T11:20:57+00:00Added an answer on June 3, 2026 at 11:20 am

    The practical benefit is more in the generated HTML. In this particular case, it’s just a semantic separation of the webpage’s “header”. You can then use pure CSS to style and position the entire header the way you want. You can then use pure JS to manipulate the entire header the way you want.

    Note that in HTML5 such a <div id="header"> should be replaced by a <header> element. But we’re not at the stage yet wherein over ~95% of the used browsers support HTML5.

    JSF/Facelets itself doesn’t care about this all. It’s after all “just” a HTML code generator.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen examples of ListView where each row has multiple view objects, like
I have seen many examples of creating a custom titlebar: http://zaman91.wordpress.com/2010/03/16/android-how-to-add-custom-title-bar/ Is there a
I have seen many examples of creating a WPF Toolkit DataGrid in XAML and
I have seen many examples in Delphi for creating Email sending applications, where we
I have seen examples of printing from a windows application but I have not
Greetings everybody. I have seen examples of such operations for so many times that
I have seen many examples, with many 'no, you missed something' comments. What is
I have seen oodles of examples to fix IE8's z-index insanity but none of
I have often seen code examples of delegate invocation being done as follows: `
I have seen lots of chat examples in Erlang but what about lists, like

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.