voyent
Problem with mobi:dateSpinner listener  XML
Forum Index -> ICEmobile General
Author Message
achutak

Joined: 31/Aug/2012 08:28:06
Messages: 46
Offline


Hi. am facing problem with calling of valuechangeListener of mobi:DateSpinner.in this case if am changing any date value of this datespinner it is not calling its appropriate valuechangeListener....but if am changing value for datespinner and next click on any mobi:button that time datespinner's valuechange listener is calling...please any body help me..

.xhtml:
<mobi:dateSpinner id="daterender" binding="#{mobi_backing_energydata_viewenergydata.energyFromDateAndTime}" valueChangeListener="#{mobi_backing_energydata_viewenergydata.fromDateListener}">
<f:convertDateTime type="date" pattern="dd-MM-yyyy" />
<f:ajax ></f:ajax>
</mobi:dateSpinner>


.java:

public x class{
private DateSpinner energyFromDateAndTime;

public x(){

}
public void fromDateListener(ValueChangeEvent event) {

System.out.println("========= this is from fromdatelistener==============");
}


public DateSpinner getEnergyFromDateAndTime() {
return energyFromDateAndTime;
}

public void setEnergyFromDateAndTime(DateSpinner energyFromDateAndTime) {
this.energyFromDateAndTime = energyFromDateAndTime;
}

}
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Try setting singleSubmit="true" on the mobi:dateSpinner.

.
achutak

Joined: 31/Aug/2012 08:28:06
Messages: 46
Offline


thank you breau its working
 
Forum Index -> ICEmobile General
Go to:   
Powered by JForum 2.1.7ice © JForum Team