Hi all,

I'm looking for some advise on best-practice in passing information between
pages.  My scenario: 

- search for a list of people on first page
- create a DetachableModel from one person using an IPageLink on the results
- new page displays that persons detail, with a new listview of related 
telephones

Right now, I'm passing IModels that wrap the domain object.  This works pretty
good when I do an action from within the listview (ie. click link on listitem).

When I do an action outside of the listview like "add telephone", I have to
create a new Model to pass into the telephone edit page, which takes a
serializable object.  This now requires me to implement Serializable on my
domain objects I pass around through models.

If however I pass around the domain object directly, I don't have to worry
about Serializable but am unsure of what problems I am introducing by doing so.

Is it better to pass the domain object directly, or implement Serializable and
wrap it in an IModel?


Thanks tonnes,
Rod





This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you have received this email in error please notify the system manager. This
message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to