Application is to display device distance to GPS coordinate on screen of mobile device browser.
HTML5 allows to get the coordinates from mobile but these need to be sent to server at periodic intervals, distance to target calculated and result displayed on webpage?
How to force JSF and OpenFaces page to periodically post h:inputHidden values and render h:outputText with ajax? Primefaces has p:poll component for this.
<h:form id="coords">
<h:inputHidden id="latitude" value="setByJavascript"></h:inputHidden>
<h:inputHidden id="longitude" value="setByJavascript"></h:inputHidden>
</h:form>
<h:outputText id="distance" value="#{bean.distance}"></h:outputText>