Re: Pb validation javascript avec cform sans flow

2006-07-21 Thread Jean-Baptiste Quenot
* philguillard: J'utilise habituellement 100% de mes cforms avec des continuations donc du flowscript rhino. Aujourd'hui je veux revenir sur la methode classique comme le sample form1 de la distrib avec des actions init-form/handle-form-submit etc... Pour quelle raison?

Re: Pb validation javascript avec cform sans flow

2006-07-21 Thread philguillard
Merci beaucoup pour ces reponses. Ca va etre l'occasion pour moi de m'expliquer: j'ai un formulaire de creation de compte directement affiche sur les pages principales de mon site. Pour le moment il etait en flow, avec dans la declaration du form une validation fd:validationfd:javascript...

How can I update a repeater via a Ajax

2006-07-21 Thread fhagen
Hi, i have a simple tree in my application that is built like the sample tree in the cocoon samples. This one works fine even the ajax part. But now comes my problem: If something is selected within the tree i like to update a repeater widget which is also included at the same site. If I

Re: Restrict access to parts of sitemap

2006-07-21 Thread Andrew Stevens
From: Thomas Soddemann [EMAIL PROTECTED] Date: Thu, 20 Jul 2006 13:57:42 -0600 Andrew Stevens wrote: Another possibility - you could always use the J2EE container-provided security and add a security-constraint to your web.xml for url-pattern/buildindex/url-pattern. That might be simpler

Re: Switch generate type to serverpage returns a blank page

2006-07-21 Thread Andrew Stevens
From: Basil Moser [EMAIL PROTECTED] Date: Thu, 20 Jul 2006 22:39:53 +0200 Then I get the following exception: org.apache.avalon.framework.configuration.ConfigurationException: Unknown element 'serializer' at file:/opt/apache-tomcat-5.5.12/ webapps/telejobBeat/telejob/sitemap.xmap BTW: Where

Re: Re: Switch generate type to serverpage returns a blank page

2006-07-21 Thread Bertrand Delacretaz
...BTW: Where is the cocoon.log located? Sorry but I'm a cocoon newbie :-)... A useful trick to find out where logs are created (by any app) is: touch /tmp/timestamp ...run the app find . -newer /tmp/timestamp Replacing . with paths where you suspect logs might be created. -Bertrand

Re: PDF: external-graphic absolute pat

2006-07-21 Thread Omar Adobati
I worked around that by passing in the host/port/context (read from the request object) as a parameter to the XSL transformation. You could do much the same with Cocoon using something like map:transform type=xsl src=whatever.xsl map:parameter name=baseUrl

Re: Switch generate type to serverpage returns a blank page

2006-07-21 Thread Andrew Stevens
From: Basil Moser [EMAIL PROTECTED] Date: Thu, 20 Jul 2006 22:39:53 +0200 Then I get the following exception: org.apache.avalon.framework.configuration.ConfigurationException: Unknown element 'serializer' at file:/opt/apache-tomcat-5.5.12/ webapps/telejobBeat/telejob/sitemap.xmap That's

Re: PDF: external-graphic absolute pat

2006-07-21 Thread Andrew Stevens
From: Omar Adobati [EMAIL PROTECTED] Date: Fri, 21 Jul 2006 12:03:05 +0200 I worked around that by passing in the host/port/context (read from the request object) as a parameter to the XSL transformation. You could do much the same with Cocoon using something like map:transform type=xsl

Xhtml serialized document with ajax=true results in 'cocoon not defined'

2006-07-21 Thread Andrew
Hi,I have an xhtml document: !DOCTYPE page PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtdwhich uses, or is trying to use!, ajax. When ajax is declared as true, transformation/serialization yields the following (x)html output: form action="" ajax=true

AW: [CForms] Union-Widget loosing data

2006-07-21 Thread Christofer Dutz
Hi, I just had a look at the union sample in the Datasource chooser here I could reproduce the same behaviour. All I want to do is to split up one large form into multiple smaller tabs and to be able to edit them as I they were in a usual tabbed application. (editing the fields and

JSF?

2006-07-21 Thread Fernando.Matomira
What is the plan for the faces block?

Profiling

2006-07-21 Thread Stewart, Gary
Hi there, I am attempting to use profiler in a couple of pipelines but I seem to be getting very strange results where each part of the pipeline seems very fast but the overall execution is slow. It seemes, from observation, that the slower value is the more accurate but I was hoping profiler

AW: [CForms] Union-Widget loosing data

2006-07-21 Thread Christofer Dutz
Ok second reply to myself L While looking through the other samples while waiting for some help I stumbled over a sample, that had nothing to do with my original problem, but I found a solution there. In the locales Example there the functionality I am looking for works fine. When

JXTemplateGenerator caching

2006-07-21 Thread Rui Alberto
Hi, I'm trying to cache a document generated by JXTemplateGenerator. After reading some threads about making JXTemplateGenerator cacheable, I've tried: selectElemType elemTypeKey=${cocoon.request.elemTypeKey} xmlns:jx=http://apache.org/cocoon/templates/jx/1.0; jx:cache-key=testing key

RE: JXTemplateGenerator caching

2006-07-21 Thread Ard Schrijvers
Hello Rui, It does not work for me the way you are doing it: I don't even get the date. Think this depends on the cocoon version (there have been some changes regarding jx that changed some behavior) Anyway, the way it works for me is going through flow, do a sendpage with a cachekey and a

RE: JXTemplateGenerator caching

2006-07-21 Thread Rui Alberto
Hello Ard, the behavior you mentioned is exactly what I need. I will be very thankful if you could send me the extended jx generator. Rui On Fri, 2006-07-21 at 17:55 +0200, Ard Schrijvers wrote: Hello Rui, It does not work for me the way you are doing it: I don't even get the date. Think

Ajax - 'No handler found for element head' - 'No handler found for element body'

2006-07-21 Thread Andrew
Hi,I have an ajaxified form which has a number of required fields. If you submit the form without filling in any of the required fields 2 alert are displayed. The first says 'No handler found for element head. Show server response?', and the second alert says 'No handler found for element body.

Re: Xhtml serialized document with ajax=true results in 'cocoon not defined'

2006-07-21 Thread Andrew
SOLVED: This issue has been resolved.AndrewOn 21/07/06, Andrew [EMAIL PROTECTED] wrote: Hi, I have an xhtml document: !DOCTYPE page PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtdwhich uses, or is trying to use!, ajax. When ajax is declared as true,

Re: XSL: match all elements except one section... node()[not(self::login_fields)]

2006-07-21 Thread Jason Johnston
Andrew wrote: Any ideas anyone? Not totally sure I get what you're after, but my best guess is maybe you just want to do an xsl:copy-of select=login_fields / in your first stylesheet? That copies it through untouched. On 19/07/06, *Andrew* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Re: AJAX enabling custom widget

2006-07-21 Thread Jason Johnston
Christofer Dutz wrote: Hi I am migrating an existing application to ajax. I managed to update almost everything. The only problem I am still having is my custom styling for a field which I use for view-selection. When using the default (drop-down-box) styling, everything works. My custom

Re: Ajax - 'No handler found for element head' - 'No handler found for element body'

2006-07-21 Thread Jason Johnston
Andrew wrote: Hi, I have an ajaxified form which has a number of required fields. If you submit the form without filling in any of the required fields 2 alert are displayed. The first says 'No handler found for element head. Show server response?', and the second alert says 'No handler found

Re: XSL: match all elements except one section... node()[not(self::login_fields)]

2006-07-21 Thread Andrew
Hi Jason,I have resolved this issue by doing:xsl:template match=* xsl:element name={name()} namespace={namespace-uri()} xsl:apply-templates select=@*|node()/ /xsl:element/xsl:templateMany regards for your reply.AndrewOn 22/07/06, Jason Johnston [EMAIL PROTECTED] wrote:Andrew wrote: Any ideas

Re: Ajax - 'No handler found for element head' - 'No handler found for element body'

2006-07-21 Thread Andrew
Jason,Eureka! At last I have ajax working with my formsMany thanks for pointing me in the right direction.regardsAndrewOn 22/07/06, Jason Johnston [EMAIL PROTECTED] wrote: Andrew wrote: Hi, I have an ajaxified form which has a number of required fields. If you submit the form without filling

Re: Ajax - 'No handler found for element head' - 'No handler found for element body'

2006-07-21 Thread Andrew
Hi Jason,question? Why will the ajax process only be initiated with:input type=submit id=save value=Submit /and not:a href="" ()/a ? When the _javascript_ methodology to submit a page is used, the whole page reload!regardsAndrewOn 22/07/06, Andrew [EMAIL PROTECTED] wrote: Jason,Eureka! At last I