darshakshah1988 / gmaps4jsf

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

Map does not display in Firefox 3+ #78

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Created a jsp containg the following code:

    <%@ taglib uri="http://code.google.com/p/gmaps4jsf/" prefix="m" %>
    <script src="http://maps.google.com/maps?file=api&v=2&key=xxxx"
type="text/javascript"></script>

    ...

    <m:map width="100%" height="300px"
        type="G_NORMAL_MAP" zoom="3"
        addStreetOverlay="false"
        autoReshape="true"
        binding="#{googleBean.map}">

        <m:mapControl name="GLargeMapControl"/>
    </m:map>

2. Using the latest gmaps4jsp-core-1.1.2.jar and running on Websphere 6.1
(or Tomcat5)  

What is the expected output? What do you see instead?
The map renders fine in IE and older Firefox, but not in Firefox 3+, the
problem seems to be the html code produced by the map tag. If I look at the
resulting html on the client (see attachment), I see that the input tags
are closed using "/>" instead of "</input>". The firefox highlights the
closing tag and nothing is rendered after that. I know that starting
Firefox 3, you may not close the <script> tags using shorthand and I assume
the same is true for any tag.

What version of the product are you using? On what operating system?
gmaps4jsf 1.1.2, Firefox 3.5.3, Windows Xp pro 

Please provide any additional information below.

Original issue reported on code.google.com by vkache...@gmail.com on 20 Oct 2009 at 1:03

Attachments:

GoogleCodeExporter commented 8 years ago
Also having the same problem in IE 8. Have to add the following code after 
my '<m:map>' to get it to display;

<rich:gmap gmapKey="ABQIAAAAgiNNSEpcz5q7mruleySC6RRc6qmiA-g9mt16aVfJwib-
tiHt_hTRSSSqgVoLBj20zGqtn5m8J6ZtYw" />

Okay whilst developing but can't deploy in live with the extra map!

Deployed on JBoss 4.2.3.GA using Seam 2.2.0.GA with XHTML and latest 
gmaps4jsp-core-
1.1.2.jar.

Original comment by roger....@notify.co.uk on 28 Oct 2009 at 9:51

GoogleCodeExporter commented 8 years ago
Are you sure, you set the following meta-tag in your IE8:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />    

All of these examples run on IE 8 and Firefox 3.5.3 as well:
http://mashups.s43.eatj.com/gmaps4jsf-examples/

please check them, and if you still have a problem, please send us your war 
file (not
the production war, just a war with a small sample that shows the defect) and 
will
dig at it deeply.

Original comment by Hazem.sa...@gmail.com on 30 Oct 2009 at 4:48