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:

      <f:view>
       <h:form id="screenForm" prependId="false">
       <rich:panel>
       <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" />
       </h:panelGrid>
       </rich:panel>
       <a4j:log hotkey="D" width="300" height="400"/>
       </h:form>
      </f:view>
      


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

      Our environment:
      JBoss-4.3.0
      RF-3.3.0
      Sun JSF-RI-11
      IE7, IE8

      Kindly help.
      Thanks