2 Replies Latest reply on Sep 5, 2007 2:17 PM by Ilya Shaikovsky

    Performance Problem

    antonio labián Newbie

      I have the following code:

      <f:view>
      <h:form>
      <a4j:region renderRegionOnly="true" >
      <h:inputText id="text" value="#{bean.text}"
      validator="#{bean.validate}" valueChangeListener="#{bean.onChange}">
      <a4j:support event="onkeyup" ajaxSingle="true"></a4j:support>
      </h:inputText>
      </a4j:region>

      </h:form>
      </f:view>

      I am measuring the content length and the time request, and when increase the number of controls in the page (For example):

      <f:view>
      <h:form>
      <a4j:region renderRegionOnly="true" >
      <h:inputText id="text" value="#{bean.text}"
      validator="#{bean.validate}" valueChangeListener="#{bean.onChange}">
      <a4j:support event="onkeyup" ajaxSingle="true"></a4j:support>
      </h:inputText>
      </a4j:region>


      <a4j:region>
      <a4j:repeat value="#{repeatData.data}" var="row">
      <h:inputText id="repeattext" value="#{row.text}"
      validator="#{bean.validate}" valueChangeListener="#{bean.onChange}">
      <a4j:support event="onkeyup" ajaxSingle="true"></a4j:support>
      </h:inputText>
      <a4j:outputPanel ajaxRendered="true">
      <h:outputText value="#{row.text}"></h:outputText>
      <h:message for="repeattext"></h:message>
      </a4j:outputPanel>
      </a4j:repeat>
      </a4j:region>
      <a4j:region>
      <a4j:repeat value="#{repeatData.data}" var="row">
      <h:inputText id="repeattext" value="#{row.text}"
      validator="#{bean.validate}" valueChangeListener="#{bean.onChange}">
      <a4j:support event="onkeyup" ajaxSingle="true"></a4j:support>
      </h:inputText>
      <a4j:outputPanel ajaxRendered="true">
      <h:outputText value="#{row.text}"></h:outputText>
      <h:message for="repeattext"></h:message>
      </a4j:outputPanel>
      </a4j:repeat>
      </a4j:region>
      <a4j:region>
      <a4j:repeat value="#{repeatData.data}" var="row">
      <h:inputText id="repeattext" value="#{row.text}"
      validator="#{bean.validate}" valueChangeListener="#{bean.onChange}">
      <a4j:support event="onkeyup" ajaxSingle="true"></a4j:support>
      </h:inputText>
      <a4j:outputPanel ajaxRendered="true">
      <h:outputText value="#{row.text}"></h:outputText>
      <h:message for="repeattext"></h:message>
      </a4j:outputPanel>
      </a4j:repeat>
      </a4j:region>

      </h:form>
      </f:view>



      Also increases the size of the request. I am using a4j regions. Which can be the problem? In a request ajax always is sent all the components of the page?

      Thanks in advance