• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Override Component java class but still use same template
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Override Component java class but still use same template (From: Peter vandoros <email@hidden>)

  • Prev by Date: Re: Tip: automating EOGenerator
  • Next by Date: Re: Tip: automating EOGenerator
  • Previous by thread: Override Component java class but still use same template
  • Next by thread: Re: Problems Debugging Framework Source
  • Index(es):
    • Date
    • Thread