Let me add a couple of shortcuts:

>(1) Create a new app from scratch and in the wizard select "Direct to
>Web". This will set up all the D2W stuff in your project. (I don't have
>any advise for those of you who want to add D2W components to an
>existing non-D2W WebObjects app).


Alternatively, all you need to do is to add DirectToWeb.framework to the 
frameworks of your project, add the user.d2wmodel of a new DirectToWeb 
projects to the resources bucket of your project and you should be in 
business.

>
>(2) To use your own page after the login page, implement Main.java's
>defaultPage() method to return your page.

Again, this is only necessary if you created the project as a D2W 
project. See the Rental Store example for a 'just embedding' case.

>
>(3) Create a new Web Component, open the D2W palette, and drag over the
>D2W componet you want (it may need to be placed inside a WOForm, I don't
>have time to verify this).

no WOForm needed.

>
>(5) You may have to create a WODisplayGroup and bind the D2W's
>dataSource to the WODisplayGroup's dataSource, if for example, you want
>the results of a query to display in a D2WList or D2WSelect component.

You can also pass the dataSource directly from one to the next..

          -P




----------------------------------------------------------------------
Patrice Gautier                                   (408) 974-0285

WebObjects Tools, Manager
Apple Internet & Enterprise Software        mailto:[EMAIL PROTECTED]
Apple Computer, Inc.


Reply via email to