You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Lister, Tom (ANTS)" <to...@ants.co.uk> on 2002/07/23 09:57:39 UTC

Master/Detail data - editing multiple entities in a grid

I hava an application that requires a master/detail type maintenance form.
e.g. order/order items.
Does anyone have any experience of modelling this in struts.

Ideally i will have the form contain a collection of order items (either
directly or inside a 'value object' nested bean)
Is it possible to display the collection as a grid for editing. I don't see
how to resolve what field belongs to which item in JSP/Struts.
My feeling is that I should create a specific edit action to edit a selected
line, then post that line data. This is not what the user would ideally 


:-)
Tom Lister
* 020 7612 3030
* tom.lister@ants.co.uk



***************************************************************************
This communication (including any attachments) contains confidential
information.  If you are not the intended recipient and you have received
this communication in error, you should destroy it without copying,
disclosing or otherwise using its contents.  Please notify the sender
immediately of the error.

Internet communications are not necessarily secure and may be intercepted or
changed after they are sent.  Abbey National Treasury Services plc does not
accept liability for any loss you may suffer as a result of interception or
any liability for such changes.  If you wish to confirm the origin or
content of this communication, please contact the sender by using an
alternative means of communication.

This communication does not create or modify any contract and, unless
otherwise stated, is not intended to be contractually binding.

Abbey National Treasury Services plc. Registered Office:  Abbey National
House, 2 Triton Square, Regents Place, London NW1 3AN.  Registered in
England under Company Registration Number: 2338548.  Regulated by the
Financial Services Authority (FSA).
***************************************************************************


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


***************************************************************************
This communication (including any attachments) contains confidential information.  If you are not the intended recipient and you have received this communication in error, you should destroy it without copying, disclosing or otherwise using its contents.  Please notify the sender immediately of the error.

Internet communications are not necessarily secure and may be intercepted or changed after they are sent.  Abbey National Treasury Services plc does not accept liability for any loss you may suffer as a result of interception or any liability for such changes.  If you wish to confirm the origin or content of this communication, please contact the sender by using an alternative means of communication.

This communication does not create or modify any contract and, unless otherwise stated, is not intended to be contractually binding.

Abbey National Treasury Services plc. Registered Office:  Abbey National House, 2 Triton Square, Regents Place, London NW1 3AN.  Registered in England under Company Registration Number: 2338548.  Regulated by the Financial Services Authority (FSA).
***************************************************************************


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Master/Detail data - editing multiple entities in a grid

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
I mailed this before but it didn't get thro I think, apologies if it's a 
double post. The monkey - bunches - banana model using nested tags 
sounds like exactly what you need. The indexed properties output by the 
tags keeps all the relationships.

NB if you do go that way, remember to either keep your form with the 
beans in in the session, or recreate them in the form reset method



Lister, Tom (ANTS) wrote:
> I hava an application that requires a master/detail type maintenance form.
> e.g. order/order items.
> Does anyone have any experience of modelling this in struts.
> 
> Ideally i will have the form contain a collection of order items (either
> directly or inside a 'value object' nested bean)
> Is it possible to display the collection as a grid for editing. I don't see
> how to resolve what field belongs to which item in JSP/Struts.
> My feeling is that I should create a specific edit action to edit a selected
> line, then post that line data. This is not what the user would ideally 
> 
> 
> :-)
> Tom Lister
> * 020 7612 3030
> * tom.lister@ants.co.uk
> 
> 
> 
> ***************************************************************************
> This communication (including any attachments) contains confidential
> information.  If you are not the intended recipient and you have received
> this communication in error, you should destroy it without copying,
> disclosing or otherwise using its contents.  Please notify the sender
> immediately of the error.
> 
> Internet communications are not necessarily secure and may be intercepted or
> changed after they are sent.  Abbey National Treasury Services plc does not
> accept liability for any loss you may suffer as a result of interception or
> any liability for such changes.  If you wish to confirm the origin or
> content of this communication, please contact the sender by using an
> alternative means of communication.
> 
> This communication does not create or modify any contract and, unless
> otherwise stated, is not intended to be contractually binding.
> 
> Abbey National Treasury Services plc. Registered Office:  Abbey National
> House, 2 Triton Square, Regents Place, London NW1 3AN.  Registered in
> England under Company Registration Number: 2338548.  Regulated by the
> Financial Services Authority (FSA).
> ***************************************************************************
> 
> 
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
> 
> ***************************************************************************
> This communication (including any attachments) contains confidential information.  If you are not the intended recipient and you have received this communication in error, you should destroy it without copying, disclosing or otherwise using its contents.  Please notify the sender immediately of the error.
> 
> Internet communications are not necessarily secure and may be intercepted or changed after they are sent.  Abbey National Treasury Services plc does not accept liability for any loss you may suffer as a result of interception or any liability for such changes.  If you wish to confirm the origin or content of this communication, please contact the sender by using an alternative means of communication.
> 
> This communication does not create or modify any contract and, unless otherwise stated, is not intended to be contractually binding.
> 
> Abbey National Treasury Services plc. Registered Office:  Abbey National House, 2 Triton Square, Regents Place, London NW1 3AN.  Registered in England under Company Registration Number: 2338548.  Regulated by the Financial Services Authority (FSA).
> ***************************************************************************
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>