OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exoplatform List | January 2008 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [exoplatform] Call to groovy templates


Thanks for the response!
I have also noticed that you use a "par:" prefix in the portlet-preferences.xml. For instance,


<portlet-preferences>
<owner-type>portal</owner-type>
<owner-id>classic</owner-id>
<window-id>portal#classic:/web/FooterPortlet/footer</window-id>
<preference>
<name>template</name>
<value>par:/groovy/groovy/webui/component/UIFooterPortlet.gtmpl</value>
<read-only>false</read-only>
</preference>
</portlet-preferences>


Does the "par:" belong to the same mechanism we're talking about? And if it is the case, can we use in the @ComponentConfig annotation? And what is its meaning?
Thanks in advance,


Cédric.

hoa.pham a écrit :
Hi,
When you using a template inside your war, please use "app:".
The prefix: "system" is used when you use a template outside your war, and in portal.war where we store system template as webui component...


Cédric TRAN-XUAN wrote:
Actually, I have got two portlets in my war :
1) one that calls the groovy template "system:/groovy/webui/form/UIFormTabPane.gtmpl" and that works fine. And the war does not contain the groovy template.
2) one that calls "system:/groovy/portal/webui/component/UIIFramePortlet.gtmpl" or "app:/groovy/portal/webui/component/UIIFramePortlet.gtmpl" and I have got a java exception if I don't copy this template to my war.
So, I wonder why I have got those two different behaviours.


Cedric.

Cédric TRAN-XUAN a écrit :
Hi all,
First of all best wishes and happy new year to everybody!
Java classes call groovy templates through the annotation @ComponentConfig but does anyone know the differences between :


template = "app:/groovy/portal/webui/component/UIIFramePortlet.gtmpl"


and

template = "system:/groovy/portal/webui/component/UIIFramePortlet.gtmpl"

So, what is the difference between "app:" and "system:" and which other values can we have?

Regards,

Cédric.





<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.