Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Simple insert form...

Reply
Thread Tools

Simple insert form...

 
 
gbattine
Guest
Posts: n/a
 
      08-19-2006
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.

 
Reply With Quote
 
 
 
 
Moiristo
Guest
Posts: n/a
 
      08-19-2006
gbattine wrote:
> 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?


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.
 
Reply With Quote
 
 
 
 
relogout@gmail.com
Guest
Posts: n/a
 
      08-20-2006
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
gbattine wrote:
> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Multiple Records Using One Insert Statemen with MySQLdb module anton.ranieri.it@gmail.com Python 1 12-06-2008 12:47 PM
insert in std::map does not insert the object simon.elbaz@free.fr C++ 1 11-04-2007 11:42 PM
Insert & Insert/Repeat buttons in a detailsview eagle ASP .Net Datagrid Control 0 07-12-2007 12:47 PM
Detailsview loses insert mode contents when Insert fails... cannontrodder ASP .Net 1 07-25-2006 08:38 AM
DetailsView - Changing to Insert Mode (Not By Using the Insert Button In the DetailsView Control) Feege ASP .Net Web Controls 0 12-20-2005 12:28 AM



Advertisments