简体   繁体   English

使用Tree Apache Wicket将屏幕更改为子目录

[英]Change screen to sub-directory using Tree Apache Wicket

I would like to use Tree Apache Wicket to implement the following opeation: 我想使用Tree Apache Wicket来实现以下操作:

  • Top folders will be showed on the main screen(etc..Folder A, Forder B..and so on). 顶部的文件夹将显示在主屏幕上(例如,文件夹A,文件夹B ..等)。
  • Once the user has clicked on a folder, instead of expanding the subdirectories, he will be taken to another screen which have the previously clicked folder as the main directory. 一旦用户单击文件夹,而不是展开子目录,他将被带到另一个屏幕,该屏幕将先前单击的文件夹作为主目录。
  • The user only can only use a link to return back to the previous level of directory. 用户只能使用链接返回到上一级目录。

How can I make it possible to re-populate the tree wicket every time the screen changes? 每次屏幕变化时,如何才能重新填充树形门?

You need to override the Tree junction link behavior. 您需要覆盖树结链接行为。 On click you have to use something like setResponsePage(theNewPageThatKnowsItsRootNode) or setResponsePage(ThePage.class, pageParametersThatBringTheNewRootNodeName). 点击时,您必须使用类似setResponsePage(theNewPageThatKnowsItsRootNode)或setResponsePage(ThePage.class,pageParametersThatBringTheNewRootNodeName)之类的东西。

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

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