darshakshah1988 / gmaps4jsf

Automatically exported from code.google.com/p/gmaps4jsf
0 stars 1 forks source link

Non fully qualified id in form submission javascript for marker change #91

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
<f:view>
  <f:subview id="test">
    <h:form id="form">
      <m:map width="600px" height="500px" latitude="24" longitude="15"
jsVariable="map1" zoom="2">
        <m:marker id="marker1" latitude="30.01" longitude="31.14"
jsVariable="marker1" draggable="true" 
            submitOnValueChange="true"
valueChangeListener="#{googleMap.processValueChangeForFirstMarker}"/>
      </m:map>
    </h:form>
  </f:subview>
</f:view>

What is the expected output? What do you see instead?
The above code renders "document.getElementById('form').submit();" for form
submission on marker change.
It should render document.getElementById('test:form').submit(); since form
inherits parent id:

<form id="test:form" name="test:form" method="post" action="/test.jsf"
enctype="application/x-www-form-urlencoded">

What version of the product are you using? On what operating system?
1.1.3. 

Original issue reported on code.google.com by rom...@gmail.com on 22 Dec 2009 at 9:19

GoogleCodeExporter commented 8 years ago
Can you submit a patch for fixing this issue?

Original comment by Hazem.sa...@gmail.com on 8 Jan 2010 at 12:49

GoogleCodeExporter commented 8 years ago
I'll try to look into it in a couple of weeks.

Original comment by rom...@gmail.com on 11 Jan 2010 at 9:31

GoogleCodeExporter commented 8 years ago
Fixed in 1.1.4 preRelease2 snapshot2.

Original comment by Hazem.sa...@gmail.com on 30 Oct 2010 at 9:43

GoogleCodeExporter commented 8 years ago
The 1.1.4 preRelease2 snapshot2 jar is available here:
http://gmaps4jsf.googlecode.com/files/gmaps4jsf-1.1.4-preRelease2-snapshot2.jar

Original comment by Hazem.sa...@gmail.com on 30 Oct 2010 at 11:01