After I made this change, it seems to work well.

Note: forwarded message attached.
--- Begin Message ---
Hi Paul,

In your forms resources directory, the form-*-styling.xsl files have a parameter 
called resoures-uri in them:

<xsl:param name="resources-uri">resources</xsl:param>

As you can see, it contains the value "resources". This is the (relative) uri where 
your help and calendar images should be found. So in your case, and with this value, 
your browser will try to find them at 
http://localhost:8080/cocoon/samples/blocks/schema2form/resources.

You can either changes the value of the resources-uri parameter in each of the 
form-*-styling.xsl files, or add a pipeline in the schema2form sitemap matching 
"resources/**" like this:

<map:match pattern="resources/**">
  <map:read src="context://samples/blocks/forms/resources/{1}"/>
</map:match>

I did not test this, but I should work.

Good luck

Niels

> -----Original Message-----
> From: Paul Joseph [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 16, 2004 1:00 PM
> To: Niels van Kampenhout
> Subject: RE: how do I test it?
> 
> 
> Hi Niels,
> 
> Thank you for your reply.
> 
> I will be most happy to modify the wikki as needed.
> 
> However, I am still not able to find the source of the
> problem...my sitemap *seems* to have the right path
> for the form-samples-styling.xsl.
> 
> I have attached a snapshot of the image and also the
> sitemap for this fragment.  As you can see the problem
> is only with the "Calender" and "Help" elements.
> 
> Any help would be appreciated, I am a bit of a newbie
> at Cocoon!
> 
> thx
> Paul
> 
> 
> I did confirm that the 
> --- Niels van Kampenhout <[EMAIL PROTECTED]>
> wrote:
> 
> > Hi Paul,
> > 
> > Sorry for my late reply, but I had a day off last
> > friday (and have other things to do in the weekend
> > ;)
> > 
> > The gifs are part of the Cocoon Forms resources. You
> > probably need to adjust the resources-uri parameter
> > in forms-*-styling.xsl in the same resources
> > directory.
> > 
> > At Hippo we build sites on our own Cocoon
> > distribution, which makes development much easier,
> > but making an example that is easily plugged-in to
> > the normal Cocoon distribution a little bit more
> > complicated. Unfortunately I do not have as much
> > time for things like this as I would like to.
> > However please do email me any questions or comments
> > about the example, or better still, extend the Wiki
> > page with your findings.
> > 
> > Niels
> > 
> > > -----Original Message-----
> > > From: Paul Joseph [mailto:[EMAIL PROTECTED]
> > > Sent: Sunday, August 15, 2004 3:27 AM
> > > To: Niels van Kampenhout
> > > Subject: Re: how do I test it?
> > > 
> > > 
> > >  got it to work - I had to just change the site
> > map
> > > to account for the new locations of things.
> > > 
> > > One thing though - the gifs on the page appear to
> > be
> > > broken...haven't researched it yet but I assume
> > they
> > > simply weren't packed into the zip file?
> > > 
> > > btw: I visited Hippo's site and learned something
> > > about why open-source is good!
> > > 
> > > I think there should be a good market in the US
> > > for Hippo's CMS.  I used to work at a CMS and they
> > > mismanaged it else it would have done quite well.
> > > 
> > > thx
> > > Paul
> > > 
> > > --- Paul Joseph <[EMAIL PROTECTED]> wrote:
> > > 
> > > > Making much more progress (atleast for a
> > newbie!)
> > > > 
> > > > I was able to figure out from the site-map that
> > I
> > > > should be calling:
> > > >
> > http://localhost:8080/cocoon/formmodel/form-example
> > > > 
> > > > but when I do so, I get this error because of
> > > > Question
> > > > 2 below (I suppose.)
> > > > 
> > > > thx
> > > > Paul
> > > > ==================
> > > > An Error Occurred
> > > > Unable to locate resource: OtherMessages (key
> > > > [OtherMessages])
> > > > 
> > > > org.apache.cocoon.ProcessingException: Unable to
> > > > locate resource: OtherMessages (key
> > > > [OtherMessages]):
> > > >
> > >
> >
> org.apache.avalon.framework.component.ComponentException:
> > > > Unable to locate resource: OtherMessages (key
> > > > [OtherMessages])
> > > > 
> > > > cause:
> > > >
> > >
> >
> org.apache.avalon.framework.component.ComponentException:
> > > > Unable to locate resource: OtherMessages (key
> > > > [OtherMessages])
> > > > 
> > > > 
> > > > --- Paul Joseph <[EMAIL PROTECTED]> wrote:
> > > > 
> > > > > Hi Niels,
> > > > > 
> > > > > I have downloaded your schema2form.zip file
> > and
> > > > > unpacked it in a directory under
> > webapps/cocoon
> > > > > (tomcat.)
> > > > > 
> > > > > I have two questions:
> > > > > 
> > > > > 1. how do I see something in a browser?
> > > > > 
> > > > > 2. I don't have a cforms/directory with
> > > > 'resources'
> > > > > and 'messages' sub-dirs.?  I am using Cocoon
> > > > 2.1.5.
> > > > > 
> > > > > Please advise when you get a moment.
> > > > > 
> > > > > thx
> > > > > Paul
> > > > > 
> > > > 
> > > > 
> > > 
> > > 
> > 
> 


--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to