Do you have a separate form for each detail record?  If so, I'd suggest
not doing that and putting the entire thing in a single form with
multiple submits.

> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Danny Lee
> Sent: Friday, March 10, 2006 6:39 AM
> To: user@struts.apache.org
> Subject: Autosumbit before Action 
> 
> 
> Hi guys!
> 
> I'm writing an admin webinterface for a web store at the 
> moment, the "put-new-product" part.
> 
> SITUATION: I have some product attributes like "Information 
> Blocks" and 
> "Product Details", which are 0..n, so I'm able to delete these, or 
> create new.
> 
> PROBLEM: The problem is, every time I delete or create a new detail I 
> have to call something an action. When I redirect back to the 
> refreshed form, all the stuff admin typed in before is away :(
> 
> 
> QUESTION: how can I autosubmit the whole form, every time 
> bevore the STORE-DETAIL, DELETE-DETAIL action is called? I 
> tried a JavaScript Sumbit on Click, but it doesn't seem to 
> work... My temporary solution is a warning near every 
> critical button, but it sux :(
> 
> Maybe you guys had a similar problem... Please help!
> 
> 
> Cheers,
> 
> Danny
> 
> P.S. I use StutsDialogs for this one... (Hi, Michael!)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to