-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Multiple transactions in a session.
PostPosted: Wed Aug 13, 2008 12:38 am 
Newbie

Joined: Wed Aug 13, 2008 12:28 am
Posts: 1
Location: Chennai
Hello All,

I am currently working in an JSF application where there is a main form with 3 action buttons. When I click each button it opens an another form in which I complete the form and while saving the transaction do not have to be committed in the database but just saved. Like wise i do it for all the 3 forms. When i once again come to the main form and save the mainform all the transactions need to be committed.

Is it possible to do the approach mentioned above or if the above approach is wrong can some one tell an alternate solution?

_________________
Bharathiraja,
Software Engg


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 13, 2008 2:59 am 
Newbie

Joined: Thu Jul 17, 2008 2:35 am
Posts: 5
Hi bharathiraja,

I think you can do it in the following way,
As you said, when you click each button it opens an another form in which you complete the form.
So instead of saving the data in database in these three forms, you can save the data of these three form in session or at client side itself.

Then when save button of main page is clicked you can save all the data which is in session in the database and commit there itself.

Hope this helped you.

Thank you


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.