struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Semmens <lance.semm...@marketpipe.com>
Subject RE: Dynamically adding row!
Date Tue, 14 Nov 2006 10:22:00 GMT
The least messy way is to post to an addRecord action which adds a blank record to your form.
Form must be in session scope. This requires a page redraw so is less responsive but this
is the approach I often use.

If you add a row to your table using javascript, struts will not automatically populate your
form with the new record(s) upon save so you will need to handle this in your action. Unless
of course you use ajax (which you have said you don't want to do) to add the record to your
struts form on the server. 

Display tags will work for both suggestions. The javascript option usually involves cloning
an existing row and blanking out the fields. 

Lance.

-----Original Message-----
From: Balwinder [mailto:balwinderk@saigun.com] 
Sent: 14 November 2006 10:05
To: Struts Users Mailing List
Subject: Dynamically adding row!

Hi All!

I am trying to add a row in a table dynamically to add new record in 
Struts web application.

Iam using struts 1.1 and need to implement non-Ajax solution.

Will display tags has solution to this situation?

Any help  will be appreciated.

Thanks and Regards,
Balwinder Kumar

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message