You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Luc Dewavrin <lu...@yahoo.com> on 2002/11/12 14:32:37 UTC
RE: controls and portlet ( _control parameter)
>Association between Portlet and PortletControl is
>done through
>several means:
>- there's a default control used for any portlet
>which is defined
> in the /WEB-INF/conf/JetspeedResources.properties
> (services.Portaltoolkit.default.control)
>- in the Registry, a Portlet can have a "_control"
>parameter
> that will make this specific portlet always use
>this control
>- in the PSML page description files, a portlet can
>have
> a <control> tag that will associate them only for
>this page
The <control> tag method in PSML page does actually
work for me.
But the "_control parameter" method does not work:
Here's how i declared my portlet:
<portlet-entry name="HelloVelocity" hidden="false"
type="ref" parent="CustomizerVelocity"
application="false">
<meta-info>
<title>HelloVelocity</title>
<description>Simple Velocity Portlet
/description>
</meta-info>
<classname>org.apache.jetspeed.portal.portlets.CustomizerVelocityPortlet</classname>
<parameter name="template" value="hello"
hidden="false"
cachedOnName="true" cachedOnValue="true"/>
<parameter name="_control"
value="MyPortletControl"
hidden="false" cachedOnName="true"
cachedOnValue="true"/>
<parameter name="action"
value="portlets.HelloAction"
hidden="false" cachedOnName="true"
cachedOnValue="true"/>
<parameter name="text" value="Hello World in
Velocity"
hidden="false" cachedOnName="true"
cachedOnValue="true"/>
<media-type ref="html"/>
<url cachedOnURL="true"/>
<category group="Jetspeed">demo</category>
<category
group="Jetspeed">velocity.demo</category>
</portlet-entry>
Of course i declared the MyPortletControl in the
registry ( and it works when i link it to a portlet in
a PSML file).
Any idea?
Thanks,
Luc
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>