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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:48:08+00:00 2026-05-15T15:48:08+00:00

I am trying to creating a small wizard using jsf1.2 sun RI +richfaces. The

  • 0

I am trying to creating a small wizard using jsf1.2 sun RI +richfaces.
The user sets input data in multiple pages and in the end presses finish upon which the data is inserted in database.
The info is displayed as a row in a table with edit button.
when edit is clicked the data is populated in all the pages and user can edit and save it again.
Also while navigating back and forth the data must be persisted in the forms.
Currently i have implemented this by using multiple session scope beans that access each other’s data by looking its reference in session map and some are injected as dependencies.

i would like to know if there’s a standard way / good pattern of doing this by avoiding multiple session scope beans and doing lookups in session map?

if someone could throw a link to any blog/tutorial with similar example that would be great
many thanks

  • 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-15T15:48:09+00:00Added an answer on May 15, 2026 at 3:48 pm

    You can just make them properties of a single session scoped bean.

    public class Wizard {
        private Step1 step1 = new Step1();
        private Step2 step2 = new Step2();
        private Step3 step3 = new Step3();
        // ...
    }
    

    and use it as follows

    <h:form id="step1">
        <h:inputText id="input1" value="#{wizard.step1.input1}" />
        <h:inputText id="input2" value="#{wizard.step1.input2}" />
    </h:form>
    
    ...
    
    <h:form id="step2">
        <h:inputText id="input1" value="#{wizard.step2.input1}" />
        <h:inputText id="input2" value="#{wizard.step2.input2}" />
    </h:form>
    
    ...
    

    This way you just have instant access to everything from inside the action methods.

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

Sidebar

Related Questions

I'm creating a small server using java.nio , but when trying to stress test
I have started creating small applications in Java using Net-beans, i was trying to
I am creating a chat using Ajax requests and I'm trying to get messages
I am considering creating my own website using Java and am trying to decide
So I am trying to learn SDL and creating a small game. When the
I'm creating a small vb.net application, and I'm trying trying to write a list
I've been trying to write a small library using Thor to help assist me
Am trying to execute ssis package using dtexec utility from c# app(Creating New Process,
I'm currently creating a very small form on my homepage using HTML and JavaScript.
I am trying to create a small Java application using Tomcat and am having

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.