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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:41:15+00:00 2026-05-19T02:41:15+00:00

I am beginner in JSFUnit and related technologies. I was wondering: is it possible

  • 0

I am beginner in JSFUnit and related technologies. I was wondering: is it possible to change the url without creating a new JSFSession object? I.e. I would like to simulate the situation where the user types in a new address in his/her address bar.

Additional Information

The problem is that I have many links in my facelets page, that cannot be assigned ids because they are created inside a ui:repeat element.

Workaround

Use a cookie to restore the session between different JSFSessions

  • 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-19T02:41:15+00:00Added an answer on May 19, 2026 at 2:41 am

    Of course.

    You could have a button in your xhtml/jsp page. This button will lead to the requested page.

    For example, if you have login page, and the user would like to go to test page so in your JSFUnit write:

    jsfSession = new JSFSession("start.jsf");
    client = jsfSession.getJSFClientSession();
    client.click("Login");
    

    and in start.jsf page have:

    <h:form>
        <h:commandButton id = "Login" value="Login" action="#{loginBean.doLogin}"/>
    </h:form>
    

    where in your loginBean

    public void doLogin(){
       return "test.jsf";
    }   
    

    In this way you can simulate the same session for the user.

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

Sidebar

Related Questions

Beginner here. I have a class with a SoundPool object in it. I would
Beginner question: I would like to pass in window.location.hash to my form action parameter.
Beginner here, I have a simple question. In Android what would be the best
Beginner here See - http://www.w3schools.com/js/tryit.asp?filename=try_dom_tablerow_cells In this example, when change content is pressed, new
VS beginner question. How to change parent control of a control? Example. I have
I'm still beginner in PHP. I have a small problem, I would to multiply
I'm a beginner in jQuery area and I have simple question like this :
(R beginner here...) I have a dataset like: > head(q) Date Time System User
A beginner's Cygwin question here - I'd like to install a newer version of
A beginner question, bear with me: I'm just wondering under what circumstances one should

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.