You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Christophe Lombart <ch...@gmail.com> on 2008/06/02 00:03:26 UTC
Dojo Bundles
Hi,
I'm trying to install the Dojo extensions but I don't see the folders
mentioned in Sling-Initial-Content.
I just made a "mvn clean install" from the Dojo extension projects
([sling-home]/extensions/dojo & [sling-home]/extensions/dojo-sling) and
install those bundles from the Sling console but nothing is added inside the
repo.
Do I miss something ?
Thanks,
Christophe
Re: Dojo Bundles
Posted by Alexander Klimetschek <ak...@day.com>.
On Mon, Jun 2, 2008 at 3:14 PM, Felix Meschberger <fm...@gmail.com> wrote:
> Actually, Dojo is finding it. But it cannot evaluate it due to some
> dojo.data not found exception -- at least this is what Firebug tells me.
Ok, then I can't help any more since I don't know the internals of
dojo.data. Lars, where are you? ;-)
Alex
--
Alexander Klimetschek
alexander.klimetschek@day.com
Re: Dojo Bundles
Posted by Christophe Lombart <ch...@gmail.com>.
Correct - thanks for your help. I'm not really the Dojo expert.
On Mon, Jun 2, 2008 at 4:56 PM, Craig L. Ching <cc...@mqsoftware.com>
wrote:
> Ok, sorry for the noise, I assume this is the example everyone is trying
> to get working:
>
> http://localhost:8080/dojox/data/demo/demo1.html
>
> Right?
>
> I'll have a look.
>
> Cheers,
> Craig
>
> > -----Original Message-----
> > From: Craig L. Ching [mailto:cching@mqsoftware.com]
> > Sent: Monday, June 02, 2008 9:50 AM
> > To: sling-dev@incubator.apache.org
> > Subject: RE: Dojo Bundles
> >
> > I have some experience getting this working, does someone
> > have a simple test case I can look at? I know this was all
> > working awhile back, but I haven't checked against recent
> > code (I'm probably about 2 weeks behind trunk now). If you
> > get me a simple test case, I'll have a look at it.
> >
> > Cheers,
> > Craig
> >
> > > -----Original Message-----
> > > From: Felix Meschberger [mailto:fmeschbe@gmail.com]
> > > Sent: Monday, June 02, 2008 8:14 AM
> > > To: sling-dev@incubator.apache.org
> > > Subject: Re: Dojo Bundles
> > >
> > > Hi,
> > >
> > > Actually, Dojo is finding it. But it cannot evaluate it due to some
> > > dojo.data not found exception -- at least this is what
> > Firebug tells
> > > me.
> > >
> > > Regards
> > > Felix
> > >
> > > PS: The SlingNodeStore and SlingPropertyStore files are not copied
> > > into the repository but accessed directly out of the bundle.
> > >
> > > Am Montag, den 02.06.2008, 15:10 +0200 schrieb Alexander
> > Klimetschek:
> > > > Ok, the file is there, but somehow dojo is looking in the
> > > wrong place
> > > > for it. A good way to analyze this is by using Firefox
> > with Firebug
> > > > installed, open the console and watch all XHR/JS loads in Firebug
> > > > while you open the page that triggers the error. You
> > should see what
> > > > (absolute) paths dojo tries while looking for
> > > > dojox/date/SlingeNodeStore.js and what response comes
> > back from the
> > > > server (not found, found + actual script content etc.). This will
> > > > probably point out the real problem.
> > > >
> > > > Alex
> > > >
> > > > On Mon, Jun 2, 2008 at 3:04 PM, Christophe Lombart
> > > > <ch...@gmail.com> wrote:
> > > > > On Mon, Jun 2, 2008 at 2:59 PM, Alexander Klimetschek
> > > > > <ak...@day.com>
> > > > > wrote:
> > > > >
> > > > >> Pure guessing ahead....
> > > > >>
> > > > >> What do you get when you open
> > > > >> http://localhost:8080/dojox/data/SlingNodeStore.js in a
> > > browser? It
> > > > >> should display the javascript file.
> > > > >
> > > > >
> > > > > Yes, it works
> > > > >
> > > > >
> > > > >> Don't know where it is located in the bundles, but
> > AFAIK it's a
> > > > >> Sling-specific dojo module that implements a Dojo data
> > store - so
> > > > >> it is not part of the dojo library, but some
> > additional file that
> > > > >> should be put into the repository (as initial-content).
> > > > >
> > > > >
> > > > > It seems tha both Dojo extention bundel are well
> > > deployed/install in Sling.
> > > > > I see them in the OSGI console.
> > > > >
> > > > >
> > > > >>
> > > > >>
> > > > >> Regards,
> > > > >> Alex
> > > > >>
> > > > >> On Mon, Jun 2, 2008 at 10:04 AM, Christophe Lombart
> > > > >> <ch...@gmail.com> wrote:
> > > > >> > Ahh ok . I thought that js libraries are deployed as
> > > content. of
> > > > >> > course
> > > > >> not
> > > > >> > :-)
> > > > >> >
> > > > >> > I have another issue. I have install both Dojo bundles
> > > and then
> > > > >> > I'm
> > > > >> trying
> > > > >> > to start the demo
> > > > >> > (http://localhost:8080/dojox/data/demo/demo1.html)
> > > > >> >
> > > > >> > It seems that it didn't find SlingNodeStore. I think
> > > this is not
> > > > >> > the
> > > > >> correct
> > > > >> > path to access to it.
> > > > >> >
> > > > >> > Error: Could not load 'dojox.data.SlingNodeStore';
> > last tried
> > > > >> > '../dojox/data/SlingNodeStore.js'
> > > > >> > Source File:
> > http://localhost:8080/dojo/_base/_loader/loader.js
> > > > >> > Line: 327
> > > > >> >
> > > > >> > I have also another error :
> > > > >> >
> > > > >> > Error: [Exception... "'Error: Could not load class
> > > > >> > 'dojox.data.SlingPropertyStore'. Did you spell the
> > > name correctly
> > > > >> > and use
> > > > >> a
> > > > >> > full path, like 'dijit.form.Button'?' when calling method:
> > > > >> > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> > > > >> > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location:
> > > "<unknown>" data:
> > > > >> > no]
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > Thanks,
> > > > >> > Christophe
> > > > >> >
> > > > >> >
> > > > >> > On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger
> > > > >> > <fm...@gmail.com>
> > > > >> > wrote:
> > > > >> >
> > > > >> >> Hi Christophe,
> > > > >> >>
> > > > >> >> Am Montag, den 02.06.2008, 00:03 +0200 schrieb
> > > Christophe Lombart:
> > > > >> >> > Hi,
> > > > >> >> >
> > > > >> >> > I'm trying to install the Dojo extensions but I
> > > don't see the
> > > > >> >> > folders mentioned in Sling-Initial-Content.
> > > > >> >> > I just made a "mvn clean install" from the Dojo extension
> > > > >> >> > projects ([sling-home]/extensions/dojo &
> > > > >> >> > [sling-home]/extensions/dojo-sling)
> > > > >> and
> > > > >> >> > install those bundles from the Sling console but
> > nothing is
> > > > >> >> > added
> > > > >> inside
> > > > >> >> the
> > > > >> >> > repo.
> > > > >> >> >
> > > > >> >> > Do I miss something ?
> > > > >> >>
> > > > >> >> The Dojo code is not copied into the repository (any
> > > more) but
> > > > >> >> delivered directly out of the bundle. This simplifies
> > > updates of the dojo toolkit.
> > > > >> >> This is manifested by the "Sling-Bundle-Resources"
> > > manifest header:
> > > > >> >>
> > > > >> >> <!-- Provide the actual library as bundle
> > resources -->
> > > > >> >> <Sling-Bundle-Resources>
> > > > >> >> /dojo,/dijit,/dojox
> > > > >> >> </Sling-Bundle-Resources>
> > > > >> >>
> > > > >> >>
> > > > >> >> Hope this helps.
> > > > >> >>
> > > > >> >> Regards
> > > > >> >> Felix
> > > > >> >>
> > > > >> >>
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> Alexander Klimetschek
> > > > >> alexander.klimetschek@day.com
> > > > >>
> > > > >> >> Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ <<
> > > > >>
> > > > >> ----------------------------< alexander.klimetschek@day.com
> > > > >> >---------- Alexander Klimetschek, Day Management AG,
> > > > >> Barfuesserplatz 6, CH - 4001 Basel, T +41 61 226 55 31,
> > > M +49 151
> > > > >> 15 77 20 56 ---------------------------------------<
> > > > >> http://www.day.com>-----------------
> > > > >>
> > > > >> Xing: http://www.xing.com/go/invite/3268380.32d2d4
> > > > >> LinkedIn: http://www.linkedin.com/in/klimetschek
> > > > >> Blog: http://weblogs.goshaky.com/weblogs/alexkli/
> > > > >>
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
>
RE: Dojo Bundles
Posted by "Craig L. Ching" <cc...@mqsoftware.com>.
> -----Original Message-----
> From: Alexander Klimetschek [mailto:aklimets@day.com]
> Sent: Monday, June 02, 2008 1:20 PM
> To: sling-dev@incubator.apache.org
> Subject: Re: Dojo Bundles
>
> On Mon, Jun 2, 2008 at 8:08 PM, Craig L. Ching
> <cc...@mqsoftware.com> wrote:
> >> Yes, and they are sign of a quick dojo hack ;-)
> >>
> > Quick? No, dojo has been like that forever. Hack? Maybe.
>
> I meant the missing dojo.require should have been in the
> (custom) code. Dojo's require system is great!
>
Ah, ok, I apologize for misunderstanding!
> > Anyway, don't mean to be argumentative, but I actually really like
> > dojo's require system. Once you get used to it, it's not so bad
> > tracking down these sorts of problems. Indeed, once you understand
> > it, it rarely comes up because you code against having
> these sorts of
> > problems by nature.
>
> I like the require system, too, since it allows for different
> deployments of the library code: as single, original js files
> for debugging, as bundles for sub-modules including several
> js files in one and as a big all-in-one package of everything
> you need for your page. That is really helpful in a world of
> > 10.000 lines of client-side javascript...
>
Yeah, exactly.
> Alex
>
> --
> Alexander Klimetschek
> alexander.klimetschek@day.com
>
Cheers,
Craig
Re: Dojo 1.1.1 (was Dojo Bundles)
Posted by Lars Trieloff <la...@trieloff.net>.
Good point, I will create an issue+patch.
On Jun 3, 2008, at 23:42 , Craig L. Ching wrote:
> Hi Lars,
>
> We resolved the issue this morning, so no need to look into
> anything ;-)
> The fix was pretty trivial.
>
> One thing I would like to point out, though, dojo recently released
> 1.1.1, might consider upgrading to that.
>
> Cheers,
> Craig
>
>> -----Original Message-----
>> From: Lars Trieloff [mailto:lars@trieloff.net]
>> Sent: Tuesday, June 03, 2008 4:23 PM
>> To: sling-dev@incubator.apache.org
>> Subject: Re: Dojo Bundles
>>
>> Alex is right. It is a symptom of allowing me to write code ;-)
>>
>> I will have a deeper look into this issue tomorrow, as I need
>> some time to catch up with latest development.
>>
>> Lars
>>
>> On Jun 2, 2008, at 20:20 , Alexander Klimetschek wrote:
>>
>>> On Mon, Jun 2, 2008 at 8:08 PM, Craig L. Ching
>> <cc...@mqsoftware.com>
>>> wrote:
>>>>> Yes, and they are sign of a quick dojo hack ;-)
>>>>>
>>>> Quick? No, dojo has been like that forever. Hack? Maybe.
>>>
>>> I meant the missing dojo.require should have been in the (custom)
>>> code. Dojo's require system is great!
>>>
>>>> Anyway, don't mean to be argumentative, but I actually really like
>>>> dojo's require system. Once you get used to it, it's not so bad
>>>> tracking down these sorts of problems. Indeed, once you
>> understand
>>>> it, it rarely comes up because you code against having
>> these sorts of
>>>> problems by nature.
>>>
>>> I like the require system, too, since it allows for different
>>> deployments of the library code: as single, original js files for
>>> debugging, as bundles for sub-modules including several js files in
>>> one and as a big all-in-one package of everything you need for your
>>> page. That is really helpful in a world of > 10.000 lines of
>>> client-side javascript...
>>>
>>> Alex
>>>
>>> --
>>> Alexander Klimetschek
>>> alexander.klimetschek@day.com
>>
>>
Dojo 1.1.1 (was Dojo Bundles)
Posted by "Craig L. Ching" <cc...@mqsoftware.com>.
Hi Lars,
We resolved the issue this morning, so no need to look into anything ;-)
The fix was pretty trivial.
One thing I would like to point out, though, dojo recently released
1.1.1, might consider upgrading to that.
Cheers,
Craig
> -----Original Message-----
> From: Lars Trieloff [mailto:lars@trieloff.net]
> Sent: Tuesday, June 03, 2008 4:23 PM
> To: sling-dev@incubator.apache.org
> Subject: Re: Dojo Bundles
>
> Alex is right. It is a symptom of allowing me to write code ;-)
>
> I will have a deeper look into this issue tomorrow, as I need
> some time to catch up with latest development.
>
> Lars
>
> On Jun 2, 2008, at 20:20 , Alexander Klimetschek wrote:
>
> > On Mon, Jun 2, 2008 at 8:08 PM, Craig L. Ching
> <cc...@mqsoftware.com>
> > wrote:
> >>> Yes, and they are sign of a quick dojo hack ;-)
> >>>
> >> Quick? No, dojo has been like that forever. Hack? Maybe.
> >
> > I meant the missing dojo.require should have been in the (custom)
> > code. Dojo's require system is great!
> >
> >> Anyway, don't mean to be argumentative, but I actually really like
> >> dojo's require system. Once you get used to it, it's not so bad
> >> tracking down these sorts of problems. Indeed, once you
> understand
> >> it, it rarely comes up because you code against having
> these sorts of
> >> problems by nature.
> >
> > I like the require system, too, since it allows for different
> > deployments of the library code: as single, original js files for
> > debugging, as bundles for sub-modules including several js files in
> > one and as a big all-in-one package of everything you need for your
> > page. That is really helpful in a world of > 10.000 lines of
> > client-side javascript...
> >
> > Alex
> >
> > --
> > Alexander Klimetschek
> > alexander.klimetschek@day.com
>
>
Re: Dojo Bundles
Posted by Lars Trieloff <la...@trieloff.net>.
Alex is right. It is a symptom of allowing me to write code ;-)
I will have a deeper look into this issue tomorrow, as I need some
time to catch up with latest development.
Lars
On Jun 2, 2008, at 20:20 , Alexander Klimetschek wrote:
> On Mon, Jun 2, 2008 at 8:08 PM, Craig L. Ching
> <cc...@mqsoftware.com> wrote:
>>> Yes, and they are sign of a quick dojo hack ;-)
>>>
>> Quick? No, dojo has been like that forever. Hack? Maybe.
>
> I meant the missing dojo.require should have been in the (custom)
> code. Dojo's require system is great!
>
>> Anyway, don't mean to be argumentative, but I actually really like
>> dojo's require system. Once you get used to it, it's not so bad
>> tracking down these sorts of problems. Indeed, once you understand
>> it,
>> it rarely comes up because you code against having these sorts of
>> problems by nature.
>
> I like the require system, too, since it allows for different
> deployments of the library code: as single, original js files for
> debugging, as bundles for sub-modules including several js files in
> one and as a big all-in-one package of everything you need for your
> page. That is really helpful in a world of > 10.000 lines of
> client-side javascript...
>
> Alex
>
> --
> Alexander Klimetschek
> alexander.klimetschek@day.com
Re: Dojo Bundles
Posted by Alexander Klimetschek <ak...@day.com>.
On Mon, Jun 2, 2008 at 8:08 PM, Craig L. Ching <cc...@mqsoftware.com> wrote:
>> Yes, and they are sign of a quick dojo hack ;-)
>>
> Quick? No, dojo has been like that forever. Hack? Maybe.
I meant the missing dojo.require should have been in the (custom)
code. Dojo's require system is great!
> Anyway, don't mean to be argumentative, but I actually really like
> dojo's require system. Once you get used to it, it's not so bad
> tracking down these sorts of problems. Indeed, once you understand it,
> it rarely comes up because you code against having these sorts of
> problems by nature.
I like the require system, too, since it allows for different
deployments of the library code: as single, original js files for
debugging, as bundles for sub-modules including several js files in
one and as a big all-in-one package of everything you need for your
page. That is really helpful in a world of > 10.000 lines of
client-side javascript...
Alex
--
Alexander Klimetschek
alexander.klimetschek@day.com
RE: Dojo Bundles
Posted by "Craig L. Ching" <cc...@mqsoftware.com>.
> -----Original Message-----
> From: Alexander Klimetschek [mailto:aklimets@day.com]
> Sent: Monday, June 02, 2008 12:17 PM
> To: sling-dev@incubator.apache.org
> Subject: Re: Dojo Bundles
>
> On Mon, Jun 2, 2008 at 6:55 PM, Craig L. Ching
> <cc...@mqsoftware.com> wrote:
> > These tyeps of errors in dojo aren't the easiest things to
> > track down unless you're familiar with them ;-)
>
> Yes, and they are sign of a quick dojo hack ;-)
>
Quick? No, dojo has been like that forever. Hack? Maybe. What
they're trying to do is admirable for sure. I don't know if there's
another good way to accomplish what they're doing so that it also gives
good information on why a script failed to load. I think part of it is
a feature that dojo wants that javascript just doesn't support, but I'm
not a JS expert by any means. I *thought* there was a way you could get
better errors, but that required a custom build of dojo, something you
(sling) *don't* want to do since you're providing a general purpose dojo
implementation.
For my own work, I will not be using Sling's provided dojo bundle, I'll
be building my own that provides everything necessary for proper
execution of my application in a single, compressed .js script.
Anyway, don't mean to be argumentative, but I actually really like
dojo's require system. Once you get used to it, it's not so bad
tracking down these sorts of problems. Indeed, once you understand it,
it rarely comes up because you code against having these sorts of
problems by nature.
> Alex
>
> --
> Alexander Klimetschek
> alexander.klimetschek@day.com
>
Cheers,
Craig
Re: Dojo Bundles
Posted by Alexander Klimetschek <ak...@day.com>.
On Mon, Jun 2, 2008 at 6:55 PM, Craig L. Ching <cc...@mqsoftware.com> wrote:
> I opened a JIRA with a patch:
>
> https://issues.apache.org/jira/browse/SLING-496
>
> Hopefully that's ok even for a trivial fix like this. Basically, the
> node store and property stores were missing a necessary "requires"
> clause. These tyeps of errors in dojo aren't the easiest things to
> track down unless you're familiar with them ;-)
Yes, and they are sign of a quick dojo hack ;-)
Alex
--
Alexander Klimetschek
alexander.klimetschek@day.com
RE: Dojo Bundles
Posted by "Craig L. Ching" <cc...@mqsoftware.com>.
I opened a JIRA with a patch:
https://issues.apache.org/jira/browse/SLING-496
Hopefully that's ok even for a trivial fix like this. Basically, the
node store and property stores were missing a necessary "requires"
clause. These tyeps of errors in dojo aren't the easiest things to
track down unless you're familiar with them ;-)
Cheers,
Craig
> -----Original Message-----
> From: Craig L. Ching [mailto:cching@mqsoftware.com]
> Sent: Monday, June 02, 2008 9:56 AM
> To: sling-dev@incubator.apache.org
> Subject: RE: Dojo Bundles
>
> Ok, sorry for the noise, I assume this is the example
> everyone is trying to get working:
>
> http://localhost:8080/dojox/data/demo/demo1.html
>
> Right?
>
> I'll have a look.
>
> Cheers,
> Craig
>
> > -----Original Message-----
> > From: Craig L. Ching [mailto:cching@mqsoftware.com]
> > Sent: Monday, June 02, 2008 9:50 AM
> > To: sling-dev@incubator.apache.org
> > Subject: RE: Dojo Bundles
> >
> > I have some experience getting this working, does someone have a
> > simple test case I can look at? I know this was all working awhile
> > back, but I haven't checked against recent code (I'm
> probably about 2
> > weeks behind trunk now). If you get me a simple test case,
> I'll have
> > a look at it.
> >
> > Cheers,
> > Craig
> >
> > > -----Original Message-----
> > > From: Felix Meschberger [mailto:fmeschbe@gmail.com]
> > > Sent: Monday, June 02, 2008 8:14 AM
> > > To: sling-dev@incubator.apache.org
> > > Subject: Re: Dojo Bundles
> > >
> > > Hi,
> > >
> > > Actually, Dojo is finding it. But it cannot evaluate it
> due to some
> > > dojo.data not found exception -- at least this is what
> > Firebug tells
> > > me.
> > >
> > > Regards
> > > Felix
> > >
> > > PS: The SlingNodeStore and SlingPropertyStore files are
> not copied
> > > into the repository but accessed directly out of the bundle.
> > >
> > > Am Montag, den 02.06.2008, 15:10 +0200 schrieb Alexander
> > Klimetschek:
> > > > Ok, the file is there, but somehow dojo is looking in the
> > > wrong place
> > > > for it. A good way to analyze this is by using Firefox
> > with Firebug
> > > > installed, open the console and watch all XHR/JS loads
> in Firebug
> > > > while you open the page that triggers the error. You
> > should see what
> > > > (absolute) paths dojo tries while looking for
> > > > dojox/date/SlingeNodeStore.js and what response comes
> > back from the
> > > > server (not found, found + actual script content etc.).
> This will
> > > > probably point out the real problem.
> > > >
> > > > Alex
> > > >
> > > > On Mon, Jun 2, 2008 at 3:04 PM, Christophe Lombart
> > > > <ch...@gmail.com> wrote:
> > > > > On Mon, Jun 2, 2008 at 2:59 PM, Alexander Klimetschek
> > > > > <ak...@day.com>
> > > > > wrote:
> > > > >
> > > > >> Pure guessing ahead....
> > > > >>
> > > > >> What do you get when you open
> > > > >> http://localhost:8080/dojox/data/SlingNodeStore.js in a
> > > browser? It
> > > > >> should display the javascript file.
> > > > >
> > > > >
> > > > > Yes, it works
> > > > >
> > > > >
> > > > >> Don't know where it is located in the bundles, but
> > AFAIK it's a
> > > > >> Sling-specific dojo module that implements a Dojo data
> > store - so
> > > > >> it is not part of the dojo library, but some
> > additional file that
> > > > >> should be put into the repository (as initial-content).
> > > > >
> > > > >
> > > > > It seems tha both Dojo extention bundel are well
> > > deployed/install in Sling.
> > > > > I see them in the OSGI console.
> > > > >
> > > > >
> > > > >>
> > > > >>
> > > > >> Regards,
> > > > >> Alex
> > > > >>
> > > > >> On Mon, Jun 2, 2008 at 10:04 AM, Christophe Lombart
> > > > >> <ch...@gmail.com> wrote:
> > > > >> > Ahh ok . I thought that js libraries are deployed as
> > > content. of
> > > > >> > course
> > > > >> not
> > > > >> > :-)
> > > > >> >
> > > > >> > I have another issue. I have install both Dojo bundles
> > > and then
> > > > >> > I'm
> > > > >> trying
> > > > >> > to start the demo
> > > > >> > (http://localhost:8080/dojox/data/demo/demo1.html)
> > > > >> >
> > > > >> > It seems that it didn't find SlingNodeStore. I think
> > > this is not
> > > > >> > the
> > > > >> correct
> > > > >> > path to access to it.
> > > > >> >
> > > > >> > Error: Could not load 'dojox.data.SlingNodeStore';
> > last tried
> > > > >> > '../dojox/data/SlingNodeStore.js'
> > > > >> > Source File:
> > http://localhost:8080/dojo/_base/_loader/loader.js
> > > > >> > Line: 327
> > > > >> >
> > > > >> > I have also another error :
> > > > >> >
> > > > >> > Error: [Exception... "'Error: Could not load class
> > > > >> > 'dojox.data.SlingPropertyStore'. Did you spell the
> > > name correctly
> > > > >> > and use
> > > > >> a
> > > > >> > full path, like 'dijit.form.Button'?' when calling method:
> > > > >> > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> > > > >> > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location:
> > > "<unknown>" data:
> > > > >> > no]
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > Thanks,
> > > > >> > Christophe
> > > > >> >
> > > > >> >
> > > > >> > On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger
> > > > >> > <fm...@gmail.com>
> > > > >> > wrote:
> > > > >> >
> > > > >> >> Hi Christophe,
> > > > >> >>
> > > > >> >> Am Montag, den 02.06.2008, 00:03 +0200 schrieb
> > > Christophe Lombart:
> > > > >> >> > Hi,
> > > > >> >> >
> > > > >> >> > I'm trying to install the Dojo extensions but I
> > > don't see the
> > > > >> >> > folders mentioned in Sling-Initial-Content.
> > > > >> >> > I just made a "mvn clean install" from the Dojo
> extension
> > > > >> >> > projects ([sling-home]/extensions/dojo &
> > > > >> >> > [sling-home]/extensions/dojo-sling)
> > > > >> and
> > > > >> >> > install those bundles from the Sling console but
> > nothing is
> > > > >> >> > added
> > > > >> inside
> > > > >> >> the
> > > > >> >> > repo.
> > > > >> >> >
> > > > >> >> > Do I miss something ?
> > > > >> >>
> > > > >> >> The Dojo code is not copied into the repository (any
> > > more) but
> > > > >> >> delivered directly out of the bundle. This simplifies
> > > updates of the dojo toolkit.
> > > > >> >> This is manifested by the "Sling-Bundle-Resources"
> > > manifest header:
> > > > >> >>
> > > > >> >> <!-- Provide the actual library as bundle
> > resources -->
> > > > >> >> <Sling-Bundle-Resources>
> > > > >> >> /dojo,/dijit,/dojox
> > > > >> >> </Sling-Bundle-Resources>
> > > > >> >>
> > > > >> >>
> > > > >> >> Hope this helps.
> > > > >> >>
> > > > >> >> Regards
> > > > >> >> Felix
> > > > >> >>
> > > > >> >>
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> Alexander Klimetschek
> > > > >> alexander.klimetschek@day.com
> > > > >>
> > > > >> >> Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ <<
> > > > >>
> > > > >> ----------------------------< alexander.klimetschek@day.com
> > > > >> >---------- Alexander Klimetschek, Day Management AG,
> > > > >> Barfuesserplatz 6, CH - 4001 Basel, T +41 61 226 55 31,
> > > M +49 151
> > > > >> 15 77 20 56 ---------------------------------------<
> > > > >> http://www.day.com>-----------------
> > > > >>
> > > > >> Xing: http://www.xing.com/go/invite/3268380.32d2d4
> > > > >> LinkedIn: http://www.linkedin.com/in/klimetschek
> > > > >> Blog: http://weblogs.goshaky.com/weblogs/alexkli/
> > > > >>
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
>
RE: Dojo Bundles
Posted by "Craig L. Ching" <cc...@mqsoftware.com>.
Ok, sorry for the noise, I assume this is the example everyone is trying
to get working:
http://localhost:8080/dojox/data/demo/demo1.html
Right?
I'll have a look.
Cheers,
Craig
> -----Original Message-----
> From: Craig L. Ching [mailto:cching@mqsoftware.com]
> Sent: Monday, June 02, 2008 9:50 AM
> To: sling-dev@incubator.apache.org
> Subject: RE: Dojo Bundles
>
> I have some experience getting this working, does someone
> have a simple test case I can look at? I know this was all
> working awhile back, but I haven't checked against recent
> code (I'm probably about 2 weeks behind trunk now). If you
> get me a simple test case, I'll have a look at it.
>
> Cheers,
> Craig
>
> > -----Original Message-----
> > From: Felix Meschberger [mailto:fmeschbe@gmail.com]
> > Sent: Monday, June 02, 2008 8:14 AM
> > To: sling-dev@incubator.apache.org
> > Subject: Re: Dojo Bundles
> >
> > Hi,
> >
> > Actually, Dojo is finding it. But it cannot evaluate it due to some
> > dojo.data not found exception -- at least this is what
> Firebug tells
> > me.
> >
> > Regards
> > Felix
> >
> > PS: The SlingNodeStore and SlingPropertyStore files are not copied
> > into the repository but accessed directly out of the bundle.
> >
> > Am Montag, den 02.06.2008, 15:10 +0200 schrieb Alexander
> Klimetschek:
> > > Ok, the file is there, but somehow dojo is looking in the
> > wrong place
> > > for it. A good way to analyze this is by using Firefox
> with Firebug
> > > installed, open the console and watch all XHR/JS loads in Firebug
> > > while you open the page that triggers the error. You
> should see what
> > > (absolute) paths dojo tries while looking for
> > > dojox/date/SlingeNodeStore.js and what response comes
> back from the
> > > server (not found, found + actual script content etc.). This will
> > > probably point out the real problem.
> > >
> > > Alex
> > >
> > > On Mon, Jun 2, 2008 at 3:04 PM, Christophe Lombart
> > > <ch...@gmail.com> wrote:
> > > > On Mon, Jun 2, 2008 at 2:59 PM, Alexander Klimetschek
> > > > <ak...@day.com>
> > > > wrote:
> > > >
> > > >> Pure guessing ahead....
> > > >>
> > > >> What do you get when you open
> > > >> http://localhost:8080/dojox/data/SlingNodeStore.js in a
> > browser? It
> > > >> should display the javascript file.
> > > >
> > > >
> > > > Yes, it works
> > > >
> > > >
> > > >> Don't know where it is located in the bundles, but
> AFAIK it's a
> > > >> Sling-specific dojo module that implements a Dojo data
> store - so
> > > >> it is not part of the dojo library, but some
> additional file that
> > > >> should be put into the repository (as initial-content).
> > > >
> > > >
> > > > It seems tha both Dojo extention bundel are well
> > deployed/install in Sling.
> > > > I see them in the OSGI console.
> > > >
> > > >
> > > >>
> > > >>
> > > >> Regards,
> > > >> Alex
> > > >>
> > > >> On Mon, Jun 2, 2008 at 10:04 AM, Christophe Lombart
> > > >> <ch...@gmail.com> wrote:
> > > >> > Ahh ok . I thought that js libraries are deployed as
> > content. of
> > > >> > course
> > > >> not
> > > >> > :-)
> > > >> >
> > > >> > I have another issue. I have install both Dojo bundles
> > and then
> > > >> > I'm
> > > >> trying
> > > >> > to start the demo
> > > >> > (http://localhost:8080/dojox/data/demo/demo1.html)
> > > >> >
> > > >> > It seems that it didn't find SlingNodeStore. I think
> > this is not
> > > >> > the
> > > >> correct
> > > >> > path to access to it.
> > > >> >
> > > >> > Error: Could not load 'dojox.data.SlingNodeStore';
> last tried
> > > >> > '../dojox/data/SlingNodeStore.js'
> > > >> > Source File:
> http://localhost:8080/dojo/_base/_loader/loader.js
> > > >> > Line: 327
> > > >> >
> > > >> > I have also another error :
> > > >> >
> > > >> > Error: [Exception... "'Error: Could not load class
> > > >> > 'dojox.data.SlingPropertyStore'. Did you spell the
> > name correctly
> > > >> > and use
> > > >> a
> > > >> > full path, like 'dijit.form.Button'?' when calling method:
> > > >> > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> > > >> > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location:
> > "<unknown>" data:
> > > >> > no]
> > > >> >
> > > >> >
> > > >> >
> > > >> > Thanks,
> > > >> > Christophe
> > > >> >
> > > >> >
> > > >> > On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger
> > > >> > <fm...@gmail.com>
> > > >> > wrote:
> > > >> >
> > > >> >> Hi Christophe,
> > > >> >>
> > > >> >> Am Montag, den 02.06.2008, 00:03 +0200 schrieb
> > Christophe Lombart:
> > > >> >> > Hi,
> > > >> >> >
> > > >> >> > I'm trying to install the Dojo extensions but I
> > don't see the
> > > >> >> > folders mentioned in Sling-Initial-Content.
> > > >> >> > I just made a "mvn clean install" from the Dojo extension
> > > >> >> > projects ([sling-home]/extensions/dojo &
> > > >> >> > [sling-home]/extensions/dojo-sling)
> > > >> and
> > > >> >> > install those bundles from the Sling console but
> nothing is
> > > >> >> > added
> > > >> inside
> > > >> >> the
> > > >> >> > repo.
> > > >> >> >
> > > >> >> > Do I miss something ?
> > > >> >>
> > > >> >> The Dojo code is not copied into the repository (any
> > more) but
> > > >> >> delivered directly out of the bundle. This simplifies
> > updates of the dojo toolkit.
> > > >> >> This is manifested by the "Sling-Bundle-Resources"
> > manifest header:
> > > >> >>
> > > >> >> <!-- Provide the actual library as bundle
> resources -->
> > > >> >> <Sling-Bundle-Resources>
> > > >> >> /dojo,/dijit,/dojox
> > > >> >> </Sling-Bundle-Resources>
> > > >> >>
> > > >> >>
> > > >> >> Hope this helps.
> > > >> >>
> > > >> >> Regards
> > > >> >> Felix
> > > >> >>
> > > >> >>
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> Alexander Klimetschek
> > > >> alexander.klimetschek@day.com
> > > >>
> > > >> >> Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ <<
> > > >>
> > > >> ----------------------------< alexander.klimetschek@day.com
> > > >> >---------- Alexander Klimetschek, Day Management AG,
> > > >> Barfuesserplatz 6, CH - 4001 Basel, T +41 61 226 55 31,
> > M +49 151
> > > >> 15 77 20 56 ---------------------------------------<
> > > >> http://www.day.com>-----------------
> > > >>
> > > >> Xing: http://www.xing.com/go/invite/3268380.32d2d4
> > > >> LinkedIn: http://www.linkedin.com/in/klimetschek
> > > >> Blog: http://weblogs.goshaky.com/weblogs/alexkli/
> > > >>
> > > >
> > >
> > >
> > >
> >
> >
>
RE: Dojo Bundles
Posted by "Craig L. Ching" <cc...@mqsoftware.com>.
I have some experience getting this working, does someone have a simple
test case I can look at? I know this was all working awhile back, but I
haven't checked against recent code (I'm probably about 2 weeks behind
trunk now). If you get me a simple test case, I'll have a look at it.
Cheers,
Craig
> -----Original Message-----
> From: Felix Meschberger [mailto:fmeschbe@gmail.com]
> Sent: Monday, June 02, 2008 8:14 AM
> To: sling-dev@incubator.apache.org
> Subject: Re: Dojo Bundles
>
> Hi,
>
> Actually, Dojo is finding it. But it cannot evaluate it due
> to some dojo.data not found exception -- at least this is
> what Firebug tells me.
>
> Regards
> Felix
>
> PS: The SlingNodeStore and SlingPropertyStore files are not
> copied into the repository but accessed directly out of the bundle.
>
> Am Montag, den 02.06.2008, 15:10 +0200 schrieb Alexander Klimetschek:
> > Ok, the file is there, but somehow dojo is looking in the
> wrong place
> > for it. A good way to analyze this is by using Firefox with Firebug
> > installed, open the console and watch all XHR/JS loads in Firebug
> > while you open the page that triggers the error. You should see what
> > (absolute) paths dojo tries while looking for
> > dojox/date/SlingeNodeStore.js and what response comes back from the
> > server (not found, found + actual script content etc.). This will
> > probably point out the real problem.
> >
> > Alex
> >
> > On Mon, Jun 2, 2008 at 3:04 PM, Christophe Lombart
> > <ch...@gmail.com> wrote:
> > > On Mon, Jun 2, 2008 at 2:59 PM, Alexander Klimetschek
> > > <ak...@day.com>
> > > wrote:
> > >
> > >> Pure guessing ahead....
> > >>
> > >> What do you get when you open
> > >> http://localhost:8080/dojox/data/SlingNodeStore.js in a
> browser? It
> > >> should display the javascript file.
> > >
> > >
> > > Yes, it works
> > >
> > >
> > >> Don't know where it is located in
> > >> the bundles, but AFAIK it's a Sling-specific dojo module that
> > >> implements a Dojo data store - so it is not part of the dojo
> > >> library, but some additional file that should be put into the
> > >> repository (as initial-content).
> > >
> > >
> > > It seems tha both Dojo extention bundel are well
> deployed/install in Sling.
> > > I see them in the OSGI console.
> > >
> > >
> > >>
> > >>
> > >> Regards,
> > >> Alex
> > >>
> > >> On Mon, Jun 2, 2008 at 10:04 AM, Christophe Lombart
> > >> <ch...@gmail.com> wrote:
> > >> > Ahh ok . I thought that js libraries are deployed as
> content. of
> > >> > course
> > >> not
> > >> > :-)
> > >> >
> > >> > I have another issue. I have install both Dojo bundles
> and then
> > >> > I'm
> > >> trying
> > >> > to start the demo
> > >> > (http://localhost:8080/dojox/data/demo/demo1.html)
> > >> >
> > >> > It seems that it didn't find SlingNodeStore. I think
> this is not
> > >> > the
> > >> correct
> > >> > path to access to it.
> > >> >
> > >> > Error: Could not load 'dojox.data.SlingNodeStore'; last tried
> > >> > '../dojox/data/SlingNodeStore.js'
> > >> > Source File: http://localhost:8080/dojo/_base/_loader/loader.js
> > >> > Line: 327
> > >> >
> > >> > I have also another error :
> > >> >
> > >> > Error: [Exception... "'Error: Could not load class
> > >> > 'dojox.data.SlingPropertyStore'. Did you spell the
> name correctly
> > >> > and use
> > >> a
> > >> > full path, like 'dijit.form.Button'?' when calling method:
> > >> > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> > >> > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location:
> "<unknown>" data:
> > >> > no]
> > >> >
> > >> >
> > >> >
> > >> > Thanks,
> > >> > Christophe
> > >> >
> > >> >
> > >> > On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger
> > >> > <fm...@gmail.com>
> > >> > wrote:
> > >> >
> > >> >> Hi Christophe,
> > >> >>
> > >> >> Am Montag, den 02.06.2008, 00:03 +0200 schrieb
> Christophe Lombart:
> > >> >> > Hi,
> > >> >> >
> > >> >> > I'm trying to install the Dojo extensions but I
> don't see the
> > >> >> > folders mentioned in Sling-Initial-Content.
> > >> >> > I just made a "mvn clean install" from the Dojo extension
> > >> >> > projects ([sling-home]/extensions/dojo &
> > >> >> > [sling-home]/extensions/dojo-sling)
> > >> and
> > >> >> > install those bundles from the Sling console but nothing is
> > >> >> > added
> > >> inside
> > >> >> the
> > >> >> > repo.
> > >> >> >
> > >> >> > Do I miss something ?
> > >> >>
> > >> >> The Dojo code is not copied into the repository (any
> more) but
> > >> >> delivered directly out of the bundle. This simplifies
> updates of the dojo toolkit.
> > >> >> This is manifested by the "Sling-Bundle-Resources"
> manifest header:
> > >> >>
> > >> >> <!-- Provide the actual library as bundle resources -->
> > >> >> <Sling-Bundle-Resources>
> > >> >> /dojo,/dijit,/dojox
> > >> >> </Sling-Bundle-Resources>
> > >> >>
> > >> >>
> > >> >> Hope this helps.
> > >> >>
> > >> >> Regards
> > >> >> Felix
> > >> >>
> > >> >>
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> Alexander Klimetschek
> > >> alexander.klimetschek@day.com
> > >>
> > >> >> Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ <<
> > >>
> > >> ----------------------------< alexander.klimetschek@day.com
> > >> >---------- Alexander Klimetschek, Day Management AG,
> > >> Barfuesserplatz 6, CH - 4001 Basel, T +41 61 226 55 31,
> M +49 151
> > >> 15 77 20 56 ---------------------------------------<
> > >> http://www.day.com>-----------------
> > >>
> > >> Xing: http://www.xing.com/go/invite/3268380.32d2d4
> > >> LinkedIn: http://www.linkedin.com/in/klimetschek
> > >> Blog: http://weblogs.goshaky.com/weblogs/alexkli/
> > >>
> > >
> >
> >
> >
>
>
Re: Dojo Bundles
Posted by Felix Meschberger <fm...@gmail.com>.
Hi,
Actually, Dojo is finding it. But it cannot evaluate it due to some
dojo.data not found exception -- at least this is what Firebug tells me.
Regards
Felix
PS: The SlingNodeStore and SlingPropertyStore files are not copied into
the repository but accessed directly out of the bundle.
Am Montag, den 02.06.2008, 15:10 +0200 schrieb Alexander Klimetschek:
> Ok, the file is there, but somehow dojo is looking in the wrong place
> for it. A good way to analyze this is by using Firefox with Firebug
> installed, open the console and watch all XHR/JS loads in Firebug
> while you open the page that triggers the error. You should see what
> (absolute) paths dojo tries while looking for
> dojox/date/SlingeNodeStore.js and what response comes back from the
> server (not found, found + actual script content etc.). This will
> probably point out the real problem.
>
> Alex
>
> On Mon, Jun 2, 2008 at 3:04 PM, Christophe Lombart
> <ch...@gmail.com> wrote:
> > On Mon, Jun 2, 2008 at 2:59 PM, Alexander Klimetschek <ak...@day.com>
> > wrote:
> >
> >> Pure guessing ahead....
> >>
> >> What do you get when you open
> >> http://localhost:8080/dojox/data/SlingNodeStore.js in a browser? It
> >> should display the javascript file.
> >
> >
> > Yes, it works
> >
> >
> >> Don't know where it is located in
> >> the bundles, but AFAIK it's a Sling-specific dojo module that
> >> implements a Dojo data store - so it is not part of the dojo library,
> >> but some additional file that should be put into the repository (as
> >> initial-content).
> >
> >
> > It seems tha both Dojo extention bundel are well deployed/install in Sling.
> > I see them in the OSGI console.
> >
> >
> >>
> >>
> >> Regards,
> >> Alex
> >>
> >> On Mon, Jun 2, 2008 at 10:04 AM, Christophe Lombart
> >> <ch...@gmail.com> wrote:
> >> > Ahh ok . I thought that js libraries are deployed as content. of course
> >> not
> >> > :-)
> >> >
> >> > I have another issue. I have install both Dojo bundles and then I'm
> >> trying
> >> > to start the demo
> >> > (http://localhost:8080/dojox/data/demo/demo1.html)
> >> >
> >> > It seems that it didn't find SlingNodeStore. I think this is not the
> >> correct
> >> > path to access to it.
> >> >
> >> > Error: Could not load 'dojox.data.SlingNodeStore'; last tried
> >> > '../dojox/data/SlingNodeStore.js'
> >> > Source File: http://localhost:8080/dojo/_base/_loader/loader.js
> >> > Line: 327
> >> >
> >> > I have also another error :
> >> >
> >> > Error: [Exception... "'Error: Could not load class
> >> > 'dojox.data.SlingPropertyStore'. Did you spell the name correctly and use
> >> a
> >> > full path, like 'dijit.form.Button'?' when calling method:
> >> > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> >> > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
> >> >
> >> >
> >> >
> >> > Thanks,
> >> > Christophe
> >> >
> >> >
> >> > On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger <fm...@gmail.com>
> >> > wrote:
> >> >
> >> >> Hi Christophe,
> >> >>
> >> >> Am Montag, den 02.06.2008, 00:03 +0200 schrieb Christophe Lombart:
> >> >> > Hi,
> >> >> >
> >> >> > I'm trying to install the Dojo extensions but I don't see the folders
> >> >> > mentioned in Sling-Initial-Content.
> >> >> > I just made a "mvn clean install" from the Dojo extension projects
> >> >> > ([sling-home]/extensions/dojo & [sling-home]/extensions/dojo-sling)
> >> and
> >> >> > install those bundles from the Sling console but nothing is added
> >> inside
> >> >> the
> >> >> > repo.
> >> >> >
> >> >> > Do I miss something ?
> >> >>
> >> >> The Dojo code is not copied into the repository (any more) but delivered
> >> >> directly out of the bundle. This simplifies updates of the dojo toolkit.
> >> >> This is manifested by the "Sling-Bundle-Resources" manifest header:
> >> >>
> >> >> <!-- Provide the actual library as bundle resources -->
> >> >> <Sling-Bundle-Resources>
> >> >> /dojo,/dijit,/dojox
> >> >> </Sling-Bundle-Resources>
> >> >>
> >> >>
> >> >> Hope this helps.
> >> >>
> >> >> Regards
> >> >> Felix
> >> >>
> >> >>
> >> >
> >>
> >>
> >>
> >> --
> >> Alexander Klimetschek
> >> alexander.klimetschek@day.com
> >>
> >> >> Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ <<
> >>
> >> ----------------------------< alexander.klimetschek@day.com >----------
> >> Alexander Klimetschek, Day Management AG, Barfuesserplatz 6,
> >> CH - 4001 Basel, T +41 61 226 55 31, M +49 151 15 77 20 56
> >> ---------------------------------------< http://www.day.com>-----------------
> >>
> >> Xing: http://www.xing.com/go/invite/3268380.32d2d4
> >> LinkedIn: http://www.linkedin.com/in/klimetschek
> >> Blog: http://weblogs.goshaky.com/weblogs/alexkli/
> >>
> >
>
>
>
Re: Dojo Bundles
Posted by Alexander Klimetschek <ak...@day.com>.
Ok, the file is there, but somehow dojo is looking in the wrong place
for it. A good way to analyze this is by using Firefox with Firebug
installed, open the console and watch all XHR/JS loads in Firebug
while you open the page that triggers the error. You should see what
(absolute) paths dojo tries while looking for
dojox/date/SlingeNodeStore.js and what response comes back from the
server (not found, found + actual script content etc.). This will
probably point out the real problem.
Alex
On Mon, Jun 2, 2008 at 3:04 PM, Christophe Lombart
<ch...@gmail.com> wrote:
> On Mon, Jun 2, 2008 at 2:59 PM, Alexander Klimetschek <ak...@day.com>
> wrote:
>
>> Pure guessing ahead....
>>
>> What do you get when you open
>> http://localhost:8080/dojox/data/SlingNodeStore.js in a browser? It
>> should display the javascript file.
>
>
> Yes, it works
>
>
>> Don't know where it is located in
>> the bundles, but AFAIK it's a Sling-specific dojo module that
>> implements a Dojo data store - so it is not part of the dojo library,
>> but some additional file that should be put into the repository (as
>> initial-content).
>
>
> It seems tha both Dojo extention bundel are well deployed/install in Sling.
> I see them in the OSGI console.
>
>
>>
>>
>> Regards,
>> Alex
>>
>> On Mon, Jun 2, 2008 at 10:04 AM, Christophe Lombart
>> <ch...@gmail.com> wrote:
>> > Ahh ok . I thought that js libraries are deployed as content. of course
>> not
>> > :-)
>> >
>> > I have another issue. I have install both Dojo bundles and then I'm
>> trying
>> > to start the demo
>> > (http://localhost:8080/dojox/data/demo/demo1.html)
>> >
>> > It seems that it didn't find SlingNodeStore. I think this is not the
>> correct
>> > path to access to it.
>> >
>> > Error: Could not load 'dojox.data.SlingNodeStore'; last tried
>> > '../dojox/data/SlingNodeStore.js'
>> > Source File: http://localhost:8080/dojo/_base/_loader/loader.js
>> > Line: 327
>> >
>> > I have also another error :
>> >
>> > Error: [Exception... "'Error: Could not load class
>> > 'dojox.data.SlingPropertyStore'. Did you spell the name correctly and use
>> a
>> > full path, like 'dijit.form.Button'?' when calling method:
>> > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
>> > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
>> >
>> >
>> >
>> > Thanks,
>> > Christophe
>> >
>> >
>> > On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger <fm...@gmail.com>
>> > wrote:
>> >
>> >> Hi Christophe,
>> >>
>> >> Am Montag, den 02.06.2008, 00:03 +0200 schrieb Christophe Lombart:
>> >> > Hi,
>> >> >
>> >> > I'm trying to install the Dojo extensions but I don't see the folders
>> >> > mentioned in Sling-Initial-Content.
>> >> > I just made a "mvn clean install" from the Dojo extension projects
>> >> > ([sling-home]/extensions/dojo & [sling-home]/extensions/dojo-sling)
>> and
>> >> > install those bundles from the Sling console but nothing is added
>> inside
>> >> the
>> >> > repo.
>> >> >
>> >> > Do I miss something ?
>> >>
>> >> The Dojo code is not copied into the repository (any more) but delivered
>> >> directly out of the bundle. This simplifies updates of the dojo toolkit.
>> >> This is manifested by the "Sling-Bundle-Resources" manifest header:
>> >>
>> >> <!-- Provide the actual library as bundle resources -->
>> >> <Sling-Bundle-Resources>
>> >> /dojo,/dijit,/dojox
>> >> </Sling-Bundle-Resources>
>> >>
>> >>
>> >> Hope this helps.
>> >>
>> >> Regards
>> >> Felix
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> Alexander Klimetschek
>> alexander.klimetschek@day.com
>>
>> >> Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ <<
>>
>> ----------------------------< alexander.klimetschek@day.com >----------
>> Alexander Klimetschek, Day Management AG, Barfuesserplatz 6,
>> CH - 4001 Basel, T +41 61 226 55 31, M +49 151 15 77 20 56
>> ---------------------------------------< http://www.day.com>-----------------
>>
>> Xing: http://www.xing.com/go/invite/3268380.32d2d4
>> LinkedIn: http://www.linkedin.com/in/klimetschek
>> Blog: http://weblogs.goshaky.com/weblogs/alexkli/
>>
>
--
Alexander Klimetschek
alexander.klimetschek@day.com
>> Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ <<
----------------------------< alexander.klimetschek@day.com >----------
Alexander Klimetschek, Day Management AG, Barfuesserplatz 6,
CH - 4001 Basel, T +41 61 226 55 31, M +49 151 15 77 20 56
---------------------------------------< http://www.day.com >-----------------
Xing: http://www.xing.com/go/invite/3268380.32d2d4
LinkedIn: http://www.linkedin.com/in/klimetschek
Blog: http://weblogs.goshaky.com/weblogs/alexkli/
Re: Dojo Bundles
Posted by Christophe Lombart <ch...@gmail.com>.
On Mon, Jun 2, 2008 at 2:59 PM, Alexander Klimetschek <ak...@day.com>
wrote:
> Pure guessing ahead....
>
> What do you get when you open
> http://localhost:8080/dojox/data/SlingNodeStore.js in a browser? It
> should display the javascript file.
Yes, it works
> Don't know where it is located in
> the bundles, but AFAIK it's a Sling-specific dojo module that
> implements a Dojo data store - so it is not part of the dojo library,
> but some additional file that should be put into the repository (as
> initial-content).
It seems tha both Dojo extention bundel are well deployed/install in Sling.
I see them in the OSGI console.
>
>
> Regards,
> Alex
>
> On Mon, Jun 2, 2008 at 10:04 AM, Christophe Lombart
> <ch...@gmail.com> wrote:
> > Ahh ok . I thought that js libraries are deployed as content. of course
> not
> > :-)
> >
> > I have another issue. I have install both Dojo bundles and then I'm
> trying
> > to start the demo
> > (http://localhost:8080/dojox/data/demo/demo1.html)
> >
> > It seems that it didn't find SlingNodeStore. I think this is not the
> correct
> > path to access to it.
> >
> > Error: Could not load 'dojox.data.SlingNodeStore'; last tried
> > '../dojox/data/SlingNodeStore.js'
> > Source File: http://localhost:8080/dojo/_base/_loader/loader.js
> > Line: 327
> >
> > I have also another error :
> >
> > Error: [Exception... "'Error: Could not load class
> > 'dojox.data.SlingPropertyStore'. Did you spell the name correctly and use
> a
> > full path, like 'dijit.form.Button'?' when calling method:
> > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
> >
> >
> >
> > Thanks,
> > Christophe
> >
> >
> > On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger <fm...@gmail.com>
> > wrote:
> >
> >> Hi Christophe,
> >>
> >> Am Montag, den 02.06.2008, 00:03 +0200 schrieb Christophe Lombart:
> >> > Hi,
> >> >
> >> > I'm trying to install the Dojo extensions but I don't see the folders
> >> > mentioned in Sling-Initial-Content.
> >> > I just made a "mvn clean install" from the Dojo extension projects
> >> > ([sling-home]/extensions/dojo & [sling-home]/extensions/dojo-sling)
> and
> >> > install those bundles from the Sling console but nothing is added
> inside
> >> the
> >> > repo.
> >> >
> >> > Do I miss something ?
> >>
> >> The Dojo code is not copied into the repository (any more) but delivered
> >> directly out of the bundle. This simplifies updates of the dojo toolkit.
> >> This is manifested by the "Sling-Bundle-Resources" manifest header:
> >>
> >> <!-- Provide the actual library as bundle resources -->
> >> <Sling-Bundle-Resources>
> >> /dojo,/dijit,/dojox
> >> </Sling-Bundle-Resources>
> >>
> >>
> >> Hope this helps.
> >>
> >> Regards
> >> Felix
> >>
> >>
> >
>
>
>
> --
> Alexander Klimetschek
> alexander.klimetschek@day.com
>
> >> Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ <<
>
> ----------------------------< alexander.klimetschek@day.com >----------
> Alexander Klimetschek, Day Management AG, Barfuesserplatz 6,
> CH - 4001 Basel, T +41 61 226 55 31, M +49 151 15 77 20 56
> ---------------------------------------< http://www.day.com>-----------------
>
> Xing: http://www.xing.com/go/invite/3268380.32d2d4
> LinkedIn: http://www.linkedin.com/in/klimetschek
> Blog: http://weblogs.goshaky.com/weblogs/alexkli/
>
Re: Dojo Bundles
Posted by Alexander Klimetschek <ak...@day.com>.
Pure guessing ahead....
What do you get when you open
http://localhost:8080/dojox/data/SlingNodeStore.js in a browser? It
should display the javascript file. Don't know where it is located in
the bundles, but AFAIK it's a Sling-specific dojo module that
implements a Dojo data store - so it is not part of the dojo library,
but some additional file that should be put into the repository (as
initial-content).
Regards,
Alex
On Mon, Jun 2, 2008 at 10:04 AM, Christophe Lombart
<ch...@gmail.com> wrote:
> Ahh ok . I thought that js libraries are deployed as content. of course not
> :-)
>
> I have another issue. I have install both Dojo bundles and then I'm trying
> to start the demo
> (http://localhost:8080/dojox/data/demo/demo1.html)
>
> It seems that it didn't find SlingNodeStore. I think this is not the correct
> path to access to it.
>
> Error: Could not load 'dojox.data.SlingNodeStore'; last tried
> '../dojox/data/SlingNodeStore.js'
> Source File: http://localhost:8080/dojo/_base/_loader/loader.js
> Line: 327
>
> I have also another error :
>
> Error: [Exception... "'Error: Could not load class
> 'dojox.data.SlingPropertyStore'. Did you spell the name correctly and use a
> full path, like 'dijit.form.Button'?' when calling method:
> [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
>
>
>
> Thanks,
> Christophe
>
>
> On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger <fm...@gmail.com>
> wrote:
>
>> Hi Christophe,
>>
>> Am Montag, den 02.06.2008, 00:03 +0200 schrieb Christophe Lombart:
>> > Hi,
>> >
>> > I'm trying to install the Dojo extensions but I don't see the folders
>> > mentioned in Sling-Initial-Content.
>> > I just made a "mvn clean install" from the Dojo extension projects
>> > ([sling-home]/extensions/dojo & [sling-home]/extensions/dojo-sling) and
>> > install those bundles from the Sling console but nothing is added inside
>> the
>> > repo.
>> >
>> > Do I miss something ?
>>
>> The Dojo code is not copied into the repository (any more) but delivered
>> directly out of the bundle. This simplifies updates of the dojo toolkit.
>> This is manifested by the "Sling-Bundle-Resources" manifest header:
>>
>> <!-- Provide the actual library as bundle resources -->
>> <Sling-Bundle-Resources>
>> /dojo,/dijit,/dojox
>> </Sling-Bundle-Resources>
>>
>>
>> Hope this helps.
>>
>> Regards
>> Felix
>>
>>
>
--
Alexander Klimetschek
alexander.klimetschek@day.com
>> Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ <<
----------------------------< alexander.klimetschek@day.com >----------
Alexander Klimetschek, Day Management AG, Barfuesserplatz 6,
CH - 4001 Basel, T +41 61 226 55 31, M +49 151 15 77 20 56
---------------------------------------< http://www.day.com >-----------------
Xing: http://www.xing.com/go/invite/3268380.32d2d4
LinkedIn: http://www.linkedin.com/in/klimetschek
Blog: http://weblogs.goshaky.com/weblogs/alexkli/
Re: Dojo Bundles
Posted by Felix Meschberger <fm...@gmail.com>.
Hi,
Am Montag, den 02.06.2008, 11:45 +0200 schrieb Christophe Lombart:
> On Mon, Jun 2, 2008 at 11:07 AM, Felix Meschberger <fm...@gmail.com>
> wrote:
>
> > Hi,
> >
> > Am Montag, den 02.06.2008, 11:05 +0200 schrieb Christophe Lombart:
> > > Maybe I can continue my investigations ... nice way to learn how Sling is
> > > working.
> >
> > ok. good. -- If you know Dojo, you are right -- I don't even know dojo
> > enough ;-)
>
>
>
> My intention was to learn Dojo with Sling :-(
Wow ! Cool, then you have my kudos !!
Regards
Felix
>
>
> >
> >
> > Maybe we should move the SlingNodeStore and SlingPropertyStore objects
> > into a subpackage such as dojox.data.sling.SlingNodeStore and
> > dojox.data.sling.SlingPropertyStore ? And we could add a store
> > implementation for Sling Resources ?
> >
> > Regards
> > Felix
> >
> > >
> > > On Mon, Jun 2, 2008 at 11:02 AM, Felix Meschberger <fm...@gmail.com>
> > > wrote:
> > >
> > > > Hmm,
> > > >
> > > > Now, I am completely off my terrain :-)
> > > >
> > > > Maybe Lars could be of help here ? What I tried was adding the
> > following
> > > > lines to the SlingNodeStore.js and SlingPropertyStore.js files:
> > > >
> > > > dojo.require("dojo.data.util.simpleFetch");
> > > > dojo.require("dojo.data.api.Read");
> > > > dojo.require('dojo.data.api.Write');
> > > > dojo.require('dojo.data.api.Identity');
> > > > dojo.require('dojo.data.api.Notification');
> > > >
> > > > Immediately before the dojo.provide statement. Not sure, what or
> > whether
> > > > this is required.
> > > >
> > > > This could be related to our recent change to use the dojo source
> > > > distribution instead of the dojo release distribution to be able to run
> > > > dojo on server and client.
> > > >
> > > > Maybe Lars can be of help ?
> > > >
> > > > Regards
> > > > Felix
> > > >
> > > > Am Montag, den 02.06.2008, 10:04 +0200 schrieb Christophe Lombart:
> > > > > Ahh ok . I thought that js libraries are deployed as content. of
> > course
> > > > not
> > > > > :-)
> > > > >
> > > > > I have another issue. I have install both Dojo bundles and then I'm
> > > > trying
> > > > > to start the demo
> > > > > (http://localhost:8080/dojox/data/demo/demo1.html)
> > > > >
> > > > > It seems that it didn't find SlingNodeStore. I think this is not the
> > > > correct
> > > > > path to access to it.
> > > > >
> > > > > Error: Could not load 'dojox.data.SlingNodeStore'; last tried
> > > > > '../dojox/data/SlingNodeStore.js'
> > > > > Source File: http://localhost:8080/dojo/_base/_loader/loader.js
> > > > > Line: 327
> > > > >
> > > > > I have also another error :
> > > > >
> > > > > Error: [Exception... "'Error: Could not load class
> > > > > 'dojox.data.SlingPropertyStore'. Did you spell the name correctly and
> > use
> > > > a
> > > > > full path, like 'dijit.form.Button'?' when calling method:
> > > > > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> > > > > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
> > > > >
> > > > >
> > > > >
> > > > > Thanks,
> > > > > Christophe
> > > > >
> > > > >
> > > > > On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger <
> > fmeschbe@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hi Christophe,
> > > > > >
> > > > > > Am Montag, den 02.06.2008, 00:03 +0200 schrieb Christophe Lombart:
> > > > > > > Hi,
> > > > > > >
> > > > > > > I'm trying to install the Dojo extensions but I don't see the
> > folders
> > > > > > > mentioned in Sling-Initial-Content.
> > > > > > > I just made a "mvn clean install" from the Dojo extension
> > projects
> > > > > > > ([sling-home]/extensions/dojo &
> > [sling-home]/extensions/dojo-sling)
> > > > and
> > > > > > > install those bundles from the Sling console but nothing is added
> > > > inside
> > > > > > the
> > > > > > > repo.
> > > > > > >
> > > > > > > Do I miss something ?
> > > > > >
> > > > > > The Dojo code is not copied into the repository (any more) but
> > > > delivered
> > > > > > directly out of the bundle. This simplifies updates of the dojo
> > > > toolkit.
> > > > > > This is manifested by the "Sling-Bundle-Resources" manifest header:
> > > > > >
> > > > > > <!-- Provide the actual library as bundle resources -->
> > > > > > <Sling-Bundle-Resources>
> > > > > > /dojo,/dijit,/dojox
> > > > > > </Sling-Bundle-Resources>
> > > > > >
> > > > > >
> > > > > > Hope this helps.
> > > > > >
> > > > > > Regards
> > > > > > Felix
> > > > > >
> > > > > >
> > > >
> > > >
> >
> >
Re: Dojo Bundles
Posted by Christophe Lombart <ch...@gmail.com>.
On Mon, Jun 2, 2008 at 11:07 AM, Felix Meschberger <fm...@gmail.com>
wrote:
> Hi,
>
> Am Montag, den 02.06.2008, 11:05 +0200 schrieb Christophe Lombart:
> > Maybe I can continue my investigations ... nice way to learn how Sling is
> > working.
>
> ok. good. -- If you know Dojo, you are right -- I don't even know dojo
> enough ;-)
My intention was to learn Dojo with Sling :-(
>
>
> Maybe we should move the SlingNodeStore and SlingPropertyStore objects
> into a subpackage such as dojox.data.sling.SlingNodeStore and
> dojox.data.sling.SlingPropertyStore ? And we could add a store
> implementation for Sling Resources ?
>
> Regards
> Felix
>
> >
> > On Mon, Jun 2, 2008 at 11:02 AM, Felix Meschberger <fm...@gmail.com>
> > wrote:
> >
> > > Hmm,
> > >
> > > Now, I am completely off my terrain :-)
> > >
> > > Maybe Lars could be of help here ? What I tried was adding the
> following
> > > lines to the SlingNodeStore.js and SlingPropertyStore.js files:
> > >
> > > dojo.require("dojo.data.util.simpleFetch");
> > > dojo.require("dojo.data.api.Read");
> > > dojo.require('dojo.data.api.Write');
> > > dojo.require('dojo.data.api.Identity');
> > > dojo.require('dojo.data.api.Notification');
> > >
> > > Immediately before the dojo.provide statement. Not sure, what or
> whether
> > > this is required.
> > >
> > > This could be related to our recent change to use the dojo source
> > > distribution instead of the dojo release distribution to be able to run
> > > dojo on server and client.
> > >
> > > Maybe Lars can be of help ?
> > >
> > > Regards
> > > Felix
> > >
> > > Am Montag, den 02.06.2008, 10:04 +0200 schrieb Christophe Lombart:
> > > > Ahh ok . I thought that js libraries are deployed as content. of
> course
> > > not
> > > > :-)
> > > >
> > > > I have another issue. I have install both Dojo bundles and then I'm
> > > trying
> > > > to start the demo
> > > > (http://localhost:8080/dojox/data/demo/demo1.html)
> > > >
> > > > It seems that it didn't find SlingNodeStore. I think this is not the
> > > correct
> > > > path to access to it.
> > > >
> > > > Error: Could not load 'dojox.data.SlingNodeStore'; last tried
> > > > '../dojox/data/SlingNodeStore.js'
> > > > Source File: http://localhost:8080/dojo/_base/_loader/loader.js
> > > > Line: 327
> > > >
> > > > I have also another error :
> > > >
> > > > Error: [Exception... "'Error: Could not load class
> > > > 'dojox.data.SlingPropertyStore'. Did you spell the name correctly and
> use
> > > a
> > > > full path, like 'dijit.form.Button'?' when calling method:
> > > > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> > > > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
> > > >
> > > >
> > > >
> > > > Thanks,
> > > > Christophe
> > > >
> > > >
> > > > On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger <
> fmeschbe@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi Christophe,
> > > > >
> > > > > Am Montag, den 02.06.2008, 00:03 +0200 schrieb Christophe Lombart:
> > > > > > Hi,
> > > > > >
> > > > > > I'm trying to install the Dojo extensions but I don't see the
> folders
> > > > > > mentioned in Sling-Initial-Content.
> > > > > > I just made a "mvn clean install" from the Dojo extension
> projects
> > > > > > ([sling-home]/extensions/dojo &
> [sling-home]/extensions/dojo-sling)
> > > and
> > > > > > install those bundles from the Sling console but nothing is added
> > > inside
> > > > > the
> > > > > > repo.
> > > > > >
> > > > > > Do I miss something ?
> > > > >
> > > > > The Dojo code is not copied into the repository (any more) but
> > > delivered
> > > > > directly out of the bundle. This simplifies updates of the dojo
> > > toolkit.
> > > > > This is manifested by the "Sling-Bundle-Resources" manifest header:
> > > > >
> > > > > <!-- Provide the actual library as bundle resources -->
> > > > > <Sling-Bundle-Resources>
> > > > > /dojo,/dijit,/dojox
> > > > > </Sling-Bundle-Resources>
> > > > >
> > > > >
> > > > > Hope this helps.
> > > > >
> > > > > Regards
> > > > > Felix
> > > > >
> > > > >
> > >
> > >
>
>
Re: Dojo Bundles
Posted by Felix Meschberger <fm...@gmail.com>.
Hi,
Am Montag, den 02.06.2008, 11:05 +0200 schrieb Christophe Lombart:
> Maybe I can continue my investigations ... nice way to learn how Sling is
> working.
ok. good. -- If you know Dojo, you are right -- I don't even know dojo
enough ;-)
Maybe we should move the SlingNodeStore and SlingPropertyStore objects
into a subpackage such as dojox.data.sling.SlingNodeStore and
dojox.data.sling.SlingPropertyStore ? And we could add a store
implementation for Sling Resources ?
Regards
Felix
>
> On Mon, Jun 2, 2008 at 11:02 AM, Felix Meschberger <fm...@gmail.com>
> wrote:
>
> > Hmm,
> >
> > Now, I am completely off my terrain :-)
> >
> > Maybe Lars could be of help here ? What I tried was adding the following
> > lines to the SlingNodeStore.js and SlingPropertyStore.js files:
> >
> > dojo.require("dojo.data.util.simpleFetch");
> > dojo.require("dojo.data.api.Read");
> > dojo.require('dojo.data.api.Write');
> > dojo.require('dojo.data.api.Identity');
> > dojo.require('dojo.data.api.Notification');
> >
> > Immediately before the dojo.provide statement. Not sure, what or whether
> > this is required.
> >
> > This could be related to our recent change to use the dojo source
> > distribution instead of the dojo release distribution to be able to run
> > dojo on server and client.
> >
> > Maybe Lars can be of help ?
> >
> > Regards
> > Felix
> >
> > Am Montag, den 02.06.2008, 10:04 +0200 schrieb Christophe Lombart:
> > > Ahh ok . I thought that js libraries are deployed as content. of course
> > not
> > > :-)
> > >
> > > I have another issue. I have install both Dojo bundles and then I'm
> > trying
> > > to start the demo
> > > (http://localhost:8080/dojox/data/demo/demo1.html)
> > >
> > > It seems that it didn't find SlingNodeStore. I think this is not the
> > correct
> > > path to access to it.
> > >
> > > Error: Could not load 'dojox.data.SlingNodeStore'; last tried
> > > '../dojox/data/SlingNodeStore.js'
> > > Source File: http://localhost:8080/dojo/_base/_loader/loader.js
> > > Line: 327
> > >
> > > I have also another error :
> > >
> > > Error: [Exception... "'Error: Could not load class
> > > 'dojox.data.SlingPropertyStore'. Did you spell the name correctly and use
> > a
> > > full path, like 'dijit.form.Button'?' when calling method:
> > > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> > > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
> > >
> > >
> > >
> > > Thanks,
> > > Christophe
> > >
> > >
> > > On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger <fm...@gmail.com>
> > > wrote:
> > >
> > > > Hi Christophe,
> > > >
> > > > Am Montag, den 02.06.2008, 00:03 +0200 schrieb Christophe Lombart:
> > > > > Hi,
> > > > >
> > > > > I'm trying to install the Dojo extensions but I don't see the folders
> > > > > mentioned in Sling-Initial-Content.
> > > > > I just made a "mvn clean install" from the Dojo extension projects
> > > > > ([sling-home]/extensions/dojo & [sling-home]/extensions/dojo-sling)
> > and
> > > > > install those bundles from the Sling console but nothing is added
> > inside
> > > > the
> > > > > repo.
> > > > >
> > > > > Do I miss something ?
> > > >
> > > > The Dojo code is not copied into the repository (any more) but
> > delivered
> > > > directly out of the bundle. This simplifies updates of the dojo
> > toolkit.
> > > > This is manifested by the "Sling-Bundle-Resources" manifest header:
> > > >
> > > > <!-- Provide the actual library as bundle resources -->
> > > > <Sling-Bundle-Resources>
> > > > /dojo,/dijit,/dojox
> > > > </Sling-Bundle-Resources>
> > > >
> > > >
> > > > Hope this helps.
> > > >
> > > > Regards
> > > > Felix
> > > >
> > > >
> >
> >
Re: Dojo Bundles
Posted by Christophe Lombart <ch...@gmail.com>.
Maybe I can continue my investigations ... nice way to learn how Sling is
working.
On Mon, Jun 2, 2008 at 11:02 AM, Felix Meschberger <fm...@gmail.com>
wrote:
> Hmm,
>
> Now, I am completely off my terrain :-)
>
> Maybe Lars could be of help here ? What I tried was adding the following
> lines to the SlingNodeStore.js and SlingPropertyStore.js files:
>
> dojo.require("dojo.data.util.simpleFetch");
> dojo.require("dojo.data.api.Read");
> dojo.require('dojo.data.api.Write');
> dojo.require('dojo.data.api.Identity');
> dojo.require('dojo.data.api.Notification');
>
> Immediately before the dojo.provide statement. Not sure, what or whether
> this is required.
>
> This could be related to our recent change to use the dojo source
> distribution instead of the dojo release distribution to be able to run
> dojo on server and client.
>
> Maybe Lars can be of help ?
>
> Regards
> Felix
>
> Am Montag, den 02.06.2008, 10:04 +0200 schrieb Christophe Lombart:
> > Ahh ok . I thought that js libraries are deployed as content. of course
> not
> > :-)
> >
> > I have another issue. I have install both Dojo bundles and then I'm
> trying
> > to start the demo
> > (http://localhost:8080/dojox/data/demo/demo1.html)
> >
> > It seems that it didn't find SlingNodeStore. I think this is not the
> correct
> > path to access to it.
> >
> > Error: Could not load 'dojox.data.SlingNodeStore'; last tried
> > '../dojox/data/SlingNodeStore.js'
> > Source File: http://localhost:8080/dojo/_base/_loader/loader.js
> > Line: 327
> >
> > I have also another error :
> >
> > Error: [Exception... "'Error: Could not load class
> > 'dojox.data.SlingPropertyStore'. Did you spell the name correctly and use
> a
> > full path, like 'dijit.form.Button'?' when calling method:
> > [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> > (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
> >
> >
> >
> > Thanks,
> > Christophe
> >
> >
> > On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger <fm...@gmail.com>
> > wrote:
> >
> > > Hi Christophe,
> > >
> > > Am Montag, den 02.06.2008, 00:03 +0200 schrieb Christophe Lombart:
> > > > Hi,
> > > >
> > > > I'm trying to install the Dojo extensions but I don't see the folders
> > > > mentioned in Sling-Initial-Content.
> > > > I just made a "mvn clean install" from the Dojo extension projects
> > > > ([sling-home]/extensions/dojo & [sling-home]/extensions/dojo-sling)
> and
> > > > install those bundles from the Sling console but nothing is added
> inside
> > > the
> > > > repo.
> > > >
> > > > Do I miss something ?
> > >
> > > The Dojo code is not copied into the repository (any more) but
> delivered
> > > directly out of the bundle. This simplifies updates of the dojo
> toolkit.
> > > This is manifested by the "Sling-Bundle-Resources" manifest header:
> > >
> > > <!-- Provide the actual library as bundle resources -->
> > > <Sling-Bundle-Resources>
> > > /dojo,/dijit,/dojox
> > > </Sling-Bundle-Resources>
> > >
> > >
> > > Hope this helps.
> > >
> > > Regards
> > > Felix
> > >
> > >
>
>
Re: Dojo Bundles
Posted by Felix Meschberger <fm...@gmail.com>.
Hmm,
Now, I am completely off my terrain :-)
Maybe Lars could be of help here ? What I tried was adding the following
lines to the SlingNodeStore.js and SlingPropertyStore.js files:
dojo.require("dojo.data.util.simpleFetch");
dojo.require("dojo.data.api.Read");
dojo.require('dojo.data.api.Write');
dojo.require('dojo.data.api.Identity');
dojo.require('dojo.data.api.Notification');
Immediately before the dojo.provide statement. Not sure, what or whether
this is required.
This could be related to our recent change to use the dojo source
distribution instead of the dojo release distribution to be able to run
dojo on server and client.
Maybe Lars can be of help ?
Regards
Felix
Am Montag, den 02.06.2008, 10:04 +0200 schrieb Christophe Lombart:
> Ahh ok . I thought that js libraries are deployed as content. of course not
> :-)
>
> I have another issue. I have install both Dojo bundles and then I'm trying
> to start the demo
> (http://localhost:8080/dojox/data/demo/demo1.html)
>
> It seems that it didn't find SlingNodeStore. I think this is not the correct
> path to access to it.
>
> Error: Could not load 'dojox.data.SlingNodeStore'; last tried
> '../dojox/data/SlingNodeStore.js'
> Source File: http://localhost:8080/dojo/_base/_loader/loader.js
> Line: 327
>
> I have also another error :
>
> Error: [Exception... "'Error: Could not load class
> 'dojox.data.SlingPropertyStore'. Did you spell the name correctly and use a
> full path, like 'dijit.form.Button'?' when calling method:
> [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
> (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
>
>
>
> Thanks,
> Christophe
>
>
> On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger <fm...@gmail.com>
> wrote:
>
> > Hi Christophe,
> >
> > Am Montag, den 02.06.2008, 00:03 +0200 schrieb Christophe Lombart:
> > > Hi,
> > >
> > > I'm trying to install the Dojo extensions but I don't see the folders
> > > mentioned in Sling-Initial-Content.
> > > I just made a "mvn clean install" from the Dojo extension projects
> > > ([sling-home]/extensions/dojo & [sling-home]/extensions/dojo-sling) and
> > > install those bundles from the Sling console but nothing is added inside
> > the
> > > repo.
> > >
> > > Do I miss something ?
> >
> > The Dojo code is not copied into the repository (any more) but delivered
> > directly out of the bundle. This simplifies updates of the dojo toolkit.
> > This is manifested by the "Sling-Bundle-Resources" manifest header:
> >
> > <!-- Provide the actual library as bundle resources -->
> > <Sling-Bundle-Resources>
> > /dojo,/dijit,/dojox
> > </Sling-Bundle-Resources>
> >
> >
> > Hope this helps.
> >
> > Regards
> > Felix
> >
> >
Re: Dojo Bundles
Posted by Christophe Lombart <ch...@gmail.com>.
Ahh ok . I thought that js libraries are deployed as content. of course not
:-)
I have another issue. I have install both Dojo bundles and then I'm trying
to start the demo
(http://localhost:8080/dojox/data/demo/demo1.html)
It seems that it didn't find SlingNodeStore. I think this is not the correct
path to access to it.
Error: Could not load 'dojox.data.SlingNodeStore'; last tried
'../dojox/data/SlingNodeStore.js'
Source File: http://localhost:8080/dojo/_base/_loader/loader.js
Line: 327
I have also another error :
Error: [Exception... "'Error: Could not load class
'dojox.data.SlingPropertyStore'. Did you spell the name correctly and use a
full path, like 'dijit.form.Button'?' when calling method:
[nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
(NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
Thanks,
Christophe
On Mon, Jun 2, 2008 at 12:08 AM, Felix Meschberger <fm...@gmail.com>
wrote:
> Hi Christophe,
>
> Am Montag, den 02.06.2008, 00:03 +0200 schrieb Christophe Lombart:
> > Hi,
> >
> > I'm trying to install the Dojo extensions but I don't see the folders
> > mentioned in Sling-Initial-Content.
> > I just made a "mvn clean install" from the Dojo extension projects
> > ([sling-home]/extensions/dojo & [sling-home]/extensions/dojo-sling) and
> > install those bundles from the Sling console but nothing is added inside
> the
> > repo.
> >
> > Do I miss something ?
>
> The Dojo code is not copied into the repository (any more) but delivered
> directly out of the bundle. This simplifies updates of the dojo toolkit.
> This is manifested by the "Sling-Bundle-Resources" manifest header:
>
> <!-- Provide the actual library as bundle resources -->
> <Sling-Bundle-Resources>
> /dojo,/dijit,/dojox
> </Sling-Bundle-Resources>
>
>
> Hope this helps.
>
> Regards
> Felix
>
>
Re: Dojo Bundles
Posted by Felix Meschberger <fm...@gmail.com>.
Hi Christophe,
Am Montag, den 02.06.2008, 00:03 +0200 schrieb Christophe Lombart:
> Hi,
>
> I'm trying to install the Dojo extensions but I don't see the folders
> mentioned in Sling-Initial-Content.
> I just made a "mvn clean install" from the Dojo extension projects
> ([sling-home]/extensions/dojo & [sling-home]/extensions/dojo-sling) and
> install those bundles from the Sling console but nothing is added inside the
> repo.
>
> Do I miss something ?
The Dojo code is not copied into the repository (any more) but delivered
directly out of the bundle. This simplifies updates of the dojo toolkit.
This is manifested by the "Sling-Bundle-Resources" manifest header:
<!-- Provide the actual library as bundle resources -->
<Sling-Bundle-Resources>
/dojo,/dijit,/dojox
</Sling-Bundle-Resources>
Hope this helps.
Regards
Felix