I'm trying to develop a mobile application with JSF2 and PrimeFaces.
I have a GeoLocationBean that hold latitude and longitude, and I want that when findMe() has been executed call the geolocationBean.setLatitude( long ) and geolocationBean.setLongitude( long ) method.
A solution that I found (but it doesn't work) is:
- the hide element has an f:ajax that when valuechanged occurs, call setLatitude.
but valuechanged occurs only if user type in the inputtext
An "onclick" handler should end with a "return true" or "return false" in order to tell the control whether it should submit the form after it has run the findMe() js function.
You should be able to retrieve the form's current latitude value by locating the DOM object whose ID is "latitude". Normally it would be "formid:latitude", but you switched off the form's prependid attribute. Longitude, of course, follows the same strategy.
An IDE is no substitute for an Intelligent Developer.