将链接附加到 struts2 树标记

发布于 2024-09-10 07:19:00 字数 162 浏览 1 评论 0原文

我有一个树结构数据,我想使用struts2的动态加载。加载完全没问题。问题是它只是为了显示,我无法找出一种方法来使每个项目成为链接或附加链接或其他任何内容。因此无法轻松地在树深处添加新节点。有谁知道如何将链接附加到树节点?

提前致谢。

I have a tree structure data that I want to load dynamically using <s:tree> of struts2. It loads completely ok. the problem is it's just for displaying, I can't figure out a way to make each item a link or append a link to it or anything. So there is no way to add new node somewhere deep in tree easily. Does anyone have any idea how to append link to treenodes?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你在我安 2024-09-17 07:19:00

我终于明白了这一点。我修改了树和树节点标签库并向它们添加了“treeOnClick”属性。所以现在我可以为树的静态定义指定此属性,并为动态树定义添加“nodeLinkProperty”。如果有人需要我可以上传代码。

I finally figured this out. I modified tree and treenode tag library and added "treeOnClick" attribute to them. So now I can specify this attribute for static definition of tree and I added "nodeLinkProperty" for dynamic tree definition. If someone needs it I can upload codes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文