Hi
I am quite new to XPages and, unfortunately, only do XPages development every 2 months - this leaves me always starting from scratch :o(
Anyway, I would like to use the extlib to quickly create a new application - it is not much at present - I have installed all the bits an pieces needed and the example xPagesExt.nsf work perfectly. I have spent the whole day today trying to get my very simple application using the Application Layout Custom Control to work - I have looked at a couple of videos on youtube (this one for example:
http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Demo_XPages_Extension_Library-Application_Layout__Page_Navigator_Controls) but they are either quite old or do not explain the creation in enough detail.
I have 2 custom controls (one for the application layout and one for the menu using a navigator) - ccLayout and ccMenu. ccMenu is embedded in ccLayout. I now want to use ccLayout on a couple of xPages. When testing the xPages I do not get the navigator / menu at all.
Are there any step-by-step examples of using the CURRENT extlib to create a simple application?
Here are the three elements as I currently have them:
ccLayout:
<?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"
xmlns:xc="http://www.ibm.com/xsp/custom">
<xe:applicationLayout id="applicationLayout1">
<xe:this.facets>
<xp:panel xp:key="LeftColumn">
<xc:ccMenu></xc:ccMenu>
<xp:callback facetName="LeftColumn" id="callback1"></xp:callback>
</xp:panel>
</xe:this.facets>
<xe:this.configuration>
<xe:oneuiApplication titleBarName="#{javascript:database.getTitle()}"
legalText="(c) Erne fittings GmbH" legalLogoStyle="text-align:right">
<xe:this.footerLinks>
<xe:basicContainerNode label="Container 1">
<xe:this.children>
<xe:basicLeafNode label="Homepage"
href="http://www.xxx.com" />
<xe:basicLeafNode href="https://webmail.xxx.com"
label="Webmail" />
</xe:this.children>
</xe:basicContainerNode>
</xe:this.footerLinks>
<xe:this.searchBar>
<xe:appSearchBar pageName="/main.xsp" />
</xe:this.searchBar>
</xe:oneuiApplication>
</xe:this.configuration>
<xp:callback id="OneUIMainAreaCallback" />
</xe:applicationLayout>
</xp:view>
now ccMenu:
<?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="navigator1">
<xe:this.treeNodes>
<xe:pageTreeNode label="Home" page="/xpMain.xsp"></xe:pageTreeNode>
<xe:separatorTreeNode></xe:separatorTreeNode>
<xe:pageTreeNode label="nach Datum" page="/xpNachDatum.xsp"></xe:pageTreeNode>
<xe:pageTreeNode label="nach Titel" page="/xpNachTitel.xsp"></xe:pageTreeNode>
</xe:this.treeNodes>
</xe:navigator>
</xp:view>
and finally one xPage where I would like to use ccLayout:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xc="http://www.ibm.com/xsp/custom">
<xc:ccLayout></xc:ccLayout>
</xp:view>
Does anybody know what I have done incorrectly? I cannot seem to find anything!
Thank you in advance
Ursus