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 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog