Re[2]: CForms block

2007-01-30 Thread Dimas51
Hello Jeroen, Tuesday, January 23, 2007, 8:50:07 PM, you wrote: JR> Hi Dimas, JR> what kind of form are you trying to create with cocoon 2.1.10? I've just JR> downloaded the cocoon 2.1.10 distribution from the Cocoon website and JR> all CForms samples seem to work. JR> Could you point us to a

Sending mail from flowscript: encoding problems

2007-01-30 Thread Tobia
I have a flowscript that handles a simple contact form, sending an email for each successful submit: var form = new Form('cocoon:/contact.form') form.showForm('contact.jx') var fields = getFormFields(form) var m = cocoon.getComponent(Packages.org.apache.cocoon.mail.MailSender.ROLE) m.setSmtpHost

Re: Sending mail from flowscript: encoding problems

2007-01-30 Thread Lionel Barth
Tobia, Don't you have to use m.setCharset('ISO8859-1') instead of m.setCharset('utf-8') ? Regards, Lionel Tobia a ecrit le 30/01/07 13:37: I have a flowscript that handles a simple contact form, sending an email for each successful submit: var form = new Form('cocoon:/contact.form') form.s

RE: Sending mail from flowscript: encoding problems

2007-01-30 Thread Joost Kuif
Hi Tobia, 1) In your formtemplate set the attribute enctype to "multipart/form-data" 2) In your pipeline, use: 3) In your cocoon web.xml specify: container-encoding UTF-8 form-encoding UTF-8 I think this did the trick with o

Re: Sending mail from flowscript: encoding problems

2007-01-30 Thread Tobia
Joost Kuif wrote: > >form-encoding >UTF-8 > This did it for me, and it works on every browser. It would have taken days to me to find that setting on my own. Thank you! Tobia - To unsubscribe, e-mail: [EMAIL PROTEC

Strange problem with svg : blank screen first call

2007-01-30 Thread john does
Hi, I've got problems with svg images. I use cocoon to transform xml flow and xsl stylesheet into PDF output. In my xsl-fo file, there is svg image. When i first call my tranformation, i've got a blank screen, all the other times, it works fine. The svg image is a result of conversion from png im

IE : "Page Has Expired" with add-row in a reapeter

2007-01-30 Thread Helena Tanguy
Hi, I have a problem with a repeater : when I call the add-row action, IE displays the page " Warning: **Page Has Expired". The repeater is in a popup window, I don't know if this could be the reason of the problem. The add-row action works good when testing with tomcat on windows, and the pro

upload an xml file and parse it in a pipeline

2007-01-30 Thread Sébastien Geindre
Hi all, I've a form with an upoad widget. I'd like to get the xml data which are uploaded and give it to an internal pipeline. What i've done transform xml data : is transformed to anyone could help ? Thancks -- Sébastien Geindre DPREVI/AERO/DEV [EMAIL PROTECTED] 05 61 07 84

Re: A slash after a parameter in a tag causes the tag to be dropped.

2007-01-30 Thread Antonio Magni
Its not abou being at the end, and its not general to any href. See the problem even occurs when I add something after the / like {$root}/mypage.html. And the problem occurs even when I write out the same content of the variable {$root}. Actually, I found this out: it happens when I use The pro

Re: upload an xml file and parse it in a pipeline

2007-01-30 Thread Andre Juffer
Sébastien, You could try the following: var s = new Packages.java.lang.String("" + your_data + ""); var xml = new Packages.org.apache.cocoon.xml.StringXMLizable(s); var builder = Packages.org.apache.cocoon.xml.dom.DOMBuilder(); xml.toSAX(builder); var document = builder.getDocument(); Andre

recursively calling a flowscript function

2007-01-30 Thread Kirn Khaira
I have a flowscript function that takes in start and end parameters and creates a form that includes a previous and next button on the form page. After the form has been submitted, with either a next submit call or previous submit call, it calls itself with new values for the start and end paramete

Re: A slash after a parameter in a tag causes the tag to be dropped.

2007-01-30 Thread Jason Johnston
Can you show us what your pipeline looks like? Antonio Magni wrote: Its not abou being at the end, and its not general to any href. See the problem even occurs when I add something after the / like {$root}/mypage.html. And the problem occurs even when I write out the same content of the variabl

Re: recursively calling a flowscript function

2007-01-30 Thread Jason Johnston
Kirn Khaira wrote: I have a flowscript function that takes in start and end parameters and creates a form that includes a previous and next button on the form page. After the form has been submitted, with either a next submit call or previous submit call, it calls itself with new values for the