Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xpages 动态内容-从内部触发刷新_Xpages - Fatal编程技术网

Xpages 动态内容-从内部触发刷新

Xpages 动态内容-从内部触发刷新,xpages,Xpages,我有一个带有链接/按钮和动态内容的导航器。一切正常,内容显示良好。但是,我需要在动态内容本身中使用一个按钮来刷新内容,但它不起作用。位于外部的同一按钮会刷新动态内容中的内容。任何提示都将不胜感激。非常适合我 test.xsp <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/

我有一个带有链接/按钮和动态内容的导航器。一切正常,内容显示良好。但是,我需要在动态内容本身中使用一个按钮来刷新内容,但它不起作用。位于外部的同一按钮会刷新动态内容中的内容。任何提示都将不胜感激。

非常适合我

test.xsp

<?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:navigator
        id="navigator1">
        <xe:this.treeNodes>
            <xe:basicLeafNode
                label="switch A"
                submitValue="A">
            </xe:basicLeafNode>
            <xe:basicLeafNode
                label="switch B"
                submitValue="B">
            </xe:basicLeafNode>
        </xe:this.treeNodes>
        <xp:eventHandler
            event="onItemClick"
            submit="true"
            refreshMode="complete">
            <xe:this.action>
                <xe:changeDynamicContentAction
                    for="dynamicContent1"
                    facetName="key_#{context.submittedValue}">
                </xe:changeDynamicContentAction>
            </xe:this.action>
        </xp:eventHandler>
    </xe:navigator>
    <xe:dynamicContent
        id="dynamicContent1"
        defaultFacet="key_A">
        <xp:this.facets>
            <xc:ccA
                xp:key="key_A"></xc:ccA>
        </xp:this.facets>
        <xp:this.facets>
            <xc:ccB
                xp:key="key_B"></xc:ccB>
        </xp:this.facets>
    </xe:dynamicContent>
</xp:view>

ccA.xsp(复制并更新ccB.xsp)


我是一个
<?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">
    I am A
    <xp:link
        escape="true"
        id="link1"
        text="switch to B">
        <xp:eventHandler
            event="onclick"
            submit="true"
            refreshMode="complete">
            <xp:this.action>
                <xe:changeDynamicContentAction
                    for="dynamicContent1"
                    facetName="key_B">
                </xe:changeDynamicContentAction>
            </xp:this.action>
        </xp:eventHandler>
    </xp:link>
</xp:view>