[jboss-user] [JBoss Seam] - Auto update on form submit

Br4wN do-not-reply at jboss.com
Mon Nov 12 17:27:59 EST 2007


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!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103900#4103900

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103900



More information about the jboss-user mailing list