What is the best way to inject a template?

I tried to use the method based on the wiki example of default  
template associated with an element:

private Template template
        public getTemplate() { return template }
        public void setTemplate(Template template) { this.template = template }

public void processElement () {
        . . .
}

And the in the site.xml

<element  . . .>
<property name="template">
<template type="html">common.navigation</template>
</property>
</element>

When I explicitly declare the template with "Template template =  
getHtmlTemplate("common.navigation")", then everything works and gets  
printed out normally, but when I use the above method, I get an error  
that says it can not find the embedded element, when I comment out "  
processEmbeddedElement(template, "CategoryEntry"); " in the  
implementation, then the template gets printed out with the static  
html and so does  ${v ELEMENT:CategoryEntry /}.

I also tried several other methods to inject a template buy viewing  
the API for Template and ElementSupport, along with several others,  
most of the time template ended up being null, or the same problem as  
above. I tried so many things and I included one at least with a  
frame of reference.  I played around with code implementation and the  
template itself, just to see if I could get anything to work, but  
alas, to no avail.

What am I missing?

Thanks for any help.

Austin 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"rife-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to