Certain tags with embedded Groovy code show up as warnings in GSP Pages

In my GSP pages, code within ${} shows up as a warning (depending on setting). Here is an example.

<a href="${createLink(controller:'search', params:[id: place.entityId, allCuisines: place.primaryCuisine?.valueKey])}">

Is this on the list to address. Its more annoying than anything.

-Reggie

0

Does it say anything about file references? Then it will be fixed in 8.1.x

0
Avatar
Permanently deleted user

Yes Peter. It says that it cannot find the file. Is this in the latest Diana release?

-Reggie

0

Yes, it should be in 9742

0
Avatar
Permanently deleted user

Thanks Peter. That works great. Now for the next step. The below code fragment lives in a GSP page. Note that it has embedded groovy code in the ${} which shows up with a red squiggly either under or just in front of the $ sign saying "expression expected":


<script type="text/javascript">
if( GBrowserIsCompatible() ) {
var map = new GMap2(document.getElementById("miniMap"));
        map.setCenter(new GLatLng(${place.latLng.lat}, ${place.latLng.lng}), 13);
       
        var point = new GLatLng(${place.latLng.lat}, ${place.latLng.lng});
        map.addOverlay(new GMarker(point));
}
</script>



Thanks again for the help.

-Reggie


0

This issue is known as well, but not yet fixed. There are several
issues, one of them yours (http://www.jetbrains.net/jira/browse/IDEA-21739).

0

请先登录再写评论。