1
votes

I am attempting to get to grips with an XPages project after a colleague has moved on and would appreciate if someone would clarify one thing on one control.

The Xpage is named Home and it has a component named LeftOneUI that provides a horizontal list of menu options. The top of the source of the Home XSP looks like this;

<xc:OneUILayout id="cc4cconeuilayout"
  navigationPath="/OneUI/Home">
  <xp:this.facets>
      <xp:panel xp:key="LeftColumn" id="panel4">
         <xc:LeftOneUI id="cc4ccLeftOneUI"></xc:LeftOneUI>
      </xp:panel>

The top of the source for the LeftOneUI looks like this;

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"  
     xmlns:xe="http://www.ibm.com/xsp/coreex">
   <xe:navigator id="outline">
     <xe:this.treeNodes>
         <xe:pageTreeNode page="home" label="Home"
              selection="/OneUI/Home">
         </xe:pageTreeNode>

I understand the "Home" part. I understand the label part. I understand what a pageTreeNode does. I understand how the Custom Control is inserted into the XPage etc. But what I can't understand so far is, in the "selection" part how does the /OneUI/ part work?? Can someone explain this please?

I just can't seem to see where the /OneUI/ comes into it although I feel it is something to do with the "Navigation Path".

Thanks in advance

AJF

1

1 Answers

4
votes

The selection property is using regEx to match itself with the navigationPath custom property.

See this answer as well: How do you use the Selected property of the navigator?