Hello!


What would be the best way to show details of an item? I have the page showing 
a table of items and outgoing trigger details(id) to action get details.



1. I understood that it's not possible to send an object as a page variable, so 
the get details action should call the controller's method getDetailsById() to 
get all the fields needed and send those as page variables to the view details 
page.



2. Controller's method in question should be in form getDetailsById(id, title, 
publisher), where it uses service method getItemById(id) to get Item object, 
gets its attributes' values and puts them into title and publisher variables.



3. I did it so, but the view details page shows nothing but Back button (I put 
"back" trigger as well). Shouldn't the page render the item's details? Or only 
if the page had the same event parameters? In this case it's good for edit 
details, but for view details one has to write JSP himself?



Could you please give an advice/correction on the steps listed?



OnlineStore example has details(id) trigger, but it doesn't have the page that 
actually shows the details. It would be nice to add it as it is a good example 
of common usage.
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3595#3595
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to