[richfaces-issues] [JBoss JIRA] Created: (RF-4565) Whitespaces can not be preserved in rerendered arrea

alepekhin (JIRA) jira-events at lists.jboss.org
Sat Oct 4 11:23:20 EDT 2008


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


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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list