Hi Peter,

The XMLSerializer closes all elements which leads to an unwanted result in case 
of textarea, script and some other elements that browsers can't handle when 
closed. You can make your own XSL that imports the cforms XSLs and override the 
template of the textarea. An other option is to use 
org.apache.cocoon.components.serializers.XHTMLSerializer. You may have to use 
the latest 2.1 branch code of this block, some issues have been fixed in the 
code the last few months.

Jasha Joachimsthal

---------

Hippo
Oosteinde 11
1017 WT Amsterdam
The Netherlands
+31 (0)20 5224466 

[EMAIL PROTECTED]
www.hippo.nl


> -----Original Message-----
> From: Peter Sparkes [mailto:[EMAIL PROTECTED]
> Sent: maandag 3 september 2007 19:46
> To: users@cocoon.apache.org
> Subject: Re: xhtml serialization and form textarea
> 
> 
> Hi Jasha,
> 
> The Class is org.apache.cocoon.serialization.XMLSerializer. 
> The version 
> is whatever comes with cocoon 2.1.10
> 
> Doing something like:
> 
> <textarea ......>-</textarea>
> 
> does not work as the <textarea .. is generated from
> 
> <ft:widget id="lodge">
>       <fi:styling  type="textarea" rows="10" cols="40"/>
>  </ft:widget>
> 
> by the forms styling and I can't work out how to change the 
> stylesheets
> 
> Peter
> > [EMAIL PROTECTED]>
> >
> > Hi Peter,
> >
> > which serializer are you using (both class and version)?
> > As workaround you can put a   in the textarea if your 
> version of the XHTMLSerializer closes the textarea element 
> (not very nice).
> >
> > Jasha
> >
> >
> > -----Original Message-----
> > From:       Peter Sparkes [mailto:[EMAIL PROTECTED]
> > Sent:       Mon 9/3/2007 6:17 PM
> > To: users@cocoon.apache.org
> > Cc: 
> > Subject:    xhtml serialization and form textarea
> >
> > Hi,
> >
> > 1.    Using CForms I generate a form with a textarea. If I 
> serialize it 
> > as xml the output is :
> >
> >  <textarea title="" name="enjoy" id="enjoy:input" 
> class="forms field 
> > active" rows="10" cols="40"/>
> >
> > 2.    If I serialize it as html the output is :
> >
> >  <textarea title="" name="enjoy" id="enjoy:input" 
> class="forms field 
> > active" rows="10" cols="40"></textarea>
> >
> > which is correct and the form displays correctly
> >
> > 3.    However when I serialize as XHTML 1.0 Strict the 
> xhtml output is:
> >
> >  <textarea title="" name="enjoy" id="enjoy:input" 
> class="forms field 
> > active" rows="10" cols="40"/>
> >
> > which is not correct and the form does not display correctly
> >
> > Please, how do I get correct xhtml
> >
> > Thanks
> >
> > Peter Sparkes
> >
> >
> >
> >   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to