java - selectBooleanCheckbox in icefaces -
<ice:column style="width: 30px;"> <f:facet name="header"> <ice:selectbooleancheckbox value="#{createtoolsorderinwardsbean.test}" partialsubmit="true" valuechangelistener="#{createtoolsorderinwardsbean.selectinwardquantitychk}" id="slc-tlmanage-selectallee"></ice:selectbooleancheckbox> </f:facet> <ice:selectbooleancheckbox value="#{currentrow.chkinwardquantity}" immediate="true" partialsubmit="true" style="margin-left: 10px;" id="slc-tlmanage-enableinput"></ice:selectbooleancheckbox> </ice:column> i have code whtin ocefaces datatable.when select first 1 other checkbox whin column of datatable selected.
below described valuchage method
public void selectinwardquantitychk(valuechangeevent evt){ if(evt != null){ boolean value =(boolean)evt.getnewvalue(); if(test) for(int i=0;i<this.toolsordervo.gettoolsorderitemvolist().size();i++){ this.toolsordervo.gettoolsorderitemvolist().get(i).setchkinwardquantity(value); system.out.println("int loop changing value ============>"+this.toolsordervo.gettoolsorderitemvolist().get(i).getchkinwardquantity()); } } } method called , checkbox value can't change.
there considerable typos in question, understanding of problem patchy. if understand problem correctly, can solved easily.
add line event handler.(at start of method)
if (!evt.getphaseid().equals(phaseid.invoke_application)) { evt.setphaseid(phaseid.invoke_application); evt.queue(); return; }
Comments
Post a Comment