There's nothing generally wrong with your approach. Did you run
'generate.py build'? Did you get any warnings there?
T.
On 11/15/2012 10:20 AM, kora wrote:
> Hi,
> In our company different projects are on development using Qooxdoo.
> One project is a desktop application the other one a mobile.
> Both have different namspaces "mobileclient" and "wpc".
>
> Directory structure:
>
> ....\client\
> \Manifest.json
> \config.json
> \source\
> \class\
> \wpc\
> \util\
> \Crypt.js
>
> \mobileClient\
> \Manifest.json
> \config.json
> \source\
> \class\
> \mobileclient\
> \page\
> \Login.js
>
> "client" has got a class "Crypt" that will be used in "mobileClient"
> "Login".
>
> To do this we change/add the "....\client\Manifest.json" in the following
> manner:
>
> .
> .
> "jobs" :
> {
> "libraries" :
> {
> "library" :
> [
> {
> "manifest" : "../client/Manifest.json",
> "uri" : "../../client"
> }
> ]
> },
> .
> .
> .
>
>
> "....\client\Manifest.json" looks like:
> {
> "info" :
> {
> "name" : "wpc",
>
> "summary" : "wNewsNet-Portal",
> "description" : "This is the web portal for wNewsNet.",
>
> "homepage" : "http://www.companyname.com",
>
> "license" : "",
> "authors" :
> [
> {
> "name" : "companyname GmbH",
> "email" : "[email protected]"
> }
> ],
>
> "version" : "trunk",
> "qooxdoo-versions": ["2.0"]
> },
>
> "provides" :
> {
> "namespace" : "wpc",
> "encoding" : "utf-8",
> "class" : "source/class",
> "resource" : "source/resource",
> "translation" : "source/translation",
> "type" : "application"
> }
> }
>
>
> "generate.py source" for the mobileClient runs without error logs.
>
> Starting ...\mobileClient\source\index.html reaches into
>
> "wpc.util.Crypt.md5(...)" by "mobileclient.page.Login"
>
> This fails with the Firebug log: "ReferenceError: wpc is not defined".
>
> Why ?
> What do we do wrong using different library namespaces ?
>
>
> Cheers
>
> Kora
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Using-different-namespaces-libraries-fails-into-namespaceName-is-not-defined-tp7581980.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel