facebook

Refreshing a JSF dropdown with updated data

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #222558 Reply

    bradm
    Member

    I have a page with several dropdowns (<h:selectOneMenu>) that get populated from a database via a LinkedList. For each dropdown, there is an associated textbox. When a selection is made from a dropdown and something is typed into its associated textbox, clicking the submit button CHANGES that term in the database.

    My question is, how do I get that change to be immediately reflected in the dropdown, or more properly in the List to which it is bound?

    #222572 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev, this is a JSF question.

    You might try the myfaces or JSF forums over at Sun. I know one thing JSF made me crazy with is its random caching of components (h:dataTable for example) and I wonder if that is the same problem you are having. Have you tried printing out the values of your linked list AFTER the Submit button to make SURE that the linked list from the DB is updated? If you are using Hibernate and the 2nd level cache, it might just be a problem of the state of the items in the list not being updated.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Refreshing a JSF dropdown with updated data

You must be logged in to post in the forum log in