将链接附加到 struts2 树标记
我有一个树结构数据,我想使用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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我终于明白了这一点。我修改了树和树节点标签库并向它们添加了“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.