Re: WOComponent Template
Re: WOComponent Template
- Subject: Re: WOComponent Template
- From: Jonathan Rochkind <email@hidden>
- Date: Mon, 8 Mar 2004 11:25:29 -0600
Indeed template() is called by the WO framework when it wants the
template for a page. That's the kind of 'framework' thinking that
guides WO's overall design---certain methods are called by the
framework, those methods may have a default implementation, but you
can over-ride and provide your own implementation to customize
behavior. template() is one such method. Over-ride to provide a
custom implemetnation of how a WOComponent's template() is found.
--Jonathan
At 7:14 PM +0100 3/6/04, Richard Bruch wrote:
Thanks Chuck,
quite subtle logic. I would rather prefer a kind of an explicit
pageWithTemplate() function to associate them with each other so i hope
template() is called by WO anytime it needs the template for the given
component object. Otherwise it wouldn't be possible to implement customizing
on a per-component basis.
Richard
----- Original Message -----
From: Chuck Hill <email@hidden>
To: Richard Bruch <email@hidden>; <email@hidden>
Sent: Saturday, March 06, 2004 6:48 PM
Subject: Re: WOComponent Template
Return it from the template() method.
At 12:19 PM 06/03/2004 +0100, Richard Bruch wrote:
>Hello List,
>
>we have several partners for whom we want to offer our solution in
customized
>design.
>While the application logic, Java classes and .wod-files remain the same,
the
>HTML and stylesheets can be quite different from case to case so it would
be
>really cool if we were able to share common elements as far as possible.
In
>the documentation i found the function WOComponent.templateWithHTMLString
but
>i can't see where i should pass the WOElement object generated by it to
obtain
>a customized component.
>
>Thankfully,
>
>Richard
>_______________________________________________
>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.
>
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.
_______________________________________________
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.