Re: Configuring & Extending D2WList
Re: Configuring & Extending D2WList
- Subject: Re: Configuring & Extending D2WList
- From: Guido Neitzer <email@hidden>
- Date: Thu, 15 Nov 2007 20:46:08 -0700
On 15.11.2007, at 18:21, Steve Sharman wrote:
Firstly I want to be able to hide the standard "delete" and "edit"
buttons on the list component under certain circumstances. I guess
that might be something that I can configure with a particular set
of D2W rules, but I'm not sure I can see what the rule should
contain - something about making the entity read-only for this
instance of the D2WList?
At least in Wonder components, there are a couple of ways to do this:
pagecConfiguration = 'ListMyEntity' => isEntityEditable = false [100]
and
pagecConfiguration = 'ListMyEntity' => isEntityDeletable = false [100]
or, if you want to control the actions display (pretty sure, that
works only with ERD*):
pageConfiguration = 'ListMyEntity' => actions = {} [100]
or:
pageConfiguration = 'ListMyEntity' => actions = {"right" =
("editAction", "deleteAction");} [100]
I'm guessing that the way to be going here is to create a custom
subclass of D2WList (or ERD2WList, I guess) and override the edit/
delete action methods
I'd use either a custom property level component or an
ERDControllerButton. The BugTracker in Wonder is a somewhat complex
but very useful example for this.
cug
--
http://www.event-s.net
--
http://www.event-s.net
_______________________________________________
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