The following is not working...
I have two div's like
<div id="lat">30.0</div>
<div id="lng">1.0</div>
And then I have a JSF-Command button like
<h:commandButton value="Continue" action="#{generalHandler.read(parseFloat(document.getElementById('lat').innerHTML), parseFloat(document.getElementById('lng').innerHTML))}"/>
In the backend I have a method read like
public void read(float a, float b){
// do stuff
}
But the values from the div's are not reaching the method, if I debug and click on the continue-Button the floats passed to the method are stil 0.0