What kind of link could I use?

2007-11-27 Thread yadubi

Hi,

I have a following link which creates a pop-up window and shows the content
of the referenced pdf in it
(anchors removed):
href=/generated/page_1.pdf target=_blankPage 1

However, I am unable to achieve the same result with Wicket. I use the
following code:

PopupSettings popupSettings = new PopupSettings();
popupSettings.setTarget( /generated/page_1.pdf );
   // popupSettings.setTarget( null );
Link myLink = new Link(theLink)
{
@Override public void onClick() {
  //mothing to do
}   
};
myLink.setPopupSettings( popupSettings );
add( myLink );

In the html page, I have 'href=# wicket:id=theLinkPage 1'.
When I click on the link, the code executes, but with no pop-up. However,
when the target is set to null, at least a new window opens.

Thanks for suggestions.

-- 
View this message in context: 
http://www.nabble.com/What-kind-of-link-could-I-use--tf4880340.html#a13966504
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Leaf menus stop responding after collapse and expand

2007-11-26 Thread yadubi


Eelco Hillenius wrote:
 
 On Nov 13, 2007 3:31 PM, yadubi [EMAIL PROTECTED] wrote:

 I have an application which is modeled on ajax SimpleTreePage example.
 Navigation is handled by overriding
 the onNodeLinkClicked of the LinkTree class.
 There are tree levels of nesting in the menu, the second level has
 multiple
 leaf nodes.
 Everything works as expected until I collapse and expand the second level
 menu. Thereafter,
 the highest leaf node under that node stops responding to mouse clicks,
 but
 other leaf nodes still work.
 This might be a bug.
 
 Did you check what happens in the Ajax debug panel and/ or with
 FireFox's Firebug?
 
 Eelco
 
 Sorry for the late response, but I solved my problem by setting the link
 type to REGULAR from AJAX, so maybe it's the case of improper use, but the
 confusing fact is that it worked intermittently. For example,
 expand-collapse-expand sequence made the nodes responsive again. Firebug
 reported no activity as far as I can tell; some nodes appeared dead.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Leaf-menus-stop-responding-after-collapse-and-expand-tf4801262.html#a13965800
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Leaf menus stop responding after collapse and expand

2007-11-13 Thread yadubi

I have an application which is modeled on ajax SimpleTreePage example.
Navigation is handled by overriding
the onNodeLinkClicked of the LinkTree class.
There are tree levels of nesting in the menu, the second level has multiple
leaf nodes.
Everything works as expected until I collapse and expand the second level
menu. Thereafter,
the highest leaf node under that node stops responding to mouse clicks, but
other leaf nodes still work.
This might be a bug.

-- 
View this message in context: 
http://www.nabble.com/Leaf-menus-stop-responding-after-collapse-and-expand-tf4801262.html#a13737055
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]