1

本「Making Apps with Moqui」のチュートリアルに取り組んでいる間、パート 1 の「Try Sub-Content」の下で、私の 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] でサブスクリーンをレンダリングしようとしましたが、subscreens.@default-item がなく、スクリーン パス [[apps, tutorial]] に有効なサブスクリーン名がありません

それは予想される応答ですか、それとも何か間違っていますか? 私の意見では、親画面にこのエラー メッセージが表示されるべきではありません。

4

1 に答える 1