Thanks for the fast reply!


I am currently trying to create a simple webapp similar to OnlineStore example, 
so I'll continue it the terms of the latter. First of all I would like to get 
Item's details by clicking in the Item's name, i.e. to call event with 
details(id). The reason for not using the ID column for hyperlink is that's not 
nice to have a long auto-generated IDs before the item's (person's, etc.) name. 
Usually in webapps IDs are not shown, and one calls actions (with ID parameter) 
clicking on the name/title (for example).



About the modelling. The first thing I tried was to change the tagged value of 
the transition: "@andromda.struts.action.tablelink" from "itemList.id" to 
"itemList.name". Unfortunately, it doesn't work  :? It seemed quite logical to 
use this tag to show the column I want a hyperlink in. It's somewhat strange 
(to my logic :)) that it's not enough, and the cartridge uses the trigger's 
parameters to decide where hyperlinks go.



Of course I realize now there should be some hidden implementation difficulties 
you could show me ;)



It would be nice to have more complete OnlineStore example as it lacks e.g. 
"show details" functionality. Should the details(id) trigger go to action state 
"show details" that uses deferred call to retrieve the details? And all those 
details should be given as separate page-variables to the "<<FrontEndView>> 
view details"? Or it's possible to send Item object as a page-variable? I 
understand that I should write view-details.jsp myself.



If I don't want to use the ID column maybe I can use not "details(id : String)" 
but "details(item : Item)" instead?



Sorry for a lot of questions  :) I just try to understand what is the right way 
of doing things with AndroMDA, what should be in model and what should be 
hand-coded.
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3235#3235
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to