Re: How to append an # anchor to an href?
That is definitely on the right track - overriding appendAnchor does successfully add the #myAnchor suffix to the Link URL. However, I am realizing that clicking on the link is doing an immediate redirect to another page. Here is the URL from page1, with the #ScreenCapture link successfully added: http://localhost:8080/ScriptMaster/sm? wicket:interface=wicket-1:1:up::ILinkListener#ScreenCapture Clicking on it takes me to that URL, but does an immediate redirect to this URL: http://localhost:8080/ScriptMaster/sm?wicket:interface=wicket-1:2:: This discards the named anchor. Is this normal behavior? What can I do about this? --Jesse Barnum, President, 360Works http://www.360works.com (770) 234-9293 On Aug 2, 2007, at 12:20 AM, Eelco Hillenius wrote: You can override Link#appendAnchor. Also, note that href=#myAnchor automatically gets picked up and appended to the URL. Eelco - 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]
Re: Page expiration
shumbola wrote: Jonathan Locke wrote: what version of wicket are you using? shumbola wrote: I've in My application class this: getApplicationSettings().setPageExpiredErrorPage(MyPageExpired.class); In my application I've got a menu - a few links to other pages. If i click links everything works ok, but if click a link or two, and go back with browser's back button two times and go forth once it shows me my PageExpired page. Is it due to my application mixes BookmarkablePages and normal pages or what could be the problem of this behavior? I'm using wicket snapshot from July 30. shumbola Of course, it is wicket-1.3 snapshot ;) -- View this message in context: http://www.nabble.com/Page-expiration-tf4191798.html#a11959367 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: MarkupNotFound Exception
Eelco Hillenius wrote: SSLSignIn class extends WebPage and has no associated markup. It just checks if SSL attributes are present in request and redirects to appropriate page by using setResponsePage. The strange thing is that usually there is no such an exception. It pops up sometimes.. What could be the reason for this? That does sound strange. First step to know what is going on is to make it reproducable. Just to get out of the problem, you could just add some markup file to it. Or... why use a page in the first place? Why not let a custom request cycle, component instantation listener or for instance servlet filter do this? Eelco Thanks for reply, Elco. I first encountered this on Websphere server. I'm using wicket-snapshot 1.3 from July 30, and the only way it can work (at least for me) under Websphere I'm using wicket servlet instead of wicket filter. That could be a problem. -- View this message in context: http://www.nabble.com/MarkupNotFound-Exception-tf4198130.html#a11959330 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DownloadLink for an external URL
I see that DownloadLink can be used to stream a File. What I want to do is use DownLoadLink to redirect to an external URL that should be streamed (i.e. File Save box should pop up). I can't use ExternalLink as the external URL's location is not pre determined, also the external URL's location lookup is a costly so I don't want to do it unless the User clicks on a link. So in my case I do some thing like class DownloadUrlLink { onClick() { URL externalUrl = getExternalURL(); //this is a costly operation, so I don't want to do it unless user clicks the Download link. getRequestCycle().setRequestTarget(new RedirectRequestTarget(url.toString())); } } The URL points to a rather large gzipped XML file about 11MB in size. But instead of popping up a File Save dialog, the browser starts to display the XML file. and CPU usage jumps up to 100%, on account of the file being this large. Is there a way to force the browser to pop up a FileSave dialog when using RedirectRequestTarget - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DownloadLink for an external URL
whatever streams that external file has to set a content-disposition:attachment header so the browser pops up that box. -igor On 8/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I see that DownloadLink can be used to stream a File. What I want to do is use DownLoadLink to redirect to an external URL that should be streamed (i.e. File Save box should pop up). I can't use ExternalLink as the external URL's location is not pre determined, also the external URL's location lookup is a costly so I don't want to do it unless the User clicks on a link. So in my case I do some thing like class DownloadUrlLink { onClick() { URL externalUrl = getExternalURL(); //this is a costly operation, so I don't want to do it unless user clicks the Download link. getRequestCycle().setRequestTarget(new RedirectRequestTarget(url.toString ())); } } The URL points to a rather large gzipped XML file about 11MB in size. But instead of popping up a File Save dialog, the browser starts to display the XML file. and CPU usage jumps up to 100%, on account of the file being this large. Is there a way to force the browser to pop up a FileSave dialog when using RedirectRequestTarget - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ResourceReference and Wicketstuff Dojo Documentation-related questions
I just discovered the jdocs for Wicket http://www.jdocs.com/tab/91/overview-summary.html Are there any other good, comprehensive references I should know about? And is there a better forum for than this list for Wicketstuff-Dojo related questions? Specifically, I'm wondering about how to attach specific behaviors to DojoMenuItem ; it might be following established paradigms I'm not familiar enough with yet. When I google on DojoMenuItem nothing documentation-y comes up. So I guess as much as anything, I'm looking to make sure I have the best possible reference resources to all this stuff, understanding that a lot of stuff seems to be very lightly documented... Also: with ResourceReference, as showin in the Wicketstuff-Dojo Contextual menu example, does the underlying image file live in the same directory as the .java and .html or somewhere else? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ListMultipleChoice and keypress
Hi! How to receive a javascript keypress event from a ListMultipleChoice? Basically I'd need to have a callback (on certain keys like enter, and arrow keys) with the currently selected items. I've tried AjaxFormComponentUpdatingBehavior, I've got two problems with it: - How to have this callback only on certain keys, not any key? - When the arrow keys are used, the callback is called *before* the actual moving of the selection is done in the browser, so I cannot detect the newly selected item. (this is a JavaScript limitation afaik, but maybe this can be worked around by sending the currently selected item+the code of the pressed key) Any ideas? Best regards, Istvan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]