简体   繁体   English

带有Struts2的JSP页面中无法使用的JSTree生成链接

[英]JSTree Generating Links that are not usable in JSP page w/ Struts2

I have a tree generated with JSTree in my JSP page (part of a Struts2 webapp) as follows: 我的JSP页面(Struts2 webapp的一部分)中有一个用JSTree生成的树,如下所示:

<div class="panel">
<div id="demo1" class="demo">
<ul>
  <li id="node"><a href="#"><s:property value="product"/></a>
  <ul>

  <li id="node">
    <a href="#">Dependents</a>
    <ul>
      <s:iterator value="dependentsList" id="dependent">
      <li id="node">
          <a href="#">
          <s:property value="productName"/></a>
          <ul>
            <li> 
                <a href="#">
                Version Number: <s:property value="version" />
                </a>
            </li>
            <s:if test="documentationLink != ''">
            <li> 
                    <a href="<s:property value="documentationLink" />">
                    Link to Product Documentation 
                    </a>
            </li>
            </s:if>
        </ul>
      </li>
      </s:iterator>
    </ul>
  </li>
  </ul>
  </li>
</ul>
</div>
<script type="text/javascript" >
$(function () {
    $("#demo1").jstree(
    { 
        "core" :
        {
            "initially_open" : [ "#node" ]
        },
        "themes" :
        {
            "theme" : "default",
            "icons" : false
        },
        "plugins" : [ "themes", "html_data", "ui"]

    });
});
</script>

Thing is the links to product documentation show up on my browser (I tried using both Firefox and Internet Explorer) on the bottom status bar, but when I click on them, nothing pops up (I checked my HTML source code, and the anchor tags are showing the correct URL links). 问题是在底部状态栏上的浏览器中(我尝试同时使用Firefox和Internet Explorer)显示了产品文档的链接,但是当我单击它们时,什么都没有弹出(我检查了HTML源代码和锚标记)显示正确的网址链接)。 Could anyone figure out why my links aren't working? 谁能弄清楚为什么我的链接不起作用? I am using both the latest versions of JQuery and JSTree. 我正在使用最新版本的JQuery和JSTree。 Thanks! 谢谢!

删除UI插件后,我的链接可以使用,我想UI插件不喜欢使用HTML链接...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM