views:

6

answers:

0

I have a business object representing an invoice with all its line items, contractor data, bank account number, etc.

I want to be able to display such an invoice and allow user to edit it, for instance to add new line item or delete an exisiting one. User should see all properties of an invoice.

What's the best way about it?

Should I map my business object to some corresponding web/presenter object?

Or is there some kind of wise renderer pattern which would wrap my business object and expose additional method for gui-only use?

This is technology-agnostic question but my this is a typical J2EE + JSF scenario.

related questions