cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Gallardo <agalla...@agssa.net>
Subject Re: Where are the JavaScript functions?
Date Tue, 21 Mar 2006 22:07:29 GMT
Hello Nicolás,

In your sitemap.xmap, you need to include a matcher for the client-side 
javascript files. You should write something like this:

<map:match pattern="resources/*/**">
  <map:read src="resource://org/apache/cocoon/{1}/resources/{2}"/>
</map:match>


If you want to look at the source of this files:

http://svn.apache.org/viewcvs.cgi/cocoon/trunk/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/resources/js/

Best Regards,

Antonio Gallardo

Nicolás Lichtmaier wrote:

> I'm trying to create an automatic form system (from some data we have) 
> and thought cocoon was ideal (since it's all about automatically 
> creating things). But it's sooo complex...
>
> The form I've created has references to JavaScript functions, but I 
> can't see anywhere in the docs where there's some hint to get them! Am 
> I missing something?
>
> The generated page has:
>
> <body onload="forms_onload();">
>
>
> and...
>
> <form 
> action="/prueba/fastbranch/1c1b4137606d593f404a7d6a3a43396549498509.continue" 
>
> ajax="false" method="POST" onsubmit="forms_onsubmit(); ">
>
>
> Where are these functions? What is the clean way to get the proper 
> script files included?
>
> Thanks!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message