Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

Simple insert form...

Thread view: 
gbattine - 19 Aug 2006 17:53 GMT
Ecuse me guys,
i've a banal question but i've not a response...I'm developing a jsf
application.
i've a table in my mysql db,
with an autoincremented id and some others attributes.
My question is:

I want to insert a row of values in this table,but i can't do it using
a form page,but i have to use 3 page of forms.
How can i reference the same id and insert the same row using 3 pages?
For example,my table has:

id, name,lastname,city,address,profession.

I want inserting in a first page name and lastname,
in the second one city and address
and in the third one profession.

How can i reference the same line?

I want to use transaction support,so i need to store partial query on
each page into an object, to load all in one moment in the last page.
Can you help me with code?
Thanks.
Moiristo - 19 Aug 2006 19:45 GMT
> Ecuse me guys,
> i've a banal question but i've not a response...I'm developing a jsf
[quoted text clipped - 6 lines]
> a form page,but i have to use 3 page of forms.
> How can i reference the same id and insert the same row using 3 pages?

Create a javabean with all attributes (name, lastname, city, address,
profession), which you can process after the 3rd page. You can give the
bean 'session' scope, but you can also use the 'uiSaveState' component
in Apache Tomahawk: http://myfaces.apache.org/tomahawk/uiSaveState.html.
relogout@gmail.com - 20 Aug 2006 01:33 GMT
you can also just put the values name,lastname,city in session
and after post the 3rd form
read name,lastname,city from session
and insert these values with address and profession into a column
> Ecuse me guys,
> i've a banal question but i've not a response...I'm developing a jsf
[quoted text clipped - 20 lines]
> Can you help me with code?
> Thanks.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.