Alessandro, I found that your work on dojo block is quite useful.  Thank
you.  I believe both cocoon-ajex and cocoon-form are not yet released
blocks.  Please put your work into wiki that can benefit more people.

Hussayn, thank you for posting your experience of "pitfalls" fixing that
helps me put dojo into cocoon.  Following your (and Alessandro's)
instructions, I can run both dojo test and welcome screen (from myBlock1 of
getting-start-tutorial) independently.  However, when I put the <script ...
/> into welcome.xstl, nothing shows up.  The following is from view/source
of Firefox:

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html><head><title>Apache Cocoon: Welcome!</title><script
src="servlet:dojo:/resource/external/dojo/dojo/dojo.js"
type="text/javascript" /></head><body><h1>Apache Cocoon:
Welcome</h1><p>This block <strong>com.mycompany:myBlock1</strong> was
created by the Cocoon block archetype.</p><p /><p><a
href="spring-bean">Link</a> to the output of a simple Flowscript that
accesses a Spring bean.</p></body></html>

Could anyone help?  Thanks,

Tak





On 8/25/08, hussayn <[EMAIL PROTECTED]> wrote:
>
>
>
>
> 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]
>
>

Reply via email to