Hi,
Below is my page template code to display the subpages as a navigation bar in the main page - (it works fine)
<af:panelGroupLayout id="pgl_22" layout="horizontal" halign="left">
<af:navigationPane id="np1" value="#{navigationContext.defaultNavigationModel.currentSelection.children}" var="node2" hint="bar">
<f:facet name="nodeStamp">
<af:commandNavigationItem text="#{node2.title}"
id="cni1" destination="#{node2.goLinkPrettyUrl}" targetFrame="_self">
</f:facet>
</af:navigationPane>
</af:panelGroupLayout>
<af:skipLinkTarget/>
<af:facetRef facetName="content"/>
</af:panelGroupLayout>
Here, since I'm giving the destination as the URL of the subpage, when I click the link in the page it is redirecting to the new url (subpage)..
But instead of this, is there any way to set the targetframe as the content of the main page.. Because I dont have any content for the main page.. Just it should display the content of the subpages..
for example - I have two subpages - subpg1 and subpg2.. When I click the main page, it should display the content of subpg1 by default and when I click the link subpg2 in nav bar, it should display the content of subpg2 in the same page.
Just trying to achieve this thro page template before creating <af:golink> for each page..
Thanks as always!