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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:45:53+00:00 2026-05-25T20:45:53+00:00

I need to register an user and after that I would like to call

  • 0

I need to register an user and after that I would like to call a <rich:popupPanel> for example to show the error or successful message with an icon.

<rich:popupPanel id="popup" modal="false" autosized="true" resizeable="false">
    <f:facet name="header">
        <h:outputText value="Simple popup panel" />
    </f:facet>
    <f:facet name="controls">
        <h:outputLink value="#"
            onclick="#{rich:component('popup')}.hide(); return false;">
                X
            </h:outputLink>
    </f:facet>
    <p>Any content might be inside this panel.</p>
</rich:popupPanel>

How do I do that after the validation of the register process in my controller ?
I could call a <h:message>, but I think a popupPanel with some icon and the status message would be more appropriate to the user.

  • 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-25T20:45:54+00:00Added an answer on May 25, 2026 at 8:45 pm

    In general, you’d just set some (boolean) toggle or a specific object property in the bean’s action method which is then used in the rendered attribute of the containing component in question. Here’s an example with a simple boolean:

    private boolean success;
    
    public void submit() {
        // ...
    
        success = true;
    }
    
    public boolean isSuccess() {
        return success;
    }
    

    with

    <rich:popupPanel rendered="#{bean.success}">
         ...
    </rich:popupPanel>
    

    You can also set some object property and then check if it is not empty or null. E.g. when the User is successfully saved after registration and thus got an ID from the DB:

    <rich:popupPanel rendered="#{not empty bean.user.id}">
         ...
    </rich:popupPanel>
    

    Note: in the particular case of your <rich:popupPanel>, you can also use the show attribute instead of rendered attribute.

    <rich:popupPanel show="#{bean.success}">
         ...
    </rich:popupPanel>
    

    The only difference is that when show is false, the component is still rendered, but then with CSS display:none; so that it is visually hidden in the HTML DOM tree, so that you can redisplay it with just JavaScript.

    See also:

    • Conditionally displaying JSF components
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to develop a template-like user control, which would accept any arbitrary content,
I have a new service that I have written and need to register it
How to make activities that register BroadCastReceiver? Because I need to close all the
I have been trying to make a cash register like code, where the user
The set-up: I have an android application that so far can register a user
I need to create sub domain from code. For example my web site register
I would like to use the devise option :reconfirmable in my user model, so
I would like to understand how I can run client-side javascript after an update
I need to register a file type (e.g. .exex files) when my application is
i am developing register form using php where i need to upload the file

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.