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

  • Home
  • SEARCH
  • 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 6567239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:18:47+00:00 2026-05-25T14:18:47+00:00

I just started out using JSF 2.0 but I found myself mixing JSF tags

  • 0

I just started out using JSF 2.0 but I found myself mixing JSF tags with standard HTML tag
to achieve the desired layout.
Although I am using the facelets to layout my pages, but I think I cant help but mix components.

<ui:define name="content">
    <h:form>
        <h:commandButton value="Search" action="#{myBean.handleSearch}"/>
        <h:commandButton value="Reset" action="#{myBean.handleReset}"/>
        <div>
            <!-- Some JSF component -->
        </div>

I have been thinking if I have been running into bad practice. Any source of info for this?
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-05-25T14:18:48+00:00Added an answer on May 25, 2026 at 2:18 pm

    This is not a bad practice. This is perfectly fine. The only reason to use a JSF component is to have access to it in the JSF component tree. It would be a more poor practice to use <h:panelGroup layout="block"> instead of <div> here. But if it was a container of which you’d like to ajax-update its content, then a <h:panelGroup id="foo" layout="block"> would have been perfectly fine as would an ‘html5-friendly’ <div jsf:id="foo"> with the xmlns:jsf="http://xmlns.jcp.org/jsf" namespace.

    For a bit of history, you may find this useful: JSF vs HTML(JSP) for enterprise portals UI layer. Which one to Choose? and WHY?

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

Sidebar

Related Questions

I just started out using IronRuby (but the behaviour seems consistent when I tested
Just started using App Engine's webapp framework, but I can't figure out what's wrong
I've just begun using mutt (what started out as slowly stripping myself of GUI
I just started out using wordpress as a CMS. On the site I have
I just started using XStream Annotations, and I am trying to figure out how
I've just started using Git and I love it, but I have had an
I've only just started using Vagrant and Chef, but Im getting what I think
Problem: I just started out in node.js and when using REPL to require a
I've just started using git and while it is relatively easy to find out
I've just started out using ASP.NET MVC and TDD. I've read that while unit

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.