4 Replies Latest reply on May 6, 2009 6:46 AM by Nick Belaevski

    White-space get trimmed after rerender

    Arief ZJ Newbie

      Hi Guys,

      We had some mysterious thing happen on our page after rerender which we could not find the reason yet. After rerender, our input text that contains at least double white-space at the beginning... will be trimmed..leaving only 1 white-space. the following is the code snippet:

       <h:form id="screenForm" prependId="false">
       <h:panelGrid id="nav" columns="3">
       <h:inputText id="txtbox" value=" Rerender me" />
       <a4j:commandButton value="Render PanelGrid" reRender="nav" />
       <a4j:commandButton value="Render TextBox" reRender="txtbox" />
       <a4j:log hotkey="D" width="300" height="400"/>

      Is this JSF bug? or RF? Have done something wrong in using those component?

      Our environment:
      Sun JSF-RI-11
      IE7, IE8

      Kindly help.