Software Defined Networking
1752571 Members
5225 Online
108788 Solutions
New Discussion

Re: UI Project, JavaScript load

 
TurboLuk
Occasional Advisor

UI Project, JavaScript load

Hi friends,

 

I spent almost two days to identify what caused Admin Console crash, so that only title bar appears.

I found out, that js.html located in myapp-ui/src/main/resources/com/mycompany/myapp/ui is being loaded two times.

 

My question is: What inside UI project could raise js.html to be loaded two times?

 

 

1 REPLY 1
sdnindia
Trusted Contributor

Re: UI Project, JavaScript load

Hello TurboLuk,

 

We are glad to know that your problem is solved now.

However As per the programming guide2.3 [page 200 -201] Integrating Views to the SDN Controller GUI,

The second parameter (“com/hp/hm/ui”) of the super(…) call in the constructor of the UIExtension.java listing specifies the location of the two files the

framework uses to integrate the views: css.hml and js.html. These files act as links to the application’s cascading style sheets [41] and

the application’s JavaScript files respectively.

So it looks like while integrating views to the SDN Controller GUI that super(…) call was not correctly coded.

 

Please let us know what exactly you were trying to do.

 

Thanks,

HP SDN Team