Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8800

UI5 XML View Nesting

$
0
0

Hi All,

I am just starting out in UI5 and testing out navigation and following the MVC style.  I have created XML view (called Application) and associated two JS Views to represent different pages to navigate between.  When I apply nesting (see the Application tag in the below example), I end up with an error that the application tried to load a javascript file with the same name as XML tag I use to nest the pages  (it tries to load from the same path as specified by the xmlns attribute in the core tag).

 

<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc"

  xmlns="sap.ui.commons" controllerName="testmvc.Application" xmlns:html="http://www.w3.org/1999/xhtml">

  <Application id="theApp">

  <mvc:JSView id="firstPageView" viewName="testmvc.FirstPage"></mvc:JSView>

  <mvc:JSView id="secondPageView" viewName="testmvc.SecondPage"></mvc:JSView>

  </Application>

</core:View>

 

I can see in the MVC demo example (see attached link) that no such javascipt file is created or even requested for (using chrome deve tools)

 

SAPUI5 SDK - Demo Kit

 

I should point out that I created this as a desktop application and not a mobile application.  Don't think this is an issue as I assme naviation should work the same in a desktop application. 

 

Any tips to help resolve this would be hugely appreciated....

 

Thanks,

 

Katan


Viewing all articles
Browse latest Browse all 8800

Trending Articles