【发布时间】:2014-08-13 10:22:28
【问题描述】:
在编写“使用 Moqui 制作应用程序”一书中的教程时,在“尝试子内容”下的第 1 部分中,我的 tutorial.xml 屏幕如下所示:
<screen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/xml-screen-1.4.xsd"
require-authentication="false" include-child-content="true">
<widgets>
<label type="h1" text="Hello world!"/>
<subscreens-active/>
</widgets>
</screen>
位于 url localhost:8080/apps/tutorial/hello.html 的子屏幕按预期工作。当我使用 url localhost:8080/apps/tutorial 转到父屏幕时,我的父屏幕在 hello world 消息之后有一条错误消息,如下所示:
世界你好! 尝试在屏幕 [component://tutorial/screen/tutorial.xml] 中渲染子屏幕,但没有子屏幕。@default-item,屏幕路径 [[apps, tutorial]] 中没有更多有效的子屏幕名称
这是预期的反应还是我犯了一些错误?在我看来,父屏幕不应显示此错误消息。
【问题讨论】:
-
你检查过本书的勘误表,看看是否有更新的代码 sn-p?
-
本书没有勘误表。最新的代码与我上面发布的类似。本书的教程也在这里上传:moqui.org/framework/docs/Tutorial.html
标签: moqui