Results 1 to 1 of 1
  1. #1
    Msnforum is offline Member
    Join Date
    Sep 2008
    Posts
    7
    Rep Power
    0

    Default dataTable value gets called multiple times

    I'm trying to share a value between two composite components on a jsf page. Each of the two composite components uses a request-scoped managed bean.

    Currently also using ajax to pass a value from component 1 to component 2 so that component 2 displays something different.

    I wonder if anybody knows how to achieve this or have any suggestions to go about it.

    Edit 1: I have got passed that stage using dependency injection using @ManagedProperty. Now attempting to not directly call database when using h:dataTable because it gets recalled multiple times.

    Edit 2: Problem solved, only load list from database if the list is null.
    Last edited by Msnforum; 09-11-2010 at 06:08 AM. Reason: Changed Title

Similar Threads

  1. EntityManager.refresh() works only on managed entities.
    By CatchSandeepVaid in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 12-05-2009, 01:11 PM
  2. Application-Managed EntityManager transaction type must be RESOURCE_LOCAL
    By CatchSandeepVaid in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 11-23-2009, 06:56 PM
  3. How to make Beans Lazily-instantiating beans
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-30-2008, 11:10 AM
  4. Container Managed Persistence
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-27-2007, 11:16 AM
  5. How to make Beans Lazily-instantiating beans
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 09-26-2007, 09:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •