Results 1 to 2 of 2

Thread: jsf scope query

  1. #1
    nc_newie is offline Member
    Join Date
    Jun 2008
    Posts
    4
    Rep Power
    0

    Default jsf scope query

    hi,
    I've a search page with a couple of textfields and a dropdown. i populate the dropdown in the init().
    On clicking 'Go' button, i display a datatable with corresponding values fetched from DB in an arraylist.
    The datatable has a editable dropdown. After setting the required valuies in dropdown, i do a submit and update the DB.

    I've a jsf page with a backing bean in the request scope.
    i have action methods for go & submit. In my submit action, i'm unable to read the arraylist.

    Query: How do i get the array values?

    Thanks,

  2. #2
    RamSun is offline Member
    Join Date
    Aug 2008
    Posts
    4
    Rep Power
    0

    Default

    1.By calling the corresponding method and set those values in the go action u can able to retain the values
    or
    2 . Pass the list to the go action as a f:pram and get this request scope values in the bean and save that list in the request scope again.
    hope it solves ur problem
    ---Ram

Similar Threads

  1. How to use session scope in Spring
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-31-2008, 11:07 AM
  2. How to use request Scope in Spring
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-31-2008, 11:06 AM
  3. How to define Bean Scope
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-30-2008, 11:14 AM
  4. return out of scope?
    By another_steve in forum New To Java
    Replies: 5
    Last Post: 01-28-2008, 10:34 PM
  5. How to use session scope in Spring
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 09-28-2007, 01:47 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
  •