MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
bradm
Post subject: Refreshing a JSF dropdown with updated data  PostPosted: Jan 11, 2005 - 08:24 PM
Veteran Member
Veteran Member


Joined: Nov 24, 2003
Posts: 106

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?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jan 12, 2005 - 12:28 AM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

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.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits