• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Configuring & Extending D2WList
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Configuring & Extending D2WList (From: Steve Sharman <email@hidden>)

  • Prev by Date: JavaEOGenerator....
  • Next by Date: Re: Apache 2+ with WebObjects 5.2.4/ Apache 1.3.36 help
  • Previous by thread: Configuring & Extending D2WList
  • Next by thread: JavaEOGenerator....
  • Index(es):
    • Date
    • Thread