xPage移动应用程序中找不到目标视图错误

时间:2013-02-11 01:43:16

标签: mobile xpages xpages-extlib

我正在尝试创建一个简单的移动xPage应用,并在尝试打开文档时收到以下错误:

dojox.mobile.view#preformTransition: destination view not found: null

我在单个页面控件中使用了多个应用程序页面控件,并且在页面名称引用中验证了没有拼写错误。

<?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:singlePageApp id="singlePageApp1" selectedPageName="homePage">
    <!-- Start of Home Page -->
    <xe:appPage id="appPage0" pageName="homePage">
        <xe:djxmHeading id="djxmHeading2" label="MOM Directory"></xe:djxmHeading>

        <xe:djxmRoundRectList id="djxmRoundRectList1">
            <xe:djxmLineItem id="djxmLineItem1" label="Everyone"
                moveTo="#viewPageEveryone">
            </xe:djxmLineItem>
            <xe:djxmLineItem id="djxmLineItem2" label="Lakeville"
                moveTo="#viewPageLakeville">
            </xe:djxmLineItem>
            <xe:djxmLineItem id="djxmLineItem3" label="Minneapolis"></xe:djxmLineItem>
            <xe:djxmLineItem id="djxmLineItem4" label="Northfield"></xe:djxmLineItem>
        </xe:djxmRoundRectList>

        </xe:appPage>
    <!--  End of Home Page -->
    <!-- Start of view Page Everyone -->
    <xe:appPage id="appPage1" pageName="viewPageEveryone" resetContent="true">
        <xe:djxmHeading id="djxmHeading1" label="Everyone View"></xe:djxmHeading>
        <xe:dataView id="dataView1" openDocAsReadonly="true"
            rows="9" pageName="#documentPage">
            <xp:this.facets>
                <xp:link escape="true" id="link1" xp:key="pagerBottomLeft"
                    text="More">
                    <xp:eventHandler event="onclick" submit="false">
                        <xp:this.script>
                            <xe:addRows for="dataView1" disableId="link1">
                            </xe:addRows>
                        </xp:this.script>
                    </xp:eventHandler>
                </xp:link>
            </xp:this.facets>
            <xe:this.data>
                <xp:dominoView var="view1" viewName="ALL">
                </xp:dominoView>
            </xe:this.data>
            <xe:this.summaryColumn>
                <xe:viewSummaryColumn columnName="last_name"></xe:viewSummaryColumn>
            </xe:this.summaryColumn>
        </xe:dataView>
    </xe:appPage>
    <!-- End of view Page everyone -->

    <!-- Start of view Page Lakeville -->
    <xe:appPage id="appPage3" pageName="viewPageLakeville" resetContent="true">
        <xe:djxmHeading id="djxmHeading3" label="Lakeville View"></xe:djxmHeading>
        <xe:dataView id="dataView2" openDocAsReadonly="true"
            rows="9" pageName="#documentPage">
            <xp:this.facets>
                <xp:link escape="true" id="link2" xp:key="pagerBottomLeft"
                    text="More">
                    <xp:eventHandler event="onclick" submit="false">
                        <xp:this.script>
                            <xe:addRows for="dataView2" disableId="link2">
                            </xe:addRows>
                        </xp:this.script>
                    </xp:eventHandler>
                </xp:link>
            </xp:this.facets>
            <xe:this.data>
                <xp:dominoView var="view2" viewName="LKVL">
                </xp:dominoView>
            </xe:this.data>
            <xe:this.summaryColumn>
                <xe:viewSummaryColumn columnName="last_name"></xe:viewSummaryColumn>
            </xe:this.summaryColumn>
        </xe:dataView>
    </xe:appPage>
    <!-- End of view Page Lakeville -->

    <!-- Start of Document Page -->
    <xe:appPage id="appPage2" pageName="documentPage" resetContent="true" preload="true">
        <xe:djxmHeading id="documentPageHeading" back="Back" label="Document" moveTo="homePage"></xe:djxmHeading>
        <xp:panel>
            <xp:this.data>
                <xp:dominoDocument var="document1"
                    formName="frmBB">
                </xp:dominoDocument>
            </xp:this.data>
        </xp:panel>
    </xe:appPage>
    <!-- End of Document Page -->

</xe:singlePageApp>

我搜索了很多,并发现了几个对此错误的引用,但到目前为止没有任何帮助。我正在运行带有UP1和Notes 9 Beta Designer客户端的8.5.3 FP3服务器。

提前致谢。

1 个答案:

答案 0 :(得分:0)

我在9.0上试过这个,你的标记Shean工作得很好。我不得不将它指向不同的数据源,但总而言之。 这就是我用过的......     

<xe:singlePageApp id="singlePageApp1" selectedPageName="homePage">
<!-- Start of Home Page -->
<xe:appPage id="appPage0" pageName="homePage">
    <xe:djxmHeading id="djxmHeading2" label="MOM Directory"></xe:djxmHeading>

    <xe:djxmRoundRectList id="djxmRoundRectList1">
        <xe:djxmLineItem id="djxmLineItem1" label="Everyone"
            moveTo="#viewPageEveryone">
        </xe:djxmLineItem>
        <xe:djxmLineItem id="djxmLineItem2" label="Lakeville">
        </xe:djxmLineItem>
        <xe:djxmLineItem id="djxmLineItem3" label="Minneapolis"></xe:djxmLineItem>
        <xe:djxmLineItem id="djxmLineItem4" label="Northfield"></xe:djxmLineItem>
    </xe:djxmRoundRectList>

    </xe:appPage>
<!--  End of Home Page -->
<!-- Start of view Page Everyone -->
<xe:appPage id="appPage1" pageName="viewPageEveryone" resetContent="true">
    <xe:djxmHeading id="djxmHeading1" label="Everyone View"></xe:djxmHeading>
    <xe:dataView id="dataView1" openDocAsReadonly="true"
        rows="9" pageName="#documentPage">
        <xp:this.facets>
            <xp:link escape="true" id="link1" xp:key="pagerBottomLeft"
                text="More">
                <xp:eventHandler event="onclick" submit="false">
                    <xp:this.script>
                        <xe:addRows for="dataView1" disableId="link1">
                        </xe:addRows>
                    </xp:this.script>
                </xp:eventHandler>
            </xp:link>
        </xp:this.facets>
        <xe:this.data>
            <xp:dominoView var="view1" viewName="v01">
            </xp:dominoView>
        </xe:this.data>
        <xe:this.summaryColumn>
            <xe:viewSummaryColumn columnName="subject"></xe:viewSummaryColumn>
        </xe:this.summaryColumn>
    </xe:dataView>
</xe:appPage>
<!-- End of view Page everyone -->

<!-- Start of view Page Lakeville -->
<xe:appPage id="appPage3" pageName="viewPageLakeville" resetContent="true">
    <xe:djxmHeading id="djxmHeading3" label="Lakeville View"></xe:djxmHeading>
    <xe:dataView id="dataView2" openDocAsReadonly="true"
        rows="9" pageName="#documentPage">
        <xp:this.facets>
            <xp:link escape="true" id="link2" xp:key="pagerBottomLeft"
                text="More">
                <xp:eventHandler event="onclick" submit="false">
                    <xp:this.script>
                        <xe:addRows for="dataView2" disableId="link2">
                        </xe:addRows>
                    </xp:this.script>
                </xp:eventHandler>
            </xp:link>
        </xp:this.facets>
        <xe:this.data>
            <xp:dominoView var="view2" viewName="LKVL">
            </xp:dominoView>
        </xe:this.data>
        <xe:this.summaryColumn>
            <xe:viewSummaryColumn columnName="last_name"></xe:viewSummaryColumn>
        </xe:this.summaryColumn>
    </xe:dataView>
</xe:appPage>
<!-- End of view Page Lakeville -->

<!-- Start of Document Page -->
<xe:appPage id="appPage2" pageName="documentPage"
    resetContent="true" preload="true">
    <xe:djxmHeading id="documentPageHeading" back="Back"
        label="Document" moveTo="homePage">
    </xe:djxmHeading>
    <xp:panel>
        <xp:this.data>
            <xp:dominoDocument var="document1" formName="f01">
            </xp:dominoDocument>
        </xp:this.data>
        <xe:formTable id="formTable1">
            <xe:formRow id="formRow1" label="Subject: ">
                <xp:inputText id="inputText1"
                    value="#{document1.subject}">
                </xp:inputText>
            </xe:formRow>
        </xe:formTable>

    </xp:panel>
</xe:appPage>
<!-- End of Document Page -->

也许应用程序本身还有其他东西正在破坏你的东西。 您没有将应用程序设置为特定的Dojo版本?或者像这样的任何其他限制?