无法在应用程序布局控件(XPages)中设置元素

无法在应用程序布局控件(XPages)中设置元素,xpages,lotus-domino,xpages-extlib,Xpages,Lotus Domino,Xpages Extlib,好的,我有两个自定义控件: MainLayout:包含应用程序布局控件(来自Domino扩展库) Section1:包含一个带有标题和一些项目的节 现在我创建了一个新的XPage,并在上面拖动MainLayout控件 现在我想将Section1拖到页面上,并将其连接到MainLayout的LeftColumn区域。。。这看起来很琐碎,但我不能让它工作,因为某些原因 当我将section1控件拖动到leftColumn区域时,组件总是插入到页面顶部。“LeftColumn”旁边的小铅笔图标似乎

好的,我有两个自定义控件:

  • MainLayout:包含应用程序布局控件(来自Domino扩展库)
  • Section1:包含一个带有标题和一些项目的节
现在我创建了一个新的XPage,并在上面拖动MainLayout控件

现在我想将Section1拖到页面上,并将其连接到MainLayout的LeftColumn区域。。。这看起来很琐碎,但我不能让它工作,因为某些原因

当我将section1控件拖动到leftColumn区域时,组件总是插入到页面顶部。“LeftColumn”旁边的小铅笔图标似乎只是我的装饰,因为无论你左键点击还是右键点击它,都不会发生任何事情

这是怎么回事

更新:

这是添加MainLayout控件后我的xpage的外观:

<?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">

    <xp:this.resources>
        <xp:styleSheet href="/custom.css"></xp:styleSheet>
    </xp:this.resources>
    <xc:MainLayout></xc:MainLayout>

</xp:view>

MainLayout自定义组件的XML:

<?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.configuration>
            <xe:oneuiApplication titleBarName="Test"
                    placeBarName="Server1" legalText="YadaYada">
                <xe:this.footerLinks>
                    <xe:userTreeNode label="User 1"></xe:userTreeNode>
                </xe:this.footerLinks>
                <xe:this.bannerUtilityLinks>
                    <xe:loginTreeNode label="Login 1"></xe:loginTreeNode>
                </xe:this.bannerUtilityLinks>
                <xe:this.placeBarActions>
                    <xe:basicContainerNode label="Select server">
                        <xe:this.children>
                            <xe:basicLeafNode label="Server1"></xe:basicLeafNode>
                        </xe:this.children>
                    </xe:basicContainerNode>
                </xe:this.placeBarActions>
            </xe:oneuiApplication>
        </xe:this.configuration>
    </xe:applicationLayout>
</xp:view>

我还有一个自定义应用程序布局。 在我的自定义控件中,配置标记上方有以下代码

在使用自定义布局的XPage中,我通过以下代码引用了我的LeftColumn可编辑区域

您有xml源代码吗?在应用程序布局中,LeftColumn区域是一个可编辑区域,在显示为方面的xml源代码中,添加了key=“LeftColumn”xml,但我看不到任何表示方面声明的内容。如果要对3个主列使用可编辑区域,可以在布局控件的属性中勾选。这就增加了方面。当然,您可以手动添加它们。斯特维塞尔:那正是我想要的:-)非常感谢!太糟糕了,我不能将评论标记为正确答案。我没有那些方面声明。我甚至通过从头开始创建la来测试它。你自己添加代码了吗?如果是这样,你在哪里找到了相关文档?是的,我注意到应用程序布局需要这些方面,我已经再次测试过了。可以将镶嵌面保留在自定义控件中。但是在您的xpages中,您需要参考LeftColumn,请参见我答案中的第二个屏幕截图。