【问题标题】:Grails rendering plugin (pdf ) does not render Checkbox inputGrails 渲染插件 (pdf) 不渲染复选框输入
【发布时间】:2013-08-01 12:46:20
【问题描述】:

我刚刚安装了 grails 渲染插件,想用它来生成 PDF 文件。我创建了简单的模板,但是这个插件不呈现检查输入元素。 当我将输入编写如下:

<input type="checkbox" name="myradio">

我有这个错误信息:

Class
org.xml.sax.SAXParseException
Message
The element type "input" must be terminated by the matching end-tag "</input>".

当我添加如下结束标签时:

<input type="checkbox" name="myradio"></input>

我在 PDF 中没有任何检查元素。 我不是说,我想在交互模式下签到,但是,我想要一个看起来像复选框的图像

【问题讨论】:

  • 不确定如何在渲染的 pdf 中添加复选框,我使用复选框图像来解决问题,在那个地方,选中复选框图像用于选中复选框,反之亦然跨度>
  • 谢谢,但是,我将拥有相同的 pb,因为 img 标签也是单例标签 ;我尝试通过 添加图像但徒劳
  • input 也是单标签

标签: grails pdf-generation rendering


【解决方案1】:

渲染插件不使用 img 标签渲染图像。您必须使用渲染插件的标签来渲染图像。

 <rendering:inlinePng bytes="${imageBytes}" class="some-class" />

还有更多。

请查看link。

Grails Rendering Plugin - Reference Documentation

【讨论】:

    猜你喜欢
    • 2017-09-17
    • 1970-01-01
    • 2017-01-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-10
    • 1970-01-01
    • 2010-11-30
    相关资源
    最近更新 更多