Re: Reusable Components [solved & summarised]
Re: Reusable Components [solved & summarised]
- Subject: Re: Reusable Components [solved & summarised]
- From: Ray Ackland <email@hidden>
- Date: Mon, 20 Oct 2003 07:25:32 +1300
Andrew,
Thanks for you contribution. I had just about completed writing several
paragraphs about my continued confusion, when I just thought of trying
something. I have now got it figured out. It is indeed easy - as usual
- once you have figured out the right combinations of settings.
For anyone else interested in doing things with reusable components,
here are the things that I found were so obvious (when you know the
answer) that they weren't being mentioned *explicitly*.
create a sub-component (the one which will be embedded in other
pages). This will generally be set to be a partial document.
In this component, choose the API editor (either from the window
menu, or the tool bar). Add to this any variables that you will want to
be passed between the parent and this component.
the "required" setting refers to whether the parent will need to bind
to this variable.
Get your parent component (the one which will hold the other
component).
add your sub-component (otherwise known as reusable component) by
either dragging from project builder into the parent, or by using the *
on the tool bar
The bindings that you previously specified in the sub-component will
appear in the info window just like the "value" etc bindings that you
would find in say, a string component.
use your new reusable component just like you would a standard one.
Easy - when you know how!!
Ray.
On Sunday, Oct 19, 2003, at 10:24 Pacific/Auckland, Andrew Lindesay
wrote:
Hello Ray;
Just make a component in WOBuilder and then use the "Window->API..."
menu option to create predefined bindings on your component. From
there, the component will appear in the WOBuilder as you edit other
components -- it gets magically sucked out of ProjectBuilder somehow.
You can insert your custom component using the "*" button at the top
of the WOBuilder document window. It's really easy once you've done
it once.
To speed things up if you use a component often, you can construct a
"palette" with your reusable components on it.
Hope this help.
cheers.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.