[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

JSF 2.0 (MyFaces and WAS8.0) one browser data displaying in different browser and both browsers are in different systems

Posted on 2012-09-09
8
Medium Priority
?
579 Views
Last Modified: 2012-09-12
I am using JSF2.0 MyFaces2 on WebSphere Application Server 8.0 and I am using @RequestScoped
Now when i entered value in a form in any browser (IE, Firefox,..), same data i can see in another browser. Both browsers are in two different systems.

Can please anyone help me to fix this issue? Did I miss any configuration or something else is causing this issue.
0
Comment
Question by:skumar99
  • 5
  • 3
8 Comments
 
LVL 10

Expert Comment

by:Pramod Kumar
ID: 38382048
Please ensure the jsf config xml for bean is something like below:

<managed-bean>
	<managed-bean-name>beanName</managed-bean-name>
	<managed-bean-class>a.b.c.MyBean</managed-bean-class>
	<managed-bean-scope>request</managed-bean-scope>
</managed-bean>

Open in new window


For jsf2.0 annotation based bean declaration. plz ensure below for class:

@ManagedBean
@RequestScoped
0
 

Author Comment

by:skumar99
ID: 38384672
I am using JSF2.0 and codes are as like below:

@RequestScoped
public class CPLBean implements Serializable {
      private static final long serialVersionUID = 1L;

@ManagedBean
public class OMSFirmAdminBean extends CPLBean {
0
 
LVL 10

Expert Comment

by:Pramod Kumar
ID: 38385490
Are you also using xml configuration for the bean?

Also, you may try by putting both the annotations in both the bean classes:


@ManagedBean
@RequestScoped
public class CPLBean implements Serializable {
      private static final long serialVersionUID = 1L;

@ManagedBean
@RequestScoped
public class OMSFirmAdminBean extends CPLBean {
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:skumar99
ID: 38385517
I am not using  xml configuration for the bean.
0
 
LVL 10

Accepted Solution

by:
Pramod Kumar earned 1500 total points
ID: 38385548
0
 
LVL 10

Expert Comment

by:Pramod Kumar
ID: 38385556
Also, could you please describe it more:

Now when i entered value in a form in any browser (IE, Firefox,..), same data i can see in another browser
0
 

Author Comment

by:skumar99
ID: 38385688
Just i was trying to describe this is not related to one browser. Even i used IE or firefox, result was same. I can see one user entered data in different machine browser.
0
 
LVL 10

Expert Comment

by:Pramod Kumar
ID: 38385701
I mean to know exactly what you entered in which form, then what you are seeing on another machine's browser?

If you are seeing data entered into one form from one machine is visible to another users on another user's machine, then either the scope=application or the data is being saved into the database.

So, just wanted to know more about exactly what is the code written and what is the test use case.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month18 days, 21 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question