Hi all,
i've a trouble using a simple form backed by an entity bean:
i've a page with a simple input form. the form is bound to: #{myClassHome.instance} where myClassHome extends EntityHome.
i have 3 buttons: doStuff, save, update: doStuff si bound to #{someClass.doStuff}.
when i click on doStuff on a new object instance (before saving) it works fine... when i click the button on a "retrieved" (persisted) object an update (i can se an update query in the logging console) is executed at the end of the doStuff method if the value of the input form changed.
is that behavior normal? and if so... why?
thank you in advance!
Yes, by default the persistence context is flushed at method boundaries unless you use manual flush mode.