Here are working examples of my custom controls and controller registries. I highly
recommend you create separate .xreg files for both your controls and controllers.
My custom controllers
<?xml version="1.0" encoding="UTF-8"?>
<registry>
<portlet-controller-entry name="EssentialTabController" hidden="false">
<meta-info>
<title>Essential Tab pane</title>
</meta-info>
<classname>org.apache.jetspeed.portal.controllers.VelocityPanedPortletController</classname>
<parameter name="template" value="card.vm" hidden="false"/>
<parameter name="action" value="controllers.PanedControllerAction"
hidden="false"/>
<parameter name="parameter" value="pane" hidden="false"/>
<parameter name="defaultpane" value="0" hidden="false"/>
<parameter name="control" value="EssentialTabControl" hidden="false"/>
<media-type ref="html"/>
</portlet-controller-entry>
<portlet-controller-entry name="LayoutTabController" hidden="false">
<meta-info>
<title>Essential Tab pane with Layout</title>
</meta-info>
<classname>com.rippe.essential.portal.controllers.EssentialPortletController</classname>
<parameter name="template" value="card.vm" hidden="false"/>
<parameter name="action" value="controllers.PanedControllerAction"
hidden="false"/>
<parameter name="parameter" value="pane" hidden="false"/>
<parameter name="defaultpane" value="0" hidden="false"/>
<parameter name="control" value="EssentialTabControl" hidden="false"/>
<media-type ref="html"/>
</portlet-controller-entry>
</registry>
my custom controls:
<?xml version="1.0" encoding="UTF-8"?>
<registry>
<portlet-control-entry name="EssentialTitlePortletControl" hidden="false">
<meta-info>
<title>Essential titled control</title>
</meta-info>
<classname>org.apache.jetspeed.portal.controls.VelocityPortletControl</classname>
<parameter name="theme" value="essential/essential.vm" hidden="false"/>
<parameter name="simple" value="true" hidden="false"/>
<media-type ref="html"/>
<media-type ref="wml"/>
</portlet-control-entry>
<portlet-control-entry name="EssentialBackgroundPortletControl" hidden="false">
<meta-info>
<title>Essential titled control which uses a background and
a cap</title>
</meta-info>
<classname>org.apache.jetspeed.portal.controls.VelocityPortletControl</classname>
<parameter name="theme" value="essential/essential-background.vm"
hidden="false"/>
<parameter name="simple" value="true" hidden="false"/>
<media-type ref="html"/>
<media-type ref="wml"/>
</portlet-control-entry>
<portlet-control-entry name="EssentialTabControl" hidden="false">
<meta-info>
<title>Essential Tab control</title>
</meta-info>
<classname>org.apache.jetspeed.portal.controls.VelocityPortletSetControl</classname>
<parameter name="theme" value="essential/essential-tab.vm"
hidden="false"/>
<media-type ref="html"/>
</portlet-control-entry>
</registry>
hth,
-scott
> -----Original Message-----
> From: Sangam Dash [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 18, 2003 1:21 PM
> To: Jetspeed Users List
> Subject: Re: Space between menu and sub menu
>
> thanks a lot guys...
> the menu size is changing but i think i need to create my own controls
> now as the menu titles varies a lot depending on the text so i think i
> need to use diff controls to get the space part going...
> could u please guide me how to create new controls?
> should i just go ahead and create new vm files and put them in the
> registry or something else..
> thanks
> sangam dash
>
> Weaver, Scott wrote:
>
> >Also remember,
> >
> >You can create your own custom controls and controllers to use in
> addition to the default ones supplied by jetspeed. That way you won't
> have to worry about your changes getting overwritten when you upgrade
> jetspeed versions.
> >
> >
> >-scott
> >
> >
> >
> >>-----Original Message-----
> >>From: Pierre Henry [mailto:[EMAIL PROTECTED]
> >>Sent: Tuesday, March 18, 2003 8:45 AM
> >>To: Jetspeed Users List
> >>Subject: RE: Space between menu and sub menu
> >>
> >>Hi Sangam !
> >>
> >>To correct this you shouldn't modify any class, but the file
> >>WEB-INF/templates/vm/controls/jetspeed-menu.vm.
> >>
> >>I tried to add width=100% to the table defined at line 13 in this file :
> >>
> >> <table cellspacing="0" width="100%" border="0" cellpadding="0"
> #if
> >>(${skin.TabStyleClass}) class="$skin.TabStyleClass" #end>
> >>
> >>This make the left menu expand in the previous space. This can be too
> much
> >>on some screen resolution. Find where the width of the table is defined
> >>(try
> >>to look for "20%"), and try to replace it by a fixed width (in pixels).
> >>
> >>Hope this helps.
> >>
> >>Pierre
> >>
> >>
> >>
> >>>-----Original Message-----
> >>>From: Sangam Dash [mailto:[EMAIL PROTECTED]
> >>>Sent: lundi, 17. mars 2003 20:28
> >>>To: Jetspeed Users List
> >>>Subject: Space between menu and sub menu
> >>>
> >>>
> >>>Hi everybody,
> >>>
> >>>
> >>>I have a page where i have a Menu which contains 3-4 menu items in it.
> >>>When somebody clicks on the Menu items another menu pane comes by the
> >>>side of the main menu with some other menu items.
> >>>i hope you got the page.
> >>>Evrything works fine but on the page there is a space between
> >>>two menu
> >>>panes and when the second menu opens up by the side of the first menu
> >>>there is a space in between the two menus.
> >>>Has anybody faced this problem before.
> >>>Do you know which java class i have to modify to solve this problem.
> >>>Sometimes depending on the menu pane title length the space
> >>>disappears.
> >>>
> >>>Need some help...
> >>>
> >>>Thanks
> >>>Sangam Dash
> >>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >
> >
> >
>