12 Replies Latest reply on May 2, 2007 1:44 PM by sergeysmirnov

    is ajaxSingle really working in s:support ?

    henrik.lindberg

      Hi, I have the following simple form (for testing purposes)

       <h:form id="optionsForm">
       <h:selectBooleanCheckbox id="comp" value="#{searchOptions.searchComponents}" >
       <a4j:support event="onchange" ajaxsingle="true" limitToList="true"
       />
       </h:selectBooleanCheckbox>
       <h:selectBooleanCheckbox id="cspec" value="#{searchOptions.searchComponentSpecs}" >
       <a4j:support event="onchange" ajaxSingle="true"/>
       </h:selectBooleanCheckbox>
       <h:selectBooleanCheckbox value="#{searchOptions.searchComponentQueries}" >
       <a4j:support event="onchange" ajaxSingle="true" />
       </h:selectBooleanCheckbox>
       <h:selectBooleanCheckbox value="#{searchOptions.searchBillOfMaterials}" >
       <a4j:support event="onchange" ajaxSingle="true" />
       </h:selectBooleanCheckbox>
       </h:form>
      

      From what I can see, there is no difference between setting ajaxSingle to true or false - all 4 inputs are submitted every time. After reading the documentation I thought that ajaxSingle only submitted a single value - did I understand that wrong?

      I am using the latest snapshot (May 1, 2007) of ajax4jsf, and seam 1.2.1GA