You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Peter Sparkes <pe...@didm.co.uk> on 2012/12/04 08:16:16 UTC

Re: CForms

Hi Robby,

Thank you for your help, however, my programming skills proved not to be up to doing as you suggested.

What I have done instead is using the techniques in:

http://cocoon.zones.apache.org/cocoon21/samples/blocks/forms/do-taskTree.flow

to eliminate the <br /> and replace them with sub paras as in "sub 1" and " sub 2" below:

  <p>para 1
        <p>sub 1</p>
        <p>sub 2</p>
  </p>

The xslt formatting the html pages will then format the sub paras appropriately.

Peter


On 30/11/2012 09:44, Robby Pelssers wrote:
>
> 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
>