You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by vi...@wipro.com on 2005/10/17 16:38:55 UTC

Junk(HTML) characters displayed in textarea fields

Hi,
  We are using cocoon-2.1.7 + jboss-3.2.7 + windows2000 professional.
 
  We are generating a Cocoon form page dynamically using xslt, as per my
project requirement.
  We are getting junk character(actually part of html gets displayed as
contents of text area)displayed in
     Textarea widgets/fields when viewed in IE browser.
  This happens only when the screen rendered when the textarea is empty.

  The data being added is something like the following:
  </div></div>
  </div></div></div>..
 

  We also tried giving an initial value  
   <fd:initial-value><xsl:text>&#160;</xsl:text></fd:initial-value>

  but this does not work when we use widget.setValue("");

  Does any one have idea how to avoid junk characters in textarea
fields?

Thanks,
 Vijay. 





Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

Re: Junk(HTML) characters displayed in textarea fields

Posted by Jonas Lundberg <my...@gmail.com>.
Hi,
you get that problem with XHTML. The browsers cannot render a <textarea/>.
But maybe you use HTML4? Then it should be no problem to render a
<textarea></textarea>.

Hans

On 10/17/05, vijayaraghavan.subramaniam@wipro.com <
vijayaraghavan.subramaniam@wipro.com> wrote:
>
> Hi,
> We are using cocoon-2.1.7 + jboss-3.2.7 + windows2000 professional.
>  We are generating a Cocoon form page dynamically using xslt, as per my
> project requirement.
> We are getting junk character(actually part of html gets displayed as
> contents of text area)displayed in
>   Textarea widgets/fields when viewed in IE browser.
>  This happens only when the screen rendered when the textarea is empty.
>   The data being added is something like the following:
> * </div></div>
> </div></div></div>..
> *
>   We also tried giving an initial value
>  <fd:initial-value><xsl:text>&#160;</xsl:text></fd:initial-value>
>   but this does not work when we use widget.setValue("");
>
> Does any one have idea how to avoid junk characters in textarea fields?
>  Thanks,
> Vijay.
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any attachments
> to this message are intended
> for the exclusive use of the addressee(s) and may contain confidential or
> privileged information. If
> you are not the intended recipient, please notify the sender at Wipro or
> Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.
>
>