RE: CForms <br />

Robby Pelssers <[email protected]>
Newsgroups gmane.text.xml.cocoon.user
Message-ID <A5838A1302A3AC48B4A90FAD790B51AB01E9BD@AMXPRD0410MB366.eurprd04.prod.outlook.com>
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:[email protected]]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.