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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:10:39+00:00 2026-05-26T01:10:39+00:00

I have a togglepanel and a a4j commandButton, I would like to submit the

  • 0

I have a togglepanel and a a4j commandButton, I would like to submit the form and next page on complete.

But It is not working, it won’t next page but submit only. Here is the code.

<a4j:commandButton action="#{inputData.inputId}" value="Next">
  <f:param name="id" value="#{userBean.id}" />
  <rich:toggleControl targetItem="@next" event="complete"/>
</a4j:commandButton>

I tried oncomplete=”#{rich:component(‘tooglepanelid’)}.next();” too, not working too.. where can i find the togglepanel api doc ?

  • 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-26T01:10:40+00:00Added an answer on May 26, 2026 at 1:10 am

    You can find the API here: http://docs.jboss.org/richfaces/latest_4_X/vdldoc/

    togglepanel: http://docs.jboss.org/richfaces/latest_4_X/vdldoc/rich/togglePanel.html

    Although be warned it is still work in progress.

    If you change the event to a click does it work? I don’t think complete is a valid value as oncomplete is not a valid JS event for the ‘parent’ component. But not sure…

    Also try putting in a messages tag to see if there are any errors.

    As for this:

    I tried oncomplete=”#{rich:component(‘tooglepanelid’)}.next();”

    I don’t think next() is valid JS function for that toggle panel, based on the RF component reference documentation these functions look to be the ones you need to use:

    The <rich:togglePanel> component can be controlled through the
    JavaScript API. The JavaScript API provides the following functions,
    which are common to all switchable panels:

    1. getItems() Return an array of the items contained in the toggle panel.
    2. getItemsNames() Return an array of the names of the items contained in
      the toggle panel.
    3. switchToItem(itemName) Switch to and display the
      item identified by the itemName string passed as a parameter.
    4. firstItem(), prevItem(), nextItem(), lastItem() Switch to and display
      the first item, the previous item, the next item, or the last item.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have you seen library for flexible working with terminal(Unix like)? I want to implement
Have a problem with fscanf() - it does not skip to the next word
Have looked so long for a library specialized in dealing with iPhone Accelerometer but
I have the following code (Yes I know it's quite long winded, but I
have such zend query: $select = $this->_table ->select() ->where('title LIKE ?', '%'.$searchWord.'%') ->where('description LIKE
Have a look at the menus on this page: http://www.pieterdedecker.be/labs/vspwpg/?page_id=96 They look okay in
Have set up a small website for a client however contact form submissions are
Have been searching all over the internet but struggling to find my answer to
have tried a few different approaches to this but with no success so far.
Have you ever tried working with a XAML file which contains thousand tons of

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.