Alessandro Vincelli wrote:
>
> Hussayn i'm working on a similar task.
> I created a simple block that contains the latest version of the dojo
> toolkit.
> You can get the code and some simple documentation on this page:
> http://devel.alessandro.vincelli.name/item/30.html
> Let me know
> Alessandro
>
Hi again;
I just managed to connect your dojo block with my own block.
It basically worked as you described. But there where two pitfalls,
which missleaded me in first place:
1.) In order to use mvn, the dojo block must be installed, before it can be
used from my own block.
So i had to type the command "mvn install". This installs the dojho block
as jar-file into the local
mvn repository, so that the dependency entry in my pom.xml can be
resolved...
2.) Somewhere on your webpage you say:
...
Then create a connection on your servlet as below, see the file
block-servlet-service.xml:
...
There you present a bean snippet. In first place it is not obvious to a
beginner, that
it is only necessary to add the <servlet:connections> subsnippet right into
the allready existing
<servlet:context>. So i had to explicitly copy the following snippet into my
bloock-servlet-service.xml:
<servlet:connections>
<entry key="dojo" value-ref="org.deals.cocoon.dojo.service"/>
</servlet:connections>
After i understood that detail, i could again "mvn jetty:run" my own block
and now both blocks live together in perfect harmony ;-)
thanks again for your very valuable input!
regards,
Hussayn
--
View this message in context:
http://www.nabble.com/Howto-use-Dojo-%22standalone%22-with-cocoon---%28does-that-make-sense-at-all-%29-tp19040317p19149913.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]