weixin_33704234 2016-01-29 15:17 采纳率: 0%
浏览 34

Grails formRemote标记错误

I have been using grails for several weeks now, and have run into this problem when using the g:formRemote tag.

org.grails.taglib.GrailsTagException: [views/inventoryDetails/details.gsp:21] [views/inventoryDetails/details.gsp:21] Tag [formRemote] does not exist. No tag library found for namespace: g

for reference here is the .gsp page

<html>
<head>
<meta name="layout" content="bccmain" />
<title>Details - BCC Virtual Map and Inventory Tracker</title>
<g:javascript library="jquery" />
<link rel="stylesheet" href="${resource(dir: 'css', file: 'details.css')}" type="text/css">
<script>
  $(document).ready(function () {
      $("#database").addClass("active");
  });
</script>
</head>
<body>
<div id ="content">
  <g:formRemote name = "detailsUpdateForm" url = "[controller: 'InventoryDetails',action: 'ajaxUpdate']" update="updateBox">
    <g:each in ="${details}" var = "d" status = "i">
      <g:textField name="details" value = "${d.details}" class = "detailsblock"/>
      <g:hiddenField name ="id" value = "${d.id}" />
      <g:submitButton name = "submit" value = "Save" />
    </g:each>
  </g:formRemote>

  <div id = "updateBox"></div>
</div>
</body>
</html>

I can't for the life of me figure out why the g:formRemote tag causes a problem, but other tags (run on different pages -- this one won't render) such as g:each will run without a problem. Thanks.

  • 写回答

1条回答 默认 最新

  • weixin_33720078 2016-01-29 15:47
    关注

    Most likely you are working on a Grails version that does not support "g:formRemote" any more. The formRemote tag and other Ajax related tags have been deprecated. You might want to think about a different approach.

    评论

报告相同问题?

悬赏问题

  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决