problem with ajaxSingle=true
nigiyan Nov 9, 2010 10:54 AMHi, All
My question is about a4j:ajaxSingle element - how it should work in simple/standard scenario described below.
The problem is that not only element with ajax support is submitted, but others too. Below is also output of firebug tool post resuest. In a "Practical Richfaces" book it is written, that all form is still submitted, while only the lelement with ajaxSingle=true attribute will be processed. But here: http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html_single/#AsvsjaxRequestOptimization it says opposite. So what to expect from version 3.3.3 or where am I mistaken?
The simplified form of seam generated page:
<h:form id="wb">
<h:panelGrid columns="2">
<h:outputLabel value="ID"/>
<h:inputText id="id"
disabled="true"
value="#{wbHome.instance.id}"/>
<h:outputLabel value="Fnm"/>
<h:inputText id="fnm"
value="#{wbHome.instance.fnm}"/>
<h:outputLabel value="Lnm"/>
<h:inputText id="lnm"
value="#{wbHome.instance.lnm}"/>
<h:outputLabel value="Cty"/>
<h:selectOneMenu id="cty" value="#{wbHome.instance.cty}">
<f:selectItems value="#{wbHome.ctyList}"/>
</h:selectOneMenu>
<h:outputLabel value="Adr"/>
<h:inputText id="adr"
value="#{wbHome.instance.adr}">
<a:support id="support_for_adr" event="onchange" ajaxSingle="true"/>
</h:inputText>
<h:outputLabel value="Eml"/>
<h:inputText id="eml"
value="#{wbHome.instance.eml}">
<a:support id="support_for_eml" event="onchange" ajaxSingle="true"/>
</h:inputText>
</h:panelGrid>
</h:form>
post resuest when "adr" content is changed:
AJAXREQUEST _viewRoot
ajaxSingle wb:adr
javax.faces.ViewState j_id2
wb wb
wb:adr address
wb:eml some email
wb:fnm fnm value
wb:id
wb:lnm lnm value
wb:support_for_adr wb:support_for_adr