Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with mobi:dateSpinner listener

 
karnakar achuta
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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;
}
 
Tim Holloway
Bartender
Posts: 18422
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe you need to code an "event" attribute on that ajax element. Something like this, probably:
 
karnakar achuta
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you Tim Hollyway
 
We don't have time for this. We've gotta save the moon! Or check this out:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!