1 Reply Latest reply on Nov 13, 2007 4:48 AM by Pete Muir

    Auto update on form submit

    Mario Cartia Newbie

      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!