cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robby Pelssers <Robby.Pelss...@nxp.com>
Subject RE: CForms <br />
Date Fri, 30 Nov 2012 09:44:08 GMT
Did you already debug what you received back on the server side?  I’m interesting what value
the form posts to the server.

http://cocoon.apache.org/2.1/apidocs/index.html?overview-summary.html

I would put a breakpoint on setValue<http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/forms/formmodel/Field.html#setValue%28java.lang.Object%29>(Object<http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true>
newValue)

I think you can set it in http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/forms/formmodel/AbstractWidget.html

Robby



From: Peter Sparkes [mailto:peter@didm.co.uk]
Sent: Friday, November 30, 2012 7:33 AM
To: users
Subject: CForms <br />

CForms with 2.1.11 cocoon.

I have a field widget with datatype string:

<fd:field id="p" required="false" whitespace="trim">
       <fd:datatype base="string"/>
</fd:field>

which is bound to a para in the  source document. Some paras contain <br /> elements.

On loading a document in the CForm the <br />  disappears, so on submitting the CForm
the resulting saved xml does not contain the <br />

Please, how can I preserve the <br />

Thank you

Peter

Mime
View raw message