Hi,
yep, if I got you right, problems appear somewhere between the submit and the outcome of the bind, at server side. Container is Tomcat 6.
Something like this:
flowscript:
form.createBinding("cocoon:/form_" + id + "_bind");
form.save(doc);
cocoon.sendPage("vastaus-display-pipeline.jx", {title: "blaah, blaah..", document: doc, id: id}

sitemap:
(this is for the dynamic binding..)
<map:match pattern="form_*_bind">
<map:generate src="cocoon:/kohde{1}">
</map:generate>
<map:transform type="xslt" src="kr2form_bind.xslt"/>
<map:serialize type="xml"/>
</map:match>

and:

<map:match pattern="*-display-pipeline.jx*">
<map:generate type="jx" src="cocoon:/{1}_templ{2}" label="content1">
         <map:parameter name="locale" value="{flow-attribute:locale}"/>
       </map:generate>
<map:transform type="browser-update"/><!-- AJAX-style form update -->
       <map:transform type="i18n">
         <map:parameter name="locale" value="{flow-attribute:locale}"/>
       </map:transform>
       <map:call resource="simple-page2html">
         <map:parameter name="file" value="cocoon:/{1}_templ{2}"/>
       </map:call>
       <map:transform src="resources/forms-samples-styling.xsl">
<map:parameter name="resources-uri" value="{request:contextPath}/_cocoon/resources"/>
         <map:parameter name="dojo-debug" value="false"/>
         <map:parameter name="dojo-locale" value="{flow-attr:locale}"/>
       </map:transform>
       <map:transform type="i18n">
         <map:parameter name="locale" value="{flow-attribute:locale}"/>
       </map:transform>
       <map:select type="ajax-request">
<map:when test="true"><!-- sending a partial Browser Update -->
            <map:select type="request-parameter">
<map:parameter name="parameter-name" value="dojo.transport"/>
              <map:when test="iframe"><!-- sending BU via iFrameIO -->
<map:transform src="resource://org/apache/cocoon/forms/resources/IframeTransport-bu-styling.xsl"/>
                <map:serialize type="xhtml"/>
              </map:when>
              <map:otherwise>
                <map:serialize type="xml"/>
              </map:otherwise>
            </map:select>
         </map:when>
         <map:otherwise>
           <map:serialize type="html"/>
         </map:otherwise>
       </map:select>
</map:match>

and the #{$document} in the jx-template has lost scands

- mika -


On Fri, 31 Aug 2012 09:19:04 +0200, Robby Pelssers <robby.pelss...@nxp.com> wrote:
Hi Mika,

Some questions:
- are you having problems submitting forms where the data is not
received server side as UTF-8?
- what application container are you using?  Tomcat, Jetty, ...

Robby

-----Original Message-----
From: m...@digikartta.net [mailto:m...@digikartta.net]
Sent: Wednesday, August 29, 2012 12:37 PM
To: users@cocoon.apache.org
Subject: encoding issue


 Hi.

C2.11 and CForms. I loose scands after binding, they are all replaced by a question mark. I have read all the sites possible to resolve this, but without luck. All is UTF-8, except container-encoding iso-8859-1. Changing container to utf-8 will change the question marks to some other
 wrong ones and will do other harms.
 What next? Checking the source code?

 - mika -

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


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


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

Reply via email to