5 Replies Latest reply on Aug 3, 2009 3:30 AM by Tim Kaufner

    Rerendering of h:inputText via ajax-request causes trimming

    Tim Kaufner Newbie

      Hi guys,
      I`m wondering why the rerendering of an inputfield causes the stripping of white spaces?!?

      I have the following scenario:

      <a4j:commandButton action="#{searchBean.assign}" image="images/button/accept.gif" ajaxSingle="true" reRender="#{property.name}"/>
      
      <h:inputText id="#{property.name}" value="#{dataBean.values[property.name]}"/>
      

      class SearchBean{
       public String assign(){
       // put value in dataBean's hashMap
       }
      }


      With the action "assign", the value is being transfered in a map (the value is here a String-Object, with white spaces like "Hello______World").
      When rerendering, the value is being show as "Hello_World" with one whitespace instead of six...
      That makes no sense?!? Anybody has an idea?


      Thx for your help