Hello,
I have a strange problem which I cannot explain by my self. I'am using FlowScript to show a form containing a simple textarea via JXTemplate. The textarea can be filled out and after submit the content of the textarea will be displayed on a other html page as preview. Before displaying the html page I'am replacing all line breaks by <br/> using a XSLT. The problem is, after I had replaced the linebreaks with <br/> and redisplaying the content in the textarea, the <br/> exists in the textarea, too! Why? I'am using JavaFlow.
Short example:
My JavaFlow:
...
String textContent;
while(true) { ...
Map map = new HashMap();
map.put("content", textContent);
this.sendPageAndWait("form.jxt", map); textContent = this.getRequest().getParameter("content"); if(preview)
this.sendPageAndWait("preview.jxt", map);
...
}On the next this.sendPageAndWait("form.jxt", map) (next iteration of while), the content in the textarea (the variable textContent) will contain the included <br/>. But I have replaced the linebreaks with <br/> using a XSLT in the pipeline not in the flowscript !!! The pipeline looks like:
<map:match pattern="peview.jxt"> <map:generate type="jxt" src="preview.jxt"/> // Here newline will be replaced by <br/> <map:transform type="xslt" src="nl2br.xsl"/> <map:generate type="html"/> </map:match>
Bevore using the preview pipline the textarea contains the following text:
A B C
After preview and replacment via XSLT (!) the textarea contains this text: A <br/> B <br/> C
I dont't understand. Does XSLT modfiy the variable textContent? What can I do?
Thank you.
Regards Stephan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
