我尝试检索分离函数的两个属性,并在函数结束之前调试这三个值,它们有一个值,但返回值是未定义的,我不知道为什么!!.js文件 alert ("the function");
//we supposedthe handlers of the expections
navigator.geolocation.watchPosition(function(position) {
当我运行我的应用程序时,js函数调用bean方法并返回值,但是当我单击按钮时,它再也不会调用了。我的意思是,它只在应用程序启动时调用bean方法。public class MyBackingBean implements Serializable {
/*getting some values from database and adding it to javascript variables.