How to avoid full form submittion on each ajax request?
nigiyan Dec 1, 2010 2:35 AMHi All,
We're using richfaces 3.3.3 with Seam 2.2.0 in our web app. Mainly the forms in xhtml files are quite big and almost all elements have ajax support on "onchange" event. With firebug tool we noticed that each time almost all element of form are submitted when any ajax request is performed. Embedding one form to another does not help. Can you suggest a way to minimize submitted data?
In list below you can see submitted data when ajax request is triggered from field with id 'ctySupp'.
Imagine that this is quite small "document"
AJAX:EVENTS_COUNT | 1 |
AJAXREQUEST | _viewRoot |
ajaxSingle | ttGenForm:s_ctySupp:ctySupp |
javax.faces.ViewState | j_id16 |
ttGenForm | ttGenForm |
ttGenForm:ctnTable:0:s_cargoType:cargoType | Dry bulk pressurized |
ttGenForm:ctnTable:0:s_number:number | 123 |
ttGenForm:ctnTable:0:s_sealNumber:sealNumber | 1 |
ttGenForm:ctnTable:0:s_size:size | NOT STATED |
ttGenForm:ctnTable:1:s_cargoType:cargoType | General purpose with opening(s) |
ttGenForm:ctnTable:1:s_number:number | 567 |
ttGenForm:ctnTable:1:s_sealNumber:sealNumber | 1 |
ttGenForm:ctnTable:1:s_size:size | 20' |
ttGenForm:docTable:0:s_name:name | 1 |
ttGenForm:docTable:0:s_type:type | FI |
ttGenForm:docTable:1:s_name:name | 1 |
ttGenForm:docTable:1:s_type:type | Transport Document |
ttGenForm:expCtyNam | ARMENIA |
ttGenForm:fcvrDat | |
ttGenForm:fcvrNum | |
ttGenForm:impCtyNam | GHANA |
ttGenForm:impPrp | |
ttGenForm:invPanel | |
ttGenForm:logField | |
ttGenForm:pdsTable:0:fDutiableVal | |
ttGenForm:pdsTable:0:fhscod | |
ttGenForm:pdsTable:0:finvCur | AFA |
ttGenForm:pdsTable:0:fpdDpd | 1 |
ttGenForm:pdsTable:0:fprice | |
ttGenForm:pdsTable:0:fqty | |
ttGenForm:pdsTable:0:funit | |
ttGenForm:pdsTable:0:funitPrice | |
ttGenForm:pdsTable:0:s_DHscod:DHscod | 1401200000 |
ttGenForm:pdsTable:0:s_DHscod:j_id1240_selection | |
ttGenForm:pdsTable:0:s_Dprice:Dprice | 1.00 |
ttGenForm:pdsTable:0:s_dDutiableVal:dDutiableVal | 1.00 |
ttGenForm:pdsTable:0:s_dinvCur:dinvCur | AFA |
ttGenForm:pdsTable:0:s_dqty:dqty | 1.00 |
ttGenForm:pdsTable:0:s_dunit:dunit | 2U |
ttGenForm:pdsTable:0:s_dunitPrice:dunitPrice | 1.00 |
ttGenForm:pdsTable:0:s_pdDpd:pdDpd | 1 |
ttGenForm:pdsTable:1:fDutiableVal | 0.00 |
ttGenForm:pdsTable:1:fhscod | |
ttGenForm:pdsTable:1:finvCur | AFA |
ttGenForm:pdsTable:1:fpdDpd | 1 |
ttGenForm:pdsTable:1:fprice | |
ttGenForm:pdsTable:1:fqty | |
ttGenForm:pdsTable:1:funit | |
ttGenForm:pdsTable:1:funitPrice | |
ttGenForm:pdsTable:1:s_DHscod:DHscod | 6601910000 |
ttGenForm:pdsTable:1:s_DHscod:j_id1240_selection | |
ttGenForm:pdsTable:1:s_Dprice:Dprice | 1.00 |
ttGenForm:pdsTable:1:s_dDutiableVal:dDutiableVal | 1.00 |
ttGenForm:pdsTable:1:s_dinvCur:dinvCur | AFA |
ttGenForm:pdsTable:1:s_dqty:dqty | 1.00 |
ttGenForm:pdsTable:1:s_dunit:dunit | Bt |
ttGenForm:pdsTable:1:s_dunitPrice:dunitPrice | 1.00 |
ttGenForm:pdsTable:1:s_pdDpd:pdDpd | 1 |
ttGenForm:remarks | |
ttGenForm:s_DAssist:DAssist | |
ttGenForm:s_DBrokerage:DBrokerage | |
ttGenForm:s_DCommission:DCommission | |
ttGenForm:s_DContainer:DContainer | |
ttGenForm:s_DFreight:DFreight | |
ttGenForm:s_DFreightNotInv:DFreightNotInv | |
ttGenForm:s_DHdlNotInv:DHdlNotInv | |
ttGenForm:s_DInsurance:DInsurance | |
ttGenForm:s_DIntDuttax:DIntDuttax | |
ttGenForm:s_DIntFreight:DIntFreight | |
ttGenForm:s_DInterest:DInterest | |
ttGenForm:s_DInvTotVal:DInvTotVal | 2.00 |
ttGenForm:s_DItmTotVal:DItmTotVal | 2.00 |
ttGenForm:s_DLuhNotInv:DLuhNotInv | |
ttGenForm:s_DOther:DOther | |
ttGenForm:s_DOtherDut:DOtherDut | |
ttGenForm:s_DPeCharges:DPeCharges | |
ttGenForm:s_DProceed:DProceed | |
ttGenForm:s_DRoyLic:DRoyLic | |
ttGenForm:s_DTotDutVal:DTotDutVal | 2.00 |
ttGenForm:s_FAssist:FAssist | |
ttGenForm:s_FBrokerage:FBrokerage | |
ttGenForm:s_FCommission:FCommission | |
ttGenForm:s_FContainer:FContainer | |
ttGenForm:s_FFreightNotInv:FFreightNotInv | |
ttGenForm:s_FHdlNotInv:FHdlNotInv | |
ttGenForm:s_FIntDuttax:FIntDuttax | |
ttGenForm:s_FIntFreight:FIntFreight | |
ttGenForm:s_FInterest:FInterest | |
ttGenForm:s_FInvTotVal:FInvTotVal | 0.00 |
ttGenForm:s_FItmTotVal:FItmTotVal | 0.00 |
ttGenForm:s_FLuhNotInv:FLuhNotInv | |
ttGenForm:s_FOther:FOther | |
ttGenForm:s_FOtherDut:FOtherDut | |
ttGenForm:s_FPeCharges:FPeCharges | |
ttGenForm:s_FProceed:FProceed | |
ttGenForm:s_FRoyLic:FRoyLic | |
ttGenForm:s_FTotDutVal:FTotDutVal | 0.00 |
ttGenForm:s_appAdr:appAdr | BOX 578ACCRA |
ttGenForm:s_appCity:appCity | |
ttGenForm:s_appContactPerson:appContactPerson | |
ttGenForm:s_appEmail:appEmail | |
ttGenForm:s_appNam:appNam | ASANTE KONADU VIDA |
ttGenForm:s_appTel:appTel | |
ttGenForm:s_appTin:appTin | 3170024956 |
ttGenForm:s_blDate:blDateInputCurrentDate | 11/2010 |
ttGenForm:s_blDate:blDateInputDate | 17/11/2010 |
ttGenForm:s_blNum:blNum | 1 |
ttGenForm:s_ctySupp:ctySupp | CH |
ttGenForm:s_ctySupp:j_id794 | ttGenForm:s_ctySupp:j_id794 |
ttGenForm:s_dInvNum:dInvNum | 1 |
ttGenForm:s_dischargePort:dischargePort | THKRA |
ttGenForm:s_expAdr:expAdr | addr |
ttGenForm:s_expCity:expCity | q |
ttGenForm:s_expCty:expCty | AM |
ttGenForm:s_expNam:expNam | name |
ttGenForm:s_expTin:expTin | |
ttGenForm:s_expTradeLevel:expTradeLevel | 123 |
ttGenForm:s_fFreight:fFreight | |
ttGenForm:s_fInsurance:fInsurance | |
ttGenForm:s_fclNum:fclNum | 1 |
ttGenForm:s_grsWgt:grsWgt | 1.00 |
ttGenForm:s_idfDat:idfDatInputCurrentDate | 11/2010 |
ttGenForm:s_idfDat:idfDatInputDate | 16/11/2010 |
ttGenForm:s_idfNum:idfNum | 1 |
ttGenForm:s_impAdr:impAdr | BOX 578ACCRA |
ttGenForm:s_impCity:impCity | |
ttGenForm:s_impCty:impCty | GH |
ttGenForm:s_impNam:impNam | ASANTE KONADU VIDA |
ttGenForm:s_impTin:impTin | 3170024956 |
ttGenForm:s_impTradeLevel:impTradeLevel | |
ttGenForm:s_incoterm:incoterm | CFR |
ttGenForm:s_invCur:invCur | AFA |
ttGenForm:s_invCurRat:invCurRat | |
ttGenForm:s_invDat:invDatInputCurrentDate | 12/2010 |
ttGenForm:s_invDat:invDatInputDate | 08/12/2010 |
ttGenForm:s_lclNum:lclNum | 1 |
ttGenForm:s_loadPort:loadPort | THKRA |
ttGenForm:s_marks:marks | the marks |
ttGenForm:s_modeOfPayment:modeOfPayment | 6 |
ttGenForm:s_netWgt:netWgt | 1.00 |
ttGenForm:s_pdsNbr:pdsNbr | 2 |
ttGenForm:s_shipMod:shipMod | 1 |
ttGenForm:s_totPck:totPck | 1 |
ttGenForm:s_totalInvoice:totalInvoice | 1.00 |
ttGenForm:s_transshipPort:transshipPort | THKYO |
ttGenForm:s_ucrNum:ucrNum | 1 |
ttGenForm:s_vessel:vessel | 1 |
ttGenForm:s_voyageNum:voyageNum | 1 |
ttGenForm:statusLabel | Generated |
ttGenForm:tabPanel | gen |