Warning "Unkown namespace: sap.ui.core.mvc" - how to fix it? - sapui5

I get this error, i can't work on my app because of it. How do I fix that?
I even tried creating a new project - but got the same error there.
<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" controllerName="project1.controller.View1" displayBlock="true">
<!-- ... -->
</mvc:View>

Related

.Net Maui - ShellContent navigation issue

I am trying to navigate to page "TestView" which is in folder "Views" of my VisualStudio solution.
Here the compile Error.
Error XFC0000 Cannot resolve type ":TestView"
AppShell.xaml file
<FlyoutItem Title="test" FlyoutIcon="List">
<ShellContent
Title="Test Page"
ContentTemplate="{DataTemplate local:TestView}"
Route="TestView" />
</FlyoutItem>
Need Help to solve the Compile Error
Here the link to my GitHub project MPC-Calculator Maui Branch
Change your namespace in your shell from:
xmlns:local="clr-namespace:MPC_MassPropertiesCalculator_MAUIapp"
To this:
xmlns:local="clr-namespace:MPC_MassPropertiesCalculator_MAUIapp.Views"
Basically if you wanna refer a View in your XAML you need to have its exact namespace and then the name of your View.
As mentioned, you can update the name of the local namespace or define a new one.
For example, add this to the Shell
xmlns:mynamespace="clr-namespace:MPC_MassPropertiesCalculator_MAUIapp.Views" and then you can use it with
<FlyoutItem Title="test" FlyoutIcon="List">
<ShellContent
Title="Test Page"
ContentTemplate="{DataTemplate mynamespace:TestView}"
Route="TestView" />
</FlyoutItem>

Magneto 2.2.0 add header and footer to checkout page

How to add header and footer to checkout page. I used the override method. I created checkou_index_index.xml file in following path layout\override\theme\Magento\blank in my custom theme.
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="minicart" remove="false" />
<referenceContainer name="header.panel" remove="false" />
<referenceBlock name="top.search" remove="false" />
<referenceBlock name="catalog.compare.link" remove="false" />
<referenceBlock name="catalog.topnav" remove="false"/>
<referenceContainer name="footer-container" remove="false"/>
</body>
</page>
But I received following error.
Overriding view file 'C:\/xampp\/htdocs\/my_website\/app\/design\/frontend\/Vendor\/basic\/Magento_Checkout\/layout\/override\/theme\/Magento\/blank\/checkout_index_index.xml' does not match to any of the files
What is the cause of this error and how to fix this error?
First you have to create custom theme and once its done then create checkout_index_index.xml file in app/design/frontend/Magenticians/Mytheme/Magento_Checkout/layout and paste this code:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
    <referenceBlock name="minicart" remove="false" />
    <referenceContainer name="header.panel" remove="false" />
    <referenceBlock name="top.search" remove="false" />
    <referenceBlock name="catalog.compare.link" remove="false" />
    <referenceBlock name="catalog.topnav" remove="false"/>
    <referenceContainer name="footer-container"  remove="false"/>
</body>
</page>
Then create customcss.css in app/design/frontend/Magenticians/Mytheme/web/css and paste this code:
.action-auth-toggle
{
display: block;
}
Now open a default.xml file of your custom theme and paste this code:
<head>
        <css src="css/customcss.css" />
</head>
After the implementation, don't forget to run necessary CLI commands.
Try putting your custom xml file in:
C:\xampp\htdocs\my_website\app\design\frontend\Vendor\basic\Magento_Checkout\view\frontend\layout\checkout_index_index.xml
Because, if i'm not mistaken, the file to override is in:
C:\xampp\htdocs\my_website\vendor\magento\module-checkout\view\frontend\layout\checkout_index_index.xml
Hope this helps you.

how to use tablelayout in zk framework

I am new to ZK framework and i am using its latest version.I am trying to use tablelayout in zul but its giving error.tried importing zkmax.jar but it did not work for me.can somebody help?
here is the sample code:
<tablelayout columns="2">
<tablechildren>
<panel title="Table 1" border="normal" maximizable="true"
collapsible="true" width="200px" height="200px">
<panelchildren>Panel Content</panelchildren>
</panel>
</tablechildren>
<tablechildren>
<panel title="Table 2" border="normal" maximizable="true"
collapsible="true" width="200px" height="200px">
<panelchildren>Panel Content</panelchildren>
</panel>
</tablechildren>
<tablechildren>
<panel title="Table 3" border="normal" maximizable="true"
collapsible="true" width="200px" height="200px">
<panelchildren>Panel Content</panelchildren>
</panel>
</tablechildren>
<tablechildren>
<panel title="Table 4" border="normal" maximizable="true"
collapsible="true" width="200px" height="200px">
<panelchildren>Panel Content</panelchildren>
</panel>
</tablechildren>
</tablelayout>
Error:
java.lang.ClassNotFoundException: org.zkoss.zul.impl.api.XulElement
XulElement is normally under zul-x.x.x.jar.
Example :
zul.6.5.3.jar contains org.zkoss.zul.impl.XulElement.
As you can see its on another path.
Same for zk 7.x.x => http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/impl/XulElement.html
Now you have clashing dependencies, where a version of zul is to high for another dependencie.
For further help I need to know what zk jars you all use.
As you can see in this fiddle, there is nothing wrong with your code.
that is true, i checked it later.but i found that suggestion in zk forum and so i tried.I have found the solution. I am actually using free edition and those components are available in PE & EE not in CE. :) For reference http://www.zkoss.org/whyzk/Features .
Thanks Anyway..!!

Using angular-ui and tinymce

I'm trying to use the angular-ui tinymce directive. I used Nuget to get the angular-ui (v 0.4.0), tinymce.jquery (v 4.0.6), and tinymce (v 4.0.6)packages. I added the ui directive to my angular module and referenced the following scripts (in order) on my page:
<script src="Scripts/jquery-1.10.2.js"></script>
<script src="Scripts/tinymce/tinymce.min.js"></script>
<script src="Scripts/tinymce/jquery.tinymce.min.js"></script>
<script src="lib/angular/angular.min.js"></script>
<script src="Scripts/angular-ui.min.js"></script>
When I navigate to the partial that contains the textarea that I decorated with ui-tinymce ng-model="tinymce", I can see the error (angular.min.js) listed in my title in Chrome's javaScript console.
I've searched the web and tried suggestions such as changing the listing of the script references, but nothing I've tried works. Am I missing a key component, do I have incorrect references (or out of order), or something else? I've come accross some fiddles, but most are broken or down. I haven't yet seen one that gives a working demo that I can use.
EDIT: Ok, now I'm getting the error: "Cannot call method 'Add' of undefined" at angular-ui.min. I didn't change anything in the code, so it's possible that the original error message was from a previous attempt?
The error you are receving is occurring from a version mismatch between tiny-mce (4.0.6) and the angular-ui (0.40) package.
Looking at the api for 4.x for tinyMCE onSetContent() does not exist and has been replaced with .on()
It looks like ed.onSetContent() exists in TinyMCE 3.x.
With that being said if you replace the tinymce package with a 3.x version everything should now play nicely together.
Installed Packages
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Angular.UI" version="0.4" targetFramework="net45" />
<package id="angularjs" version="1.0.7" targetFramework="net45" />
<package id="jQuery" version="1.9.1" targetFramework="net45" />
<package id="Select2.js" version="3.2.1" targetFramework="net45" />
<package id="TinyMCE" version="3.5.8" targetFramework="net45" />
<package id="TinyMCE.JQuery" version="3.5.8" targetFramework="net45" />
</packages>
Once the packages are installed you can get it all wired up with the following view:
<body ng-app="MyApp">
<textarea ui-tinymce="" ng-model="tinymce"></textarea>
{{tinymce}}
<script src="Scripts/jquery-1.9.1.min.js"></script>
<script src="Scripts/angular.js"></script>
<script src="Scripts/angular-ui.js"></script>
<script src="Scripts/tinymce/tiny_mce.js"></script>
<script src="Scripts/tinymce/jquery.tinymce.js"></script>
<script>
var myApp = angular.module("MyApp", ["ui"])
</script>
</body>
Working application on github

GWT grails plugin ERROR resource.ResourceMeta - Resource not found: %nocache.js

I'm having trouble using the GWT-Grails plugin. I tried to follow this example exactly, but I end up having this error:
| Error 2012-10-28 00:25:49,567 [http-bio-8080-exec-2] ERROR resource.ResourceMeta - Resource not found: /gwt/g3wt.Application/g3wt.Application.nocache.js
I get this error after I enter these commands: ( I am simply following this guide here )
>grails create-app g3wt
>cd g3wt
>grails install-plugin gwt
>grails create-gwt-module g3wt.Application
>grails create-gwt-page main/index.gsp g3wt.Application
>grails run-app
>grails run-gwt-client
this is the index.gsp code (which is autogenerated anyway):
<html>
<head>
<!-- Integrate with Sitemesh layouts -->
<meta name="layout" content="main" />
<!-- -->
<!-- Any title is fine -->
<!-- -->
<title>Example title (change this!)</title>
<!-- -->
<!-- This script loads your compiled module. -->
<!-- If you add any GWT meta tags, they must -->
<!-- be added before this line. -->
<!-- -->
<script type="text/javascript" src="${resource(dir: 'gwt/g3wt.Application', file: 'g3wt.Application.nocache.js')}"></script>
</head>
<!-- -->
<!-- The body can have arbitrary html, or -->
<!-- you can leave the body empty if you want -->
<!-- to create a completely dynamic ui -->
<!-- -->
<body>
<!-- OPTIONAL: include this if you want history support -->
<iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
<!-- Add the rest of the page here, or leave it -->
<!-- blank for a completely dynamic interface. -->
</body>
</html>
I understand that the nocache.js cannot be found, so I thought I could try to see where exactly it is. However, using the eclipse search function, it shows that the file is not created at all. Although there is a file named application.js.
Why is the nocache.js not created, and how do I fix this? I've been stumped for a while now, and it's frustrating.
I'm using gwt plugin 0.7.1 and grails 2.1.1, with eclipse 4.2 and a Linux machine.
I was having the same problem and found the answer here.
buildconfig.groovy is in the conf folder. Just comment out the plugin where the runtime is ":resouces..."
Okay, so I got the error to disappear by first running
grails> compile-gwt-modules
Now a different problem occurs. The front-end gwt codes I made, aren't displayed.
You can add in you Confing.groovy:
grails.resources.adhoc.excludes = ['**/gwt/**']
This will solve the problem. But if you use plugin version 0.8 this issue should be resolved.