san9665956539 / struts2-map-plugin

Automatically exported from code.google.com/p/struts2-map-plugin
0 stars 0 forks source link

Cannot use struts2 jquery plugin and map-plugin toghether #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. include tag lib
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@taglib  prefix="sl" uri="/struts-lalotech-tags" %>

2. inlcude head
<sj:head />
<sl:head googleapi="true"/>

3. include tags
<sl:map width="380px" height="250px" mapTypeId="TERRAIN" 
center="20.670050,-103.349761" zoom="10" />

What is the expected output? What do you see instead?
Js error comes

TypeError: jQuery.struts2_jquery is undefined
[Break On This Error]   
jQuery.struts2_jquery.version="3.5.0";

Also page keeps loads.

What version of the product are you using? On what operating system?
Struts2 2.3.8 + struts2+jquery plugin

Original issue reported on code.google.com by ghotanka...@gmail.com on 10 Feb 2013 at 3:51

GoogleCodeExporter commented 8 years ago
Hi ghotankarua50,
The problem is that the tag tries to load the libraries that jQuery already 
imported. There is an extra header option (jqueryplugincompatibility) you have 
to use so that only jQuery libraries are loaded.

Example:
<sl:head googleapi="true" jqueryplugincompatibility="true"/>

The jQuery plugin version you should use is 3.4.0. This in order to mantain 
compatibility with full calendar js.

Original comment by lalokana on 18 Feb 2013 at 10:19