Re: Actions from D2W pages
Re: Actions from D2W pages
- Subject: Re: Actions from D2W pages
- From: David LeBer <email@hidden>
- Date: Mon, 26 Oct 2009 08:44:25 -0400
On 2009-10-26, at 7:53 AM, Mark Wardle wrote:
Hi all,
Would be grateful for advice regarding invoking actions from D2W
pages, specifically, List and Inspect pages.
I would probably just punt and create a custom property display
component that did what I wanted there.
Probably, the easiest way is to use the D2WCustomComponent wrapper:
pageConfiguration = "ListPatient" and propertyKey = "theProperty" =>
componentName = "D2WCustomComponent"
pageConfiguration = "ListPatient" and propertyKey = "theProperty" =>
customComponentName = "MyDALinkComponent"
The 'MyDALinkComponent' needs to have an object and key binding. The
object will get the current list item and the key will get the current
property key.
Do with them what you will.
I'd like to invoke a directaction from a D2W list page. I don't wish
to have a separate button with a drop-down menu, but instead make a
property a hyperlink. I've spotted D2WHyperlink but that doesn't seem
to have direct action bindings.
I am aware of ERDBranchDelegate and specifically, found the tutorial
on http://wiki.objectstyle.org/confluence/display/WO/D2W+Flow+Control
particularly useful.
However, that is a bit heavyweight for what I would like.
I assumed there would be a component ERD2WDisplayDirectActionHyperlink
with bindings such as directAction and actionClass settable via
D2WContext, but there isn't! Normally that means there is a better way
and I'm missing something obvious?
task = 'list' and entity.name = 'Patient' => componentName =
"ERD2WDisplayHyperlink"
task = 'list' and entity.name = 'Patient' => directAction =
"showPatient"
task = 'list' and entity.name = 'Patient' => actionClass =
"Patients"
Of course, not clear to me how one would then pass parameters
either....
How does one turn a property into a hyperlink (be it a component
action or directaction) from d2w? All help gratefully appreciated!
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
twitter: http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden