Hi,

I don't have it tested now, but I guess first element in psml file is default higlighted.
You can change order of elements in menu using <layout position="N" /> in portlet tags.


Example:

<?xml version="1.0" encoding="iso-8859-1"?>
<portlets id="1">
<metainfo>
<title>Default Jetspeed Page</title>
</metainfo>
<control name="TabControl"/>
<controller name="CardPortletController">
<property name="parameter" value="pane"/>
</controller>
<portlets id="11">
<metainfo>
<title>My Home</title>
</metainfo>
<layout position="0" size="-1"/>
</portlets>
<portlets id="12">
<metainfo>
<title>My Home2</title>
</metainfo>
<security-ref parent="owner-only"/>
<layout position="-1" size="-1"/>
</portlets>
</portlets>


This created tab menu with:
- MyHome2
- MyHome - which was highlighted

Maybe it works only in tab menu, i don't know.

Jozef


Archana Turaga wrote:


So how is the position attribute related to what is selected in the menu.
I tried what you said but it did not work as i thought.

Thanks,
Archana




[EMAIL PROTECTED] 03/05/04 02:51 AM >>>


Hi,

i think, this should to help you in definition of panes. It looks first definition in PSML is default pane,
and order should be defined by position attribute.
<layout position="-1" size="-1"/>


Please send me a response, if it helped you.

Jozef

Archana Turaga wrote:



Hi,
I have the following menu:

A
B
C
D

I want to highlight B instead of the A (which gets selected by default). Is there a way that i can specify in the PSML file somehow that i want B highlighted. I see the controller code and seems as if somehow it figures out that the first entry in the list needs to be highlighted.

Please help.

Thanks,
Archana







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Reply via email to