• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 584
  • Last Modified:

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

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
skumar99
Asked:
skumar99
  • 5
  • 3
1 Solution
 
Pramod KumarCommented:
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
 
skumar99Author Commented:
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
 
Pramod KumarCommented:
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
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
skumar99Author Commented:
I am not using  xml configuration for the bean.
0
 
Pramod KumarCommented:
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
 
skumar99Author Commented:
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
 
Pramod KumarCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now