Ramsey,

Thank you - exactly what I needed.

I should have known I had selected the wrong page to subclass as I was
contemplating too many edits! My other "look" subclasses were v
simple.

Mark

Ps

I too am intrigued by Mr. Shrag's comment on the other thread!


On Tuesday, February 16, 2010, Ramsey Lee Gurley <[email protected]> wrote:
>
> 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

-- 
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to