• 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: D2WEditRelationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2WEditRelationship


  • Subject: Re: D2WEditRelationship
  • From: Ramsey Lee Gurley <email@hidden>
  • Date: Mon, 15 Feb 2010 21:17:31 -0500

On Feb 15, 2010, at 5:32 PM, Mark Wardle wrote:

> Dear all,
>
> I'm trying to subclass and customise D2WEditRelationshipPage to create
> a custom look (in fact, I'm subclassing ERNEUEditRelationshipPage).
>
> Specifically, I want to be able to customise the page using the rule system.
>
> Firstly, I want to hide the "query" button and the "query" panel.
>
> In the WOD file, I can see:
>
> DisplayQuery: WOConditional {
> 	condition = displayQuery;
> }
>
> but the displayQuery attribute of the component is part of
> D2WEditRelationshipPage, and I don't have the source code to that.


Jadclipse is your friend (^_^)

http://wiki.objectstyle.org/confluence/display/WOL/Useful+Eclipse+Plugins

That isn't rule based. It is simply a boolean returning internal page state.


> Secondly, I want to customise the browser component - in fact, replace
> it with an embedded D2WList instead but all of the actions link into
> D2WEditRelationshipPage and without decent documentation (and the
> source code), it is very difficult.


I'm not sure I follow you exactly, but it sounds like you may want to look into subclassing a master-detail type of page.  It looks a bit like an edit relationship page with no query.

http://developer.apple.com/legacy/mac/library/documentation/WebObjects/Developing_With_D2W/WalkThrough/WalkThrough.html#//apple_ref/doc/uid/TP30001015-DontLinkChapterID_5-TPXREF104

Or perhaps a edit list page from Wonder.


> This is an issue with subclassing more generally obviously.
>
> Am I missing some obvious source of documentation for these
> components, should I fire up a java decompiler, and is there a rule
> that is checked by D2WEditRelationshipPage to disable/enable querying?
>
> Thanks,
>
> Mark


If you ever want to see *all* the rules (And you're using Wonder), just paste

log4j.logger.er.directtoweb.rules=DEBUG

into your properties file.

Ramsey

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: D2WEditRelationship
      • From: Mark Wardle <email@hidden>
    • Re: D2WEditRelationship
      • From: Mark Wardle <email@hidden>
References: 
 >D2WEditRelationship (From: Mark Wardle <email@hidden>)

  • Prev by Date: Re: Obtaining EO from EOGlobalID
  • Next by Date: Re: Obtaining EO from EOGlobalID
  • Previous by thread: D2WEditRelationship
  • Next by thread: Re: D2WEditRelationship
  • Index(es):
    • Date
    • Thread