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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:19:34+00:00 2026-06-07T07:19:34+00:00

I am looking for a JSF 2.0 Component that is just an container for

  • 0

I am looking for a JSF 2.0 Component that is just an container for other components but do not produce own HTML elements.

My situation is that I have an (already styled) jsf-xhtml component page. Now I need to disable a lot of the rendering.

<ui:component>
    <h:panelGroup layout="block" rendered="#{not empty user.registrations}">...</>
    <h:panelGroup layout="block" rendered="#{not empty user.registrations}">...</>
    <h:panelGroup layout="block" rendered="#{not empty user.registrations}">...</>
    <h:panelGroup layout="block" rendered="#{not empty user.registrations}">...</>
</ui:component>

But I do not want to specify the rendered="#{not empty user.registrations}" fore times. Instead I want to wrapp it with some component like:

<ui:component>
    <xxxx  rendered="#{not empty user.registrations}">
        <h:panelGroup layout="block">...</>
        <h:panelGroup layout="block">...</>
        <h:panelGroup layout="block">...</>
        <h:panelGroup layout="block">...</>
    </xxxx>
</ui:component>

Because the page is already styled (and I fear that this is done in a fragile way) I need an jsf-component (xxxx) that does NOT produce own html elements like div or so.
Does such an jsf-component exit?

  • 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-07T07:19:36+00:00Added an answer on June 7, 2026 at 7:19 am

    You can use

    <ui:fragment rendered="#{not empty user.registrations}">
    

    http://javaserverfaces.java.net/nonav/docs/2.1/vdldocs/facelets/ui/fragment.html

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

Sidebar

Related Questions

I'm just getting into Seam/JSF development and looking for a way to lookup the
I'm very new to JSF and i'm looking for a pure configuration of JSF
Looking for a control that allows to select one text value at a time
Hi I'm looking for a simplified overview of EJB3 components. I seem to understand
We're looking for a way to implement subtables in JSF 1.1. We cannot use
I'm just starting to work with JSF and Facelets and I've put together a
I am completely new to JSF, and just attempting a proof of concept to
I have tried looking, and its just getting silly. I am running Glassfish 3.1.1,
i am looking for a free Webhost for JSF sites.. unfortunately i didn't find
I'm looking for an easy way to call a bean's method that will take

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.