[EJB3 - ADF Faces] entity bean design

Hello,
I have an existant application that use database view (very complex) to retrieve and display values from some tables.
I have to reproduce the same thing with EJB3 ans ADF Faces in a web application.
What is for you the best way to design entities beans ?
1. Create some buisness objects (entity beans) and feed them with a query thru the database view ?
2. Create a unique entity bean with only attributes who are used by the db view ?
In this case, the entity bean will be used only for this query.
3. ?
I think the best solution is the first one.
But in this case, how to display the result of the query in an ADF Faces table?
With the 2nd solution the query returns a list of object which will be used by the adf table. That would be much easier.
Thanks for your help.

The popup dialog is used for looking up a value of fields on the form. I have fields "location id" and "sub location id", the popup has cascading drop down lists where I choose which ones I want, then return those values from the popup and display the selection in readonly text inputs. Other inputs also exist on the form. Together they all make the input parameters to the session facade's query.

Similar Messages

  • Accessing facade bean in ADF Faces managed bean

    Hello
    I am trying to display data from a database on a page using ADF Faces. I am using a Web Application [JSF, EJB] template in JDeveloper with the model project using JPA entities with a session facade bean to manage the entities (as described here: http://www.oracle.com/technology/obe/obe1013jdev/10131/ejb_and_jpa/master-detail_pagewith_ejb.htm ).
    What I have tried to do is to set up a managed session bean in the ViewController project that is referenced by a faces page. The managed bean is supposed to, on creation, load data from the database into managed properties which are then displayed on the faces page using EL references. I want all JPA management to go through the facade, and thus I want to inject the facade bean into the managed bean using @EJB notation. However, the injection does not work, and all I get is a NullPointerException when trying to access the injected facade in the managed bean.
    I have also tried instantiating the facade bean in the managed bean's constructor manually, but when I try to call a method on the facade, I get another NullPointerException, this time from the entity manager which obviously is not injected into the facade bean.
    What is strange is that the facade bean works perfectly when I use the datacontrols generated from the facade bean, as described in the tutorial (no exception from the entity manager).
    I have searched high and low for a solution to this, and from what I can read, it should be possible to do what I want (see for example https://blueprints.dev.java.net/bpcatalog/ee5/persistence/ejbfacade.html and http://luxlog.wordpress.com/2007/12/15/basic-example-web-app-with-glassfish-netbeans-60-jsf-and-ejb3/ ). I found someone mentioning that dependency injection in the web container OC4J was added after a given version, and that web.xml needs to be upgraded to version 2.5, which I have done but did not solve anything.
    Is this not possible in JDeveloper/OC4J at all? Is there any other way to access the facade session bean in managed beans?

    Hi,
    for resource injection you need JDeveloper 11. Here the EJB annotation works to inject the resource. If you want to do similar in 10.1.3 then you need to do a JNI lookup in the managed bean (under the shelves ADF does the same)
    Frank

  • EJB3.0 simple entity bean for customer example...

    Can anyone provide a simple step by step instruction on how to start my application of a customer entity bean. like i could add / delete an entry to mySQL DB, i will use Sun as my appserver. im a newbie to ejb. i want to start with that CUSTOMER bean can anybody help pls ? thx! tata-yang

    hello batzee i already have my appserver running
    and found out that he place my EJBSample under Enterprise Application.
    and with these modules inside:
    -EJBsampleSun-ejb.jar      EJBModule      
    -EJBsampleSun-war.war WebModule
    my appserver has:
    EJBsampleSun      true      ${com.sun.aas.instanceRoot}/applications/j2ee-apps/EJBsampleSun      Redeploy
    inside my application:
    1. ejbsamplesun-ejb/src/conf/persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="EJBsampleSun-ejbPU" transaction-type="JTA">
    <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
    <jta-data-source>jdbc/mySample_dbo</jta-data-source> //question: i have db in mysql named mySample_dbo with customer as my table did i declare it right?
    <properties>
    </properties>
    </persistence-unit>
    </persistence>
    ================
    2. ejbsamplesun-ejb/src/java/ph/icomm/customer.class
    package myejb.ph;
    import java.io.Serializable;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.*;
    @Entity
    @Table(name="Customer")
    public class Customer implements Serializable {
    private int id;
    private String name;
    private String email;
    private String phone;
    @Id
    @Column(name="ID")
    public int getId() {
    return id;
    public void setId(int pk) {
    id = pk;
    @Column(name="Name")
    public String getName() {
    return name;
    public void setName(String n) {
    name = n;
    @Column(name="Email")
    public String getEmail() {
    return email;
    public void setEmail(String e) {
    email = e;
    @Column(name="Phone")
    public String getPhone() {
    return phone;
    public void setPhone(String p) {
    name = p;
    ================
    3. ejbsamplesun-war/src/java/web/postcustomer.class
    // and here is my servlet
    //simply trying to fetch the data in my customer table with ID = 11
    package web;
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import ph.icomm.Customer;
    import web.PostCustomer;
    public class PostCustomer extends HttpServlet {
    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    /* TODO output your page here*/
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet PostCustomer</title>");
    out.println("</head>");
    out.println("<body>");
    try {
    Customer pCustomer = new Customer();
    pCustomer.setId(new Integer("11"));
    out.println("Customer Name is"+pCustomer.getName());
    out.println("<br>");
    out.println("Customer Id is:"+pCustomer.getId());
    out.println("<br>");
    out.println("Customer Email is:"+pCustomer.getEmail());
    out.println("<br>");
    out.println("Customer Phone is:"+pCustomer.getPhone());
    } catch(Exception e) {
    System.out.println("I am inside Exception");
    out.println("<h1>Servlet PostCustomer at " + request.getContextPath() + "</h1>");
    out.println("</body>");
    out.println("</html>");
    out.close();
    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
    /** Handles the HTTP <code>GET</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    /** Handles the HTTP <code>POST</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    /** Returns a short description of the servlet.
    public String getServletInfo() {
    return "Short description";
    // </editor-fold>
    Now, is this complete ejb3.0 already? coz if ill try to RUN this project it give this error:
    Deploying application in domain failed; Deployment Error -- null
    C:\Inetpub\wwwroot\myfolder\_Project\EJBsampleSun\EJBsampleSun-ejb\nbproject\build-impl.xml:312: Deployment error:
    The module has not been deployed.
    See the server log for details.
    BUILD FAILED (total time: 1 second)
    This is quite a long post but have to make sure ill get your kind help and assistance. Thanks!
    tata-yang

  • Entity bean design

    Hello,
    I have an existent application that use database view (very complex) to retrieve and display values from some tables.
    I have to reproduce the same thing with EJB3 in a web application.
    What is for you the best way to design entities beans ?

    Hello,
    I have an existent application that use database view (very complex) to retrieve and display values from some tables.
    I have to reproduce the same thing with EJB3 in a web application.
    What is for you the best way to design entities beans ?

  • Bindings problem (EJB3 - ADF  Faces)

    Hi Forum,
    I have a static fieald in a entityBean (EJB3) with its accessors:
    private static Double totalQty;
    I have this method in a session bean:
    public Double TotalsSaticValues(){
    return VOrderLinesFulladj.getTotalCHF();
    And I want to show the value in a outputText component like this:
    <af:outputText value="#{bindings.TotalsSaticValues1.inputValue}">
    <f:convertNumber groupingUsed="false"
    pattern="{bindings.TotalsSaticValues1.format}"/>
    </af:outputText>
    The problem is that when the page loads, the TotalsSaticValues() method is not called and of corse the value is not shown.
    I have to create a button to call the method:
    <af:commandButton actionListener="#{bindings.TotalsSaticValues.execute}"
    text="TotalsSaticValues"
    disabled="#{!bindings.TotalsSaticValues.enabled}"/>
    And when I click, the value appears !
    What I have to do to call the method without button ?
    Thanks for your help.

    Hi,
    create an invokeAction in the executable section of the pagedef file and point it to the method you otherwise execute from the button.
    The invoke action is invoked when the page loads
    Frank

  • Non numeric @Id being treated as numeric (EJB3/ADF Faces) [Please Frank]

    Hi,
    I have a non-numeric field (varchar2) defined as such:
    public class DepartmentV implements Serializable {
        @Id
        @Column(name="DEPT_ID", nullable = false)
        private String deptId;
    ...When I run the program, I get the following error:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01722: invalid numberThis is because the column in the table has some non-numerics in it. However the column is defined as varchar, and in the EJB it is defined as String, so why is it being treated as a numeric and how do I fix it?
    many thanks
    R

    Hi,
    tried to reproduce in JDeveloper 10.1.3.2 with no success
    @Entity
    @NamedQuery(name = "Testtable.findAll", query = "select o from Testtable o")
    public class Testtable implements Serializable {
    private Long age;
    @Id
    @Column(nullable = false)
    private String idf;
    private String name;
    public Testtable() {
    public Long getAge() {
    return age;
    public void setAge(Long age) {
    this.age = age;
    public String getIdf() {
    return idf;
    public void setIdf(String idf) {
    this.idf = idf;
    public String getName() {
    return name;
    public void setName(String name) {
    this.name = name;
    Works as designed
    Frabj

  • Adf faces: execute bean method after table is loaded

    Hi,
    How can I execute a method after an adf table is rendered on the page?
    This is what I want to do:
    I have a master/detail:
    - the master part contains a list of materials
    - the details contains a list of customers and volumes depending on the selected material.
    I tried to add totals on the details table:
    - I created an output text in the footer-facet of the colums containing volumes
    - I created a binding of the detail table to a CoreTable.
    - I created a method in a managed bean related to this CoreTable binding, so I can browse to all rows in the table and calculate the sum.
    - I then set the value of the output text to the total calculated in the managed bean.
    the problem is that I don't know how to execute the calculate procedure after the data in the detail table exists.
    What I tried:
    - call the calculate procedure in the setCoreTable method. --> at this point, there is no data in the table and this results in a nullPointerException when the pages is loaded.
    - call the calculate procedure on the valueChangeListener of the material list --> this doesn't work because totals are calculated for the previous details set.
    - I tried to add the call in one of the table listeners but I cannot find a listener that is executed after data is loaded in the table...
    for testing purpose only, I added a button: calculateTotals that calculates the totals. This works correctly.

    Hi,
    if you use page fragments exposed in an ADF region, you have two options I see
    1. Use a method call activity to call the managed bean
    2. Use a hidden UI component that references the setter/getter exposed in a managed bean and just use this as an indication for the page fragment being loaded
    Keragala

  • [DUPLICATE]strange Session Facade method calling behaviour (EJB3/ADF Faces)

    Hi,
    I have a custom query in a Session Facade bean. On my search form I have a popup dialog and when I return from the dialog, the query in the session facade is called for no explicable reason. In fact it seems to get called several times at different events, but I only want it to be called when I click the button it's bound to. Why is this happening?
    The only partial solution I have at the moment is to make one of the method parameters of the query a boolean value that indicates whether I want the query to actually run or not, if it's false I just return from the query. I set this parameter to true in the backing bean when the search button is pressed.
    Can someone please point me to a better solution?
    many thanks
    R

    Hi,
    as mentioned in teh other posting of your, make sure the refresh condition is set so that it doesn't execute the query on postBack
    Frank

  • ADF Faces: Managed Beans

    Hi All,
    I have a situation where i need to pass the value to managed bean at runtime which inturn changes the values of menubar,menulist please can any one help me out.
    Regards
    Manasa Chanda

    What you probably want to do is expose the menubar.menulist component to your managed bean. This is fairly easy to do by editing the "Binding" property of the component. This will let you specify a Managed Bean, and a Property, or you can press a New button to create the bean, and/or the Property. Once you've exposed the component, the properties of the component are available through EL, including being able to change those properties from other components.

  • Ejb3 entity bean not generating valid sql for postgres 8.1

    Hello,
    I originally posted this on the jboss seam board as I ran across this error on a seam test example, but it seems it's more generally applicable to ejb3 entity beans not generating sql that postgres can understand. I'll post my message below, all replies are appreciated.
    I'm going through the hello world example from the seam book, and I'm getting an error I cannot resolve, that with an auto generated sql statement, that's not valid for postgres 8.1, the database I'm on. Here's my error:
    17:40:31,370 INFO [STDOUT] Hibernate: select next value for person_id_seq from dual_person_id_seq
    17:40:31,394 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 42601
    17:40:31,394 ERROR [JDBCExceptionReporter] ERROR: syntax error at or near "value"
    17:40:31,396 FATAL [application] javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not get next sequence value
    javax.faces.el.EvaluationException: javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not get next sequence value
    Here's the table definition
    - create table Person (id bigint not null, name varchar(255), primary key (id))
    - create table dual_person_id_seq (zero integer)
    - create sequence person_id_seq start with 1 increment by 1
    and here's the entity bean:
    @Entity
    @Name("person")
    @Table(name="person")
    @SequenceGenerator(name="person_sequence", sequenceName="person_id_seq")
    public class Person implements Serializable {
    private long id;
    private String name;
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator="person_sequence")
    public long getId() { return id;}
    public void setId(long id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    How do I get it to generate a valid sql statement for postgres?

    I think you should try putting the sequence generator annotation over the primary key field. Try it and be sure it works.
    regards,
    Michael

  • Adf faces: Design Requirements

    Can someone please point me in the right direction as to the best practices for designing jsp pages using adf.
    We are at the design phase of the project at the moment and current technical design templates do not satisfy the requirements needed to design a page using adf faces.
    Are there any examples out there???

    Thanks for your response. My question was not so much about ADF itself. My question was how to design the pages and components that are to be coded.
    May seem a very simple question but a framework such as ADF faces requires certain things to be in place eg. config files, backing beans...
    I thought it may be advantageous to the community that design these pages (as well as the coders) to have example design documents (maybe that are used in the new ADF toystore) that designers can use to help them to get started with designing pages that use oracle ADF and to start with best practices rather than home grown mistakes.
    Once again thanks for your response.

  • ADF Faces and BC: Scope problem with managed bean

    Hi,
    I am using JDev 10.1.3 and ADF Faces with ADF BC.
    I have created a managed bean which needs to interact with the binding layer and also receive actions from the web pages. I have a managed property on the bean which is defined as follows:
    <managed-bean>
        <managed-bean-name>navigator</managed-bean-name>
        <managed-bean-class>ecu.ethics.view.managed.Navigator</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
        <managed-property>
          <property-name>bindings</property-name>
          <value>#{bindings}</value>
        </managed-property>
      </managed-bean>I need the been to session scope because it needs to keep previous and next pages to navigate the user through their proposal. If i use session scope (as above) i get the following error when i click on a comand link which references a method in the above bean: #{navigator.forwardNext_action} which returns a global forward.
    this is the exception:
    javax.faces.FacesException: #{navigator.forwardNext_action}:
    javax.faces.el.EvaluationException: javax.faces.FacesException:
    javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object     at
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)     at
    oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211) at
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)at
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)     at
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)     at
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)     
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)     at
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)how can i get around this?
    Brenden

    Hi pp,
    you need to create a managed (not backing) been set to session scope.
    You can call/reference the managed bean from your page.
    the backing bean is designed around a page lifecyle which is request oriented in it's design.
    This is a simple managed bean from faces-config.xml
    <managed-bean>
        <managed-bean-name>UserInfo</managed-bean-name>
        <managed-bean-class>ecu.ethics.admin.view.managed.UserInfo</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
          <managed-property>
          <property-name>bindings</property-name>
          <property-class>oracle.adf.model.BindingContext</property-class>
          <value>#{data}</value>
        </managed-property>
      </managed-bean>and the getters and setters for bindings in your session scope managed bean:
        public void setBindings(BindingContext bindings) {
            this._bindings = bindings;
        public BindingContext getBindings() {
            return _bindings;
        }you can access the model from the managed bean using the the BindingContext if needed.
    also have a look at JSFUtils from the ADF BC SRDemo application, there are methods in this class such as resolveExpression which demonstrate how to get the values of items on your page programatically using expression language. You can use this in your managed bean to get values from your pages.
    regards,
    Brenden

  • Error when deploying a simple Entity bean (EJB3) on Glassfich or Sun AS

    Hi,
    After some problems when deploying complex EJB3 Entity bean on GlassFich with a MySQL connector, I have made a simple entity.
    (test with Glassfish and Sun AS with same result)
    With netbean 5.5 => New EJB Module
    File->New->Persistence Unit (and use default values)
    Persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
      <persistence-unit name="test" transaction-type="JTA">
       <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
        <jta-data-source>jdbc/sample</jta-data-source>
        <properties>
          <property name="toplink.ddl-generation" value="create-tables"/>
        </properties>
      </persistence-unit>
    </persistence>File->New->Entity Class
    EntityTest.java
    package test;
    import java.io.Serializable;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    @Entity
    public class EntityTest implements Serializable
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Long id;
        /** Creates a new instance of EntityTest */
        public EntityTest()
        public Long getId()
            return id;
        public void setId(Long id)
            this.id = id;
        public String toString()
            //TODO change toString() implementation to return a better display name
            return "" + this.id;
    }Build of project work fine but when I try to deploy (with the 2 servers), I have the error :
    Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: Deployment Error -- null
    at java.util.HashMap$HashIterator.nextEntry(HashMap.java:790)
    at java.util.HashMap$KeyIterator.next(HashMap.java:823)
    at com.sun.enterprise.deployment.backend.EjbModuleDeployer.generatePolicy(EjbModuleDeployer.java:203)
    at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:171)
    at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
    at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
    at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)

    Yes, the problem is that the ejb-jar must contain at least one ejb component. It's a common misconception that Java Persistence API Entity classes are ejb components but they are NOT. The Java Persistence API was developed within the EJB 3.0 JSR and works very well with EJB but the entity classes themselves are not full-fledged ejb components.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • ADF Faces: How to get the ADF BindingContainer in a managed bean?

    Hi,
    I not sure how to get the BindingContainer instance from inside of a managed bean method. I have tried the following config, but it does not work in all situations.
      <managed-bean>
        <managed-bean-name>backing_showBooks</managed-bean-name>
        <managed-bean-class>view.backing.ShowBooks</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
          <property-name>bindingContainer</property-name>
          <property-class>oracle.adf.model.binding.DCBindingContainer</property-class>
          <value>#{bindings}</value>
        </managed-property>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1showBooks.jsp-->
      </managed-bean>When an ActionListener- method of my ShowBooks bean is called the property bindingContainer is NULL!!
    Is there a save way to get the BindingContainer in my bean??
    Any hints are welcome.
    Thanks,
    Markus

    Maybe I just need another pair of eyes but when I set this up as explained and watch it in the debugger my method public void setBindingContainer(DCBindingContainer bc) gets called but bc is null. Can anyone help?
    Thanks
    Backing Bean-
    private DCBindingContainer bindingContainer;
    public void setBindingContainer(DCBindingContainer bc) {
    this.bindingContainer = bc;
    public DCBindingContainer getBindings() {
    return bindingContainer;
    //I just threw this method on there in case I was missing something & I also
    //tried using a getBindingContainer method above but that didn;t work.
    public void setBindings(DCBindingContainer bindings) {
    this.bindingContainer = bindings;
    adf-faces.conf entry
    <managed-bean>
    <managed-bean-name>backing_VunerabilityDetail</managed-bean-name>
    <managed-bean-class>viewcontroller.backing.VunerabilityDetail</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindingContainer</property-name>
    <property-class>oracle.adf.model.binding.DCBindingContainer</property-class>
    <value>#{bindings}</value>
    </managed-property>
    <!--oracle-jdev-comment:managed-bean-jsp-link:1VunerabilityDetail.jsp-->
    </managed-bean>

  • Problem with ADF Faces; Bean (session scope) keeps Data after Session ends

    Hi,
    I have a project, which was transferred from an myFaces-project to an ADF Faces-project. Since i´am working with the ADF Faces the data in my beans (which are all in session-scope) won´t vanish after a logout.
    1) I have a method in one bean, which clears the user data (name and passwd), for example, but after a logout (redirecting to the login-page) I just have to push the loginbutton to get in the app. as the last user logged in. The bean is cleared, but where does the data come from. When the app was working with myFaces, this did not happen, the inputText and the inputHidden were empty.
    2) I have a af:table, which displays max ten lines. If the last user watched the elements 21 to 30 in that table, the next user who watches the table gets the same elements shown and not the elements 1 to 10. That shouldn´t happen in a different session.
    3) I have some listboxes in one page, where a user can make some decisions. If i logout and in again, i can see the decisions last made in these listboxes.
    All that happens with beans in session scope!
    Thanks for the replies (i hope) and excuse my bad english,
    Santiago

    Hi
    If this is the case , you can explicitly make all ur session data objects null.

Maybe you are looking for