xxxDataProvider.commitChanges() deesn't change the content of database

Hi

I am using Java Studio Creator 2 with MySQL database. I bind a text component with a field of a table (xxx) in my database, then used xxxDataProvider.commitChanges() to save any change I made to the text field into the table but nothing changed in the table. Could anybody help? Many thanks.

[307 byte] By [janekang] at [2007-11-26 9:21:11]
# 1

I was having the same problem but with ObjectListDataProviders...

As usual, 90% of the problems we have are our fault, not the IDE's.

Are you storing the DataProvider object as a Session attribute? Or request?

Take a look at this post at Winston's Blog:

http://blogs.sun.com/roller/page/winston?entry=is_objectlistdataprovider_transa ctional

GabrielGalvao at 2007-7-6 23:53:03 > top of Java-index,Development Tools,Java Tools...
# 2

Hi

Thank you very much for your kind reply. Now I try both cases(setting xxxDataProvider as a session property or a request property) but still I can not change the table content in the database after using the command xxxDataProvider.commitChanges(). Any further suggestions would be highly appreciated.

Regards

janekang at 2007-7-6 23:53:03 > top of Java-index,Development Tools,Java Tools...
# 3
Hello there,I think the refresh is required tookey_stationsDataProvider.commitChanges();key_stationsDataProvider.refresh();
b0wm0re at 2007-7-6 23:53:03 > top of Java-index,Development Tools,Java Tools...
# 4
Thanks. I tried but it won't work either.I would be very glad if anybody there could help?
janekang at 2007-7-6 23:53:03 > top of Java-index,Development Tools,Java Tools...
# 5
It works now. Thank you for everybody's help.
janekang at 2007-7-6 23:53:03 > top of Java-index,Development Tools,Java Tools...
# 6
Could you please tell us how you got it to work? Thanks!
cram11 at 2007-7-6 23:53:03 > top of Java-index,Development Tools,Java Tools...