Hi,
so you want the new page to be opened in a new browser window?
Then you have to override #newNodeLink() and add a "target" attribute to
the <a> tag (e.g. via an AttributeModifier).
Regards
Sven
On 09/06/2013 09:59 AM, Piratenvisier wrote:
This is an application in my 1.5 wicket production application
Version 6.9 is with a lot of annotations using appfuse is still in
evaluation mode
final Tree tree = new Tree("tree", treeModel)
{
@Override
protected String renderNode(TreeNode node)
{
DefaultMutableTreeNode treeNode =
(DefaultMutableTreeNode)node;
Object userObject = treeNode.getUserObject();
if (userObject instanceof Something) return
((Something)userObject).getSomething();
}
@Override
protected void onNodeLinkClicked(AjaxRequestTarget
target, TreeNode node) {
if (((DefaultMutableTreeNode)
node).getUserObject() instanceof Something) {
PageParameters pars=new PageParameters();
pars.add("context", "blind");
pars.add("objid",((Something)((DefaultMutableTreeNode)
node).getUserObject()).getSomething().getId());
// This should popup in a new window
setResponsePage(Some.class,pars);
}
};
Am 05.09.2013 14:09, schrieb Martin Grigorov:
By giving us more details what you need :-)
On Thu, Sep 5, 2013 at 3:02 PM, Piratenvisier
<[email protected]>wrote:
How can I make a tree node popup on click ?
------------------------------**------------------------------**---------
To unsubscribe, e-mail:
users-unsubscribe@wicket.**apache.org<[email protected]>
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]