On 28.11.2011, at 19:52, David Holt wrote:

> Then when you want to select the Entity you would do something like this 
> (here I have a custom select component in a ListProject configuration) and I 
> return a page with the list of activities that are associated with the 
> selected project. You'll have to figure out where it makes sense for your 
> entity to be selected in your app.
> 
>       public WOComponent view() {
>               Project selectedProject = (Project) object(); 
>               ((Session)session()).setSelectedProject(selectedProject);
>               return (WOComponent) 
> ((Session)session()).navController().listActivities();
>       }
> 

David,

Thanks a lot for your input. However my problem lies exactly here (your  view() 
action). I have  a plain auto generated ListPage and the user clicks on the 
edit-icon on one of the rows. Would I need a custom property level component 
for the edit icon so that I could put some code like yours into or is there an 
other (plain D2W) way to accomplish this? How do I intercept the action before 
the EditPage is created but after the user has clicked the selected row? 
Probably not seeing the forest for the trees anymore. When I am tired I tend to 
confuse simple things.

---markus---
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to