Re: Initiating File Download through Ajax is not working

2010-12-04 Thread Sven Meier
Looks fine to me. Does you filename have an extension (e.g. .txt)? Sven On Fri, 2010-12-03 at 13:42 -0800, val360 wrote: final AJAXDownload download = new AJAXDownload() { @Override protected IResourceStream getResourceStream() { return new

Re: Logout (Session destroy) on the last (stateful) page?

2010-12-04 Thread robert.mcguinness
maybe i misunderstood, but wouldn't removing the page from the page map be sufficient? we do this for our confirmation pages that show sensitive data (like temporary passwords). -- View this message in context:

Re: Logout (Session destroy) on the last (stateful) page?

2010-12-04 Thread Randy S.
If that bookmarkable uri is a stateless page, will that prevent a new session from being established? (Assuming the default session store is in use) On Dec 3, 2010 10:14 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: it is a good idea to always redirect to a bookmarkable url after invalidating

Re: mount QueryStringUrlCodingStrategy issue when coming via Apache

2010-12-04 Thread Arjun Dhar
The issue seemed to be only on my Host Providers Servers. On my local APache - tomcat setup I did not get this issue. However, because its the Hosting that counts and I do not have much access into their environment, i changed the URL structure from site/admin/login to site/admin.login and that

Re: Remove Child in IVisitor causes problems

2010-12-04 Thread jbrookover
My first JIRA issue for Wicket! https://issues.apache.org/jira/browse/WICKET-3229 Thanks, Jake -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Remove-Child-in-IVisitor-causes-problems-tp3071290p3072421.html Sent from the Users forum mailing list archive at

Re: Ajax and ModalWindow Strange behaviour

2010-12-04 Thread Einar Bjerve
Could it be that the modalwindow detaches your models when it closes? Den 3. des. 2010 kl. 15.22 skrev Poko Booth: Hmmm.. Turns out it's not the modal window the one causing the problem. The modal was activated by an ajaxsubmitlink and the page form had required components thus errors took

Multithreaded construction of pages

2010-12-04 Thread NielsBo
Hi I would like to share my experience with implementing multithreading in my Wicket application. The problem was pages containing many independent panels each fething data from external services, and the result being slow pages because each panel is processed one at a time in Wicket. The

Re: Initiating File Download through Ajax is not working

2010-12-04 Thread val360
Yes it does, it's .fp7 Which is not an extension web server would recognize, could that be the issue? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Initiating-File-Download-through-Ajax-is-not-working-tp2289784p3072514.html Sent from the Users forum mailing list

Re: Initiating File Download through Ajax is not working

2010-12-04 Thread Sven Meier
Wicket sets the content type for you *if* - it is provided by the resource stream - can be looked up via servlet context from web.xml - can be derived from URLConnection. See Response#detectContentType(). Please try out the first option, i.e. override FileResourceStream#getContentType(). Sven

Re: mounting SharedResource with known parameters, i.e. MixedParamUrlCodingStrategy

2010-12-04 Thread Doug Leeper
Never mind...IndexedSharedResourceCodingStrategy is what I needed. Missed that in my initial search. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/mounting-SharedResource-with-known-parameters-i-e-MixedParamUrlCodingStrategy-tp3071302p3072687.html Sent from the

Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Peter Karich
Hi, do you know of any examples for wicket which uses twitter's oAuth? In my app I can easily login and use the twitter api, but I'm kind of stuck how to avoid that the user needs to login every time after the session expires. Any other hints, links or best practices? Kind regards, Peter.

Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Igor Vaynberg
store the token in a cookie and attempt to auto-reologin user based on it? -igor On Sat, Dec 4, 2010 at 11:51 AM, Peter Karich peat...@yahoo.de wrote:  Hi, do you know of any examples for wicket which uses twitter's oAuth? In my app I can easily login and use the twitter api, but I'm kind

Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Peter Karich
Igor, there is token_secure. So storing it in clean text should be ok, right? Or do I need to encrypt (or at leat base64ing) it? Regards, Peter. store the token in a cookie and attempt to auto-reologin user based on it? -igor On Sat, Dec 4, 2010 at 11:51 AM, Peter Karichpeat...@yahoo.de

Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Igor Vaynberg
not sure, but i would think it would be ok. i think the token should already be url safe, but once again - not sure. -igor On Sat, Dec 4, 2010 at 12:38 PM, Peter Karich peat...@yahoo.de wrote:  Igor, there is token_secure. So storing it in clean text should be ok, right? Or do I need to

Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Peter Karich
Hi Igor! thanks! I will try it out. (I also think token is url safe) BTW: I meant, there is also 'token_secure', not only 'token' in twitter's oAuth (+ the app credentials). So a hacker cannot easily guess the 'token' for the user and get a fake login via modifying its cookie. like it would

Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Igor Vaynberg
you can mark the cookie as secure so it will only be transferred over https. -igor On Sat, Dec 4, 2010 at 12:56 PM, Peter Karich peat...@yahoo.de wrote:  Hi Igor! thanks! I will try it out. (I also think token is url safe) BTW: I meant, there is also 'token_secure', not only 'token' in

Re: Validate after Submit?

2010-12-04 Thread splitshade
well, attaching a validator to a specific id could possibly work, but this is not very usable, because thus i would need to know about the internal structure of a component. But i do not have any better idea either, so thanks for the hint! -- View this message in context:

Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Peter Karich
oh, but this would raise other questions :-) e.g. how can I setup https with tomcat/wicket? Or do I need to setup this with apache only? Regards, Peter. you can mark the cookie as secure so it will only be transferred over https. -igor On Sat, Dec 4, 2010 at 12:56 PM, Peter

Re: WiQuery broken by adding component to AjaxRequestTarget

2010-12-04 Thread guydog28
For anyone following this, here is a link to the issue on the WiQuery site, where I have provided additional details and attached a sample project: http://code.google.com/p/wiquery/issues/detail?id=143 http://code.google.com/p/wiquery/issues/detail?id=143 -- View this message in context:

Re: Multithreaded construction of pages

2010-12-04 Thread robert.mcguinness
Can you show some code? I created something similar but I'm curious about your implementation. https://gist.github.com/706011 https://gist.github.com/706011 -- View this message in context:

Re: opening ModalWindow on page load

2010-12-04 Thread Ernesto Reinaldo Barreiro
Done. Added the class to: https://cwiki.apache.org/confluence/display/WICKET/Modal+Windows Regards, Ernesto On Tue, Nov 23, 2010 at 4:24 PM, Martin Grigorov mgrigo...@apache.org wrote: Wiki page is OK for now. 1) it is easy to create if needed 2) I don't remember such request in the