Re: Dom to Javascript object

2008-02-28 Thread Joerg Heinicke
On 28.02.2008 06:04, Tobia Conforto wrote: Is there an API to translate a Dom object to a structure of Javascript objects and arrays? Look for E4X (Ecmascript for XML), it's an official standard. It seems latest Rhino 1.6R7 has support for it. Joerg http://en.wikipedia.org/wiki/E4X

Re: Cocoon, JX Temaplte and UTF-8

2008-02-28 Thread Joerg Heinicke
On 27.02.2008 16:06, Magnus Haraldsen Amundsen wrote: Yes, I tried the .toString(UTF-8), but that gave the same result. I've also tried to create the String using: String myUTF8String = new String(byteArrayOutputStream.toByteArray(), UTF-8); Maybe this could be solved by using some other

RE: Cocoon, JX Temaplte and UTF-8

2008-02-28 Thread Magnus Haraldsen Amundsen
We use a spring-apples, in this case a StatelessAppleController, instead of FlowScript, and the code looks like this: http://pastebin.com/m571480c6 I've highlighted the lines that I think could have effect on the encoding. The strange thing is that this code works just fine on a Linux machine,

Setting a form field value as an empty string?

2008-02-28 Thread Derek Hohls
(Using Cocoon 2.1.8) I'd like to be able to set the initial, default value of a form to be an empty string; at the moment, if the user does not fill in a value, then it gets treated as a NULL value when passed to the database. I have tried: fd:initial-value/fd:initial-value and

Re: Newer FOP to Cocoon 2.1.11

2008-02-28 Thread Lehtonen, Mika
Hi Kai and others who are using or would wanted to use fop-0.9.x in Cocoon 2.1.x, this is just an informative message. I had casual difficulties with fop-0.94 in cocoon-2.1.11 especially with the tables. They caused some extra page breaks and even the content of one row's parallel cells

Re: Setting a form field value as an empty string?

2008-02-28 Thread Antonio Gallardo
Hi Derek, Hope this helps: https://issues.apache.org/jira/browse/COCOON-1879 Best Regards, Antonio Gallardo. Derek Hohls escribió: (Using Cocoon 2.1.8) I'd like to be able to set the initial, default value of a form to be an empty string; at the moment, if the user does not fill in a

Re[2]: Cocoon, JX Temaplte and UTF-8

2008-02-28 Thread Martin Heiden
Magnus, I'd also suggest to write the output of m.write() to a file, to inspect, if this outputs UTF-8 or ISO-8859-1. If it is UTF-8 add the charset to bout.toString(). If you only deal with UTF-8, you should make sure that the default-charset of the application server und cocoons

Re: Setting a form field value as an empty string?

2008-02-28 Thread Derek Hohls
Antonio Does this mean that the patch is available in the version 2.1.10? I have also come to the conclusion that this still does not help me. What I need is some way to tell Cocoon to pass an empty string (not whitespace per se) and not a NULL from an empty field: that might require another

Re: IncludeTransformer

2008-02-28 Thread Andy Stevens
Sébastien Geindre wrote: How can i log the http header of a request made by CIcludeTransformer ? One possibility would be to use Axis' tcpmon utility (http://ws.apache.org/axis/java/user-guide.html#AppendixUsingTheAxisTCPMonitorTcpmon)? Just change the CInclude to use localhost and