That FAQ entry is a little incomplete.

1. For those rules and using the D2WCustomComponent wrapper that is all you 
need to do. The custom component does not need to extend any specific class. 
2. If you want to create a true d2w component, that you can specify with one 
rule: 

        100: pageConfiguration = "ListTheEntity" and propertyKey = 
"theProperty" => componentName = "MyD2WCustomComponent"

Then I would recommend subclassing one of the ERDCustom*Component classes. They 
give you all of the methods/helpers needed to make that easy for you (though 
this assumes you would be willing to invest a little in figuring out how they 
are used).

D

> On Apr 21, 2015, at 11:10 AM, Theodore Petrosky <[email protected]> wrote:
> 
> on the wiki, under - D2W Rules Reference - Cookbook - FAQ in section 7.  How 
> do I easily use my own custom component in a Direct to Web page?
> 
> there are two rules and then step two, add the two methods to the java. What 
> should my component extend? I mean, is there a minimal class to extend it 
> like ERD2WPage? 
> 
> Step 2:
> Create a component in your project named 'MyThePropertyComponent' and give it 
> an 'object' and 'key' binding. The object will receive the current object, 
> and the key will receive the current propertyKey (as a string) from 
> DirectToWeb. Do with them what you will.
> 
> Or is giving it the object and key enough?
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to