Re: Override Component java class but still use same template
Re: Override Component java class but still use same template
- Subject: Re: Override Component java class but still use same template
- From: Chuck Hill <email@hidden>
- Date: Thu, 11 Jan 2007 20:30:32 -0800
Certainly.
public WOElement template()
{
return WOComponent.templateWithHTMLString((htmlString(),
bindingsString(),
context().session().languages());
}
where htmlString() and bindingsStrting() use WOResourceManager to
load SuperClass.wo/SuperClass.html and SuperClass.wo/SuperClass.wod
Chuck
On Jan 11, 2007, at 6:10 PM, Peter vandoros wrote:
Is there a way where i can have a custom sub class of a
WOComponent where the new component uses the template of the
original component?
I have a scenario where i have an element that requires custom
logic in code only for a particular client and i don't want to have
to maintain a copy of the template.
thanks
Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden