protection documents pdf statiques

2007-06-08 Thread Stephane Bonhomme
Bonjour chers cocooners J'ai une question concernant la protection des documents servis par cocoon. J'ai un site qui permet le téléchargement de document pdf (non générés dynamiquement, mais stockés sur le serveur), dons mon pipeline j'ai la partie suivante : map:match pattern=docs/*/*

RE: protection documents pdf statiques

2007-06-08 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Bonjour, map:match pattern=docs/*/* map:act type=auth-protect map:parameter name=handler value=user/ map:read mime-type=application/pdf src=context:/data/{1}/{2}/ /map:act /map:match J'ai une erreur (Streaming of an internal pipeline is not possible with a reader.)

Re: Styling an fd:multivaluefield item?

2007-06-08 Thread Derek Hohls
Baptiste I thought I explained my problem quite well :) The core issue is that each item essentially needs two key properties: * a numeric (or text) value * a true/false status The first value has to be styled as an input box value attribute; the second has to be styled as an input box

Re: Styling an fd:multivaluefield item?

2007-06-08 Thread Joerg Heinicke
On 07.06.2007 14:27, Derek Hohls wrote: The thread: http://marc.info/?l=xml-cocoon-usersm=117879407932600w=2 refers... The basic question, which was not clearly answered there is how to add *standard* form attributes to an fd:item for an fd:multivaluefield? What ALSO needs to appear on

Re: Styling an fd:multivaluefield item?

2007-06-08 Thread Derek Hohls
Joerg Sorry, what you are saying is very unclear to me... I have given code examples of what I want to achieve - if you could show me code examples of how to do this, then understanding would be achieved! (I have tried to explain again in another post what it is I am trying to get to.) Derek

Re: Styling an fd:multivaluefield item?

2007-06-08 Thread Johannes Textor
Derek, I think Joerg is making the following point: In the form *definition*, you just define the set of *possible* values for a field, e.g.: fd:multivaluefield id=language fd:labelSelect language/fd:label fd:datatype base=integer/ fd:selection-list fd:item

Re: Stackoverflow when using regexp matcher (Cocoon 2.1.10)

2007-06-08 Thread Ralph Goers
The EncodeURLTransformer was modified to use java.util.regexp instead of Apache regexp. Tests showed it is significantly faster and I was experiencing extremely deep stacks on calls to matchNodes (although I never actually got a StackOverflow). Although you have bypassed the problem it

Re: Styling an fd:multivaluefield item?

2007-06-08 Thread Derek Hohls
Johannes Thanks; that is clearer. Am I correct in assuming that the : fi:values fi:value1/fi:value fi:value3/fi:value /fi:values will be displayed as checked input boxes with a: fi:styling list-type=checkbox/ I still do not understand the rationale for this; this

Re: Styling an fd:multivaluefield item?

2007-06-08 Thread Derek Hohls
Solved! Found I was using: fd:datatype base=boolean/ rather than: fd:datatype base=string/ in the: fd:multivaluefield definition. Sorry Derek Hohls [EMAIL PROTECTED] 2007/06/08 10:17 AM Johannes I am still struggling with the transformation step: when I have input like this

Re: Styling an fd:multivaluefield item?

2007-06-08 Thread Derek Hohls
Johannes I am still struggling with the transformation step: when I have input like this fd:item value=TESTfd:labelTest Label/fd:label/fd:item It seems to arrive at the styling step (ie. BEFORE the HTML is created) with the value being set to false ? The only place I can see that this

Re: Styling an fd:multivaluefield item?

2007-06-08 Thread Johannes Textor
Derek, Thanks; that is clearer. Am I correct in assuming that the : fi:values fi:value1/fi:value fi:value3/fi:value /fi:values will be displayed as checked input boxes with a: fi:styling list-type=checkbox/ I don't really know, since I do not use the default CForms

Re: Processing checkboxes from a form via flowscript

2007-06-08 Thread Derek Hohls
Baptiste How would this work for a multi-select situation ie. you have a set of checkboxes, each with the same name - this will result in an array of values being returned that need to be processed (presumably in an Array() ?) Derek Baptiste Placé [EMAIL PROTECTED] 2007/06/07 05:23 PM

Re: Styling an fd:multivaluefield item?

2007-06-08 Thread Derek Hohls
Johannes Follow-up to post prior to this one - you said: var model=form.getModel(); model.language[0] = 1; In my code, when I try do this, I get a java.lang.NullPointerException. starting off: at org.apache.cocoon.forms.flow.javascript.ScriptableWidget.has(ScriptableWidget.java:96) at

Re: CForm Ajax: how does the continuation-id get updated?

2007-06-08 Thread Ellis Pritchard
Ok, my misunderstanding; the continuation id doesn't get updated when non in AJAX mode either, and that works fine. So now all I've got to explain is why my repeater doesn't work properly in AJAX mode: I'm still getting Invalid submit id (no such widget) when triggering actions on newly

Re: re-design of sitemaps

2007-06-08 Thread Antonio Gallardo
Stephen Winnall escribió: I understand that sentiment, but it would make sitemaps easier for me if I could validate them in my XML editor. And I suspect that we might have more user-friendly tools for Cocoon to make it easier to grok, if the sitemap could be easily marshalled and unmarshalled

Re: CForm Ajax: how does the continuation-id get updated?

2007-06-08 Thread Ellis Pritchard
Solved, this is a documentation problem :) http://cocoon.zones.apache.org/daisy/cdocs/g1/g2/g7/forms/g3/750.html? showComments=true#daisycomment66 Describes what is necessary to convert repeaters to AJAX, i.e. replacement of ft:repeater-widget with ft:repeater etc. However, this should

Re: Processing checkboxes from a form via flowscript

2007-06-08 Thread Baptiste Placé
Derek, Please have a look at the API (1), you may find methods to iterate over a set of childrend of a given form. I never used this, but you should find what you need by digging a little into it :) Baptiste (1)

Re: re-design of sitemaps

2007-06-08 Thread Stephen Winnall
On 8 Jun 2007, at 12:22, Antonio Gallardo wrote: A lot of people asked to have an schema of the sitemap, unfortunately nobody cared to update it. If you provide it, I am willing commit it. :) If I thought it were possible without changing the current syntax of the sitemap, I might try

RE: Stackoverflow when using regexp matcher (Cocoon 2.1.10)

2007-06-08 Thread Christian Schlichtherle
Hi, The EncodeURLTransformer was modified to use java.util.regexp instead of Apache regexp. Tests showed it is significantly faster and I was experiencing extremely deep stacks on calls to matchNodes (although I never actually got a StackOverflow). Although you have bypassed the problem

Repeater add row replaces old data

2007-06-08 Thread Barbara Slupik
Hello I am trying to add a row in a CForms repeater but the new row replaces some of the old data in the collection. I am using Cocoon-2.1.10 with Hibernate-3.2, Spring-2.0.4 and MySQL-5.0.37. The repeater rows are loaded from the database and displayed correctly on the screen. When I