]
Nick Belaevski reassigned RF-4565:
----------------------------------
Assignee: Nick Belaevski
Whitespaces can not be preserved in rerendered arrea
----------------------------------------------------
Key: RF-4565
URL:
https://jira.jboss.org/jira/browse/RF-4565
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Reporter: alepekhin
Assignee: Nick Belaevski
Fix For: Future
Whitespaces should be preserved in rerendered area if they are inside form fields or text
areas with style attribute "white-space:pre"
Test case:
<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
<f:view>
<h:outputText value="Five spaces between stars:* *"
id="output" style="white-space:pre"/>
<h:form>
<h:inputText value="Five spaces between stars:* *"
id="input"/>
<h:commandButton action="#" value="Submit"/>
<a4j:commandLink action="#" reRender="input, output">
<h:outputText value="rerender"/>
</a4j:commandLink>
</h:form>
</f:view>
Aftre pressing "rerender" link five spaces are trimmed to one in both text
fields.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: