Re: Ponder: Delegate Progress! ...
Ramsey Gurley <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
I was about to reply with exactly this :D
One change though, your first rule should look like
100 : (pageConfiguration like 'ListUser*' and propertyKey = 'leftControllerAction') => leftControllerChoices = ("_inspect", "runAs") [com.webobjects.directtoweb.Assignment]
The action names are the same as the method names on your delegate. Since you subclassed, you already have _inspect(), so you just need to implement runAs(). I have localized strings to map _inspect => Inspect.
Actually, if you're using a recent browser, you probably only see a little SVG button instead for inspect.
Ramsey
On Dec 21, 2012, at 8:40 AM, James Cicenia wrote:
> Ramsey -
>
> First I created a rule:
> 100 : (pageConfiguration like 'ListUser*' and propertyKey = 'leftControllerAction') => leftControllerChoices = ("Inspect", "RunAs") [com.webobjects.directtoweb.Assignment]
>
> I subclassedR2DDefaultBranchDelegate
>
> I then found a rule to set it :
>
> 100 : pageConfiguration like 'ListUser*' => pageController = "com.pp.delegates.R2D2PPAdminUserListDelegate" [R2DDelayedRootPageControllerAssignment]
>
> Is that how I am to do this? Am I missing something:
>
> How do you map your actions? I didn't see how you convert "Inspect" to "_inspect" ?
>
> Thanks for this framework. I am liking this delegate pattern a lot.
>
> James
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d_______________________________________________
> Wonder-disc mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wonder-disc
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Wonder-disc mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wonder-disc