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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:57:27+00:00 2026-06-18T09:57:27+00:00

I decided to use wizard component. link on this component I have condition that

  • 0

I decided to use wizard component.link on this component

I have condition that instead of checkbox “Skip to last” I should use button. If I press on this button it’s ok, but when I go to penult tab I want generate content of confirmation tab,

public void generatePreview() {

        for (CompetitionTypeBean competitionType : competitionTypeList) {
            if (competitionType.getId().equals(competitionTypeId)) {
                tournamentBean.setCompetitionTypeBean(competitionType);
            }
        }
 if (teamList != null && !teamList.isEmpty()) {
            List<TeamBean> teams = new ArrayList<TeamBean>();
            for (TeamBean team : teamList) {
                for (Long teamId : teamListSelected)
                    if (team.getId().equals(teamId)) {
                        teams.add(team);
                        break;
                    }
            }
            tournamentBean.setTeams(teams);
        }
    }

it means that I should set skip in true for that I decide to write js function which will work on onnext event of wizard

<script type="text/javascript">
        function setHiddenValue(formId, componentId, new_value) {

            var tabId = 'competitionId';
            if (tabId != 'predLast') {
                document.getElementsByName('wiz').next();
            } else {
                var fullComponentId = formId + ":" + componentId;
                document.getElementById(fullComponentId).value = new_value;
            }
        }
    </script>

And there I find new problem

First I don’t know as I can get current Tab Id. And second I don’t how with help js make next event for wizard document.getElementsByName('wiz').next();. I try to see generated html code. Every tab is <li> and when this tab is selected in css style that li add ‘ui-state-hightlight’

Maybe I try to develop cycle. But I can’t find other solution.

  • 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-18T09:57:29+00:00Added an answer on June 18, 2026 at 9:57 am

    I just add next rows in handler

    public String onFlowProcess(FlowEvent event) throws Exception {
            if ((skip == true)) {
                skip = false;   //reset in case user goes back
                generatePreview();
                return CONFIRM_TAB_ID;
            } else {
                String newTab = event.getNewStep();
                if (CONFIRM_TAB_ID.equals(newTab)) {
                    generatePreview();
                }
    
                return newTab;
            }
        }
    

    I think that using constant CONFIRM_TAB_ID it’s normal, because I never decide to change this tabId.

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

Sidebar

Related Questions

I've decided to use this.variableName when referring to string/int etc.. fields. Would that include
I have decided to use postgre instead of sql server. My only problem is
I have decided to use a layout addon in my Vaadin project which is
I have decided to use a silverlight player on my ASP.NET WebApp ,I haven't
I have decided to use SubSonic (v3.0) for the first time and thoroughly enjoy
I decided to use UIScrollView in my application since I have to scroll the
We decided to use mongodb for some web application (instead of mysql) but want
I have decided to use Netbeans and Mercurial for my latest project (after no
Should I use _activity = this; ? I've seen _activity referenced many times in
I decided to use jquery to create the duplicate of dropdown menus instead 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.