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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:52:53+00:00 2026-06-06T15:52:53+00:00

I need to create a custom component which consist of a drop down box,

  • 0

I need to create a custom component which consist of a drop down box, tree and a display panel for the details a selected item of a node.

This UI component will be a popup for users to select some items and add to the backing bean.
(It can be use to select shirts, cars or anything that fit the level and tree data)

May I know is there any good read up best practice when it comes to creating custom component for multiple usage.

After brain storming I have identify the following problems.

1) How to pass back the selections to the backingbean?
Possible solution: implement observer pattern for the custom component so when user click [OK] it will pass back the value to the backing bean before closing the custom component

2) The display of details of the selected node. (Different type of items can display differently)
Possible solution: I might consider using UI:Include but I am thinking of a more elegant solution

Any other issues????

Any help?

  • 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-06T15:52:55+00:00Added an answer on June 6, 2026 at 3:52 pm

    I’ll ignore the ICEfaces part in the question as I don’t use it.

    1) How to pass back the selections to the backingbean?

    Provide a value attribute wherein you can just specify the bean property. Easiest is to let your custom component extend UIInput which provides this attribute already.


    2) The display of details of the selected node. (Different type of items can display differently) Possible solution: I might consider using UI:Include but I am thinking of a more elegant solution

    You could provide support for specific <f:facet>s. In the encodeChildren() of the component or its renderer you can get them by UIComponent#getFacet().

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

Sidebar

Related Questions

I need to create a menu component in which each menu item looks like
Need to create a custom DNS name server using C which will check against
I need to create a custom constraint annotation which can access the value of
I need to create a custom, reusable view component. I've been trying to look
I need to create one textfield custom components which accepts only credit card number
I need to create a custom Component with JSF 2.0 (not composite component), that
I need to create a custom GUI Component about same like shown in the
I need to create a custom component in Flex 4.5 by extending the spark
I need create custom dialog and put JPanel into it. Is it possible?
I need to create a custom URI scheme for my project. i.e urn:myprotocol:{p1}:{p2}:{p3}:{p4} -

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.