【问题标题】:icefaces menupopup strange problemicefaces menupopup 奇怪的问题
【发布时间】:2011-02-18 10:11:18
【问题描述】:

我有这段代码:

<ice:panelGroup menuPopup="menuPopup1" onclick="fireContextMenu(this, event);">
        <img src="/resources/images/external/bg-suppliers.gif"> </img>
    </ice:panelGroup>

它将这个 HTML 渲染为输出(如预期的那样):

 <div class="icePnlGrp" id="j_id62" onclick="fireContextMenu(this, event);">
      <img src="/resources/images/external/bg-suppliers.gif">
    </div>

如果我只是向 ice:panelGroup 添加一个 menuPopup 属性,例如:

<ice:panelGroup menuPopup="menuPopup1" onclick="fireContextMenu(this, event);">
        <img src="/resources/images/external/bg-suppliers.gif"> </img>
    </ice:panelGroup>

它只是关闭 img 标签之前的 div:

<div class="icePnlGrp" id="j_id62" onclick="fireContextMenu(this, event);"></div>
 <img src="/resources/images/external/bg-suppliers.gif">

真是奇怪……

你们有解决办法吗?这可能是来自 icefaces 的错误,但我在他们的网站上找不到与此相关的任何内容...

谢谢。

【问题讨论】:

    标签: html icefaces


    【解决方案1】:

    找到解决方案。

    使用不同的模板时,我在最后一页中有两个 ice:forms 和两个 body,一个表单中的 panelGroup 引用了另一个表单中的 menuPopup,这导致了上述问题。

    【讨论】:

      猜你喜欢
      • 2015-02-27
      • 2018-06-26
      • 2011-08-13
      • 2011-08-17
      • 2011-02-02
      • 2021-10-10
      • 2014-04-21
      • 2010-12-30
      • 2014-03-21
      相关资源
      最近更新 更多