Re: Wicket cookie timeout example?

2012-04-01 Thread kshitiz
Ok...thank you for replying...I wanted to ask one more thing? I am thinking to add wicket authentication in my app. But as there would be only one type of user onlyshould I use wicket authentication? I mean this can be achieved by simple checking session existence also. Will there be any

Re: Version Pages by default

2012-04-01 Thread Martin Grigorov
Using setResponsePage(Page) wont work. This will create url like: .../wicket/page?6 and there is no way to find what is the type of the page behind this url. Using setResponsePage(Class) the url will be .../pageB and this is what is needed to find out which Page implementation to use after session

Re: Wicket cookie timeout example?

2012-04-01 Thread Martin Grigorov
It will be the same. If you don't provide your own authentication strategy then no-op one is used that always returns allowed. I.e. the calls to the authen strategy are executed always. You just need to replace it with your cookie checking one. But see

Re: HOWTO to only skip required validators

2012-04-01 Thread Martin Grigorov
Hi, On Sun, Apr 1, 2012 at 4:18 AM, Emmanouil Batsis (Manos) ma...@abiss.gr wrote: I have a usecase for saving a draft of a form before actually submitting it. I'm trying to figure out how to only skip the required validators using a save draft submit button in my form. Disabling default

Re: Wicket cookie timeout example?

2012-04-01 Thread kshitiz
Okkk.I am learning wicket authorization from http://wicket.wordpress.com/2010/01/08/template-for-building-authenticated-webapplication/ http://wicket.wordpress.com/2010/01/08/template-for-building-authenticated-webapplication/ . Here, it is using wicket own signinpanel. If I want to use mine

Re: Wicket cookie timeout example?

2012-04-01 Thread Martin Grigorov
Use wicket-auth-roles project as a demo. On Sun, Apr 1, 2012 at 12:04 PM, kshitiz k.agarw...@gmail.com wrote: Okkk.I am learning wicket authorization from http://wicket.wordpress.com/2010/01/08/template-for-building-authenticated-webapplication/

Re: Wicket cookie timeout example?

2012-04-01 Thread kshitiz
How to check session's validity? If after logging out we invalidate session, how to check its validity to avoid any unknown user to access restricted pages...?? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-cookie-timeout-example-tp4521200p4523218.html Sent

Can I post to this MailingList without being subscribed?

2012-04-01 Thread Ben Stover
I would like to be able to post to this MailingList don't want to get any postings devliered to my MailBox. Instead I prefer to read all postings+answers on a forum-like webpage like Nabble: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html Can I unsubscribe and still be

Re: Redirect to external URL

2012-04-01 Thread Martin Grigorov
Hi, You can't do this with RTUE. RTUE works with http redirect. If you use Ajax then do: target.appendJS(window.open(url, '_blank')) If it is not Ajax then you have to do it with : a target='_blank' On Sun, Apr 1, 2012 at 2:22 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi there ; I am using

Re: Redirect to external URL

2012-04-01 Thread Josh Kamau
Thanks Martin... I have realized this link should not even hit my server... Josh On Sun, Apr 1, 2012 at 3:32 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, You can't do this with RTUE. RTUE works with http redirect. If you use Ajax then do: target.appendJS(window.open(url, '_blank'))

Re: Wicket cookie timeout example?

2012-04-01 Thread Martin Grigorov
There wont be a http session at all if this is an unauthorized user. Wicket API: Session.get().isTemporary() Servlet API: httpServletRequets.getHttpSession(false) != null On Sun, Apr 1, 2012 at 1:39 PM, kshitiz k.agarw...@gmail.com wrote: How to check session's validity? If after logging out we

Re: Redirect to external URL

2012-04-01 Thread Martin Grigorov
Then use ExternalLink attached to a target='_blank' .. On Sun, Apr 1, 2012 at 2:35 PM, Josh Kamau joshnet2...@gmail.com wrote: Thanks Martin... I have realized this link should not even hit my server... Josh On Sun, Apr 1, 2012 at 3:32 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi,

Re: Can I post to this MailingList without being subscribed?

2012-04-01 Thread Martin Grigorov
Hi, I think posting from Nabble is disabled because we got some spam from there but you can try. On Sun, Apr 1, 2012 at 2:20 PM, Ben Stover bxsto...@yahoo.co.uk wrote: I would like to be able to post to this MailingList don't want to get any postings devliered to my MailBox. Instead I

Re: Redirect to external URL

2012-04-01 Thread Josh Kamau
I used ExternalLink and it worked perfectly. Thanks. On Sun, Apr 1, 2012 at 3:37 PM, Martin Grigorov mgrigo...@apache.orgwrote: Then use ExternalLink attached to a target='_blank' .. On Sun, Apr 1, 2012 at 2:35 PM, Josh Kamau joshnet2...@gmail.com wrote: Thanks Martin... I have realized

Re: Wicket cookie timeout example?

2012-04-01 Thread kshitiz
Okk...but as given in my code...why object in not getting stored in session?? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-cookie-timeout-example-tp4521200p4523322.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket cookie timeout example?

2012-04-01 Thread kshitiz
It turned out that object is getting stored in session but is not getting retrieved in other page. I have tried to use wicketsessionfilter but it is not helping...how to access session object in another page..?? The session object is being retrieved in same page. -- View this message in context:

Re: Wicket cookie timeout example?

2012-04-01 Thread Martin Grigorov
Make sure that you bind the session in the first page with getSession().bind(). This way you will get the same session in all following requests until the session expire. The session is being bound automatically for you if your page is stateful. But for stateless page you need to do this

Re: Wicket cookie timeout example?

2012-04-01 Thread kshitiz
It worked...thanks :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-cookie-timeout-example-tp4521200p4523670.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: isJavaEnabled does not work

2012-04-01 Thread Andre Schütz
Hello, thank you for the information. I have two further questions that are of importance for me. (1) I have Javascript enabled in Opera and Firefox. I tested the two following client information: Method - result in my logs isJavaEnabled - false isCookiesEnabled - true (a) I disabled

Re: 1.4.7 migration to 1.5.5 failing on AWS Elastic Beanstalk caused by Form class

2012-04-01 Thread roddo123
Just to be clear. I agree that using AWS EC2 in itself is ok. However, Elastic Beanstalk is a very specific AWS feature where AWS provides a configured server. Are you including Elastic Beanstalk, when you say that 1.5.5 Form applications have been deployed to AWS? -- View this message in

Re: isJavaEnabled does not work

2012-04-01 Thread Andre Schütz
Hello, thank you for the information. I have two further questions that are of importance for me. (1) I have Javascript enabled in Opera and Firefox. I tested the two following client information: Method - result in my logs isJavaEnabled - false isCookiesEnabled - true (a) I disabled

Writing to header causes 'not yet working' code to be executed

2012-04-01 Thread Chris Colman
I've overridden renderHead to write to the header of the page but I get a strange error message that I have not been able to work out. It executes some code that has a 'not implemented' comment: The code is in WebPage: /** * Validate that each component which wanted to

Re: Version Pages by default

2012-04-01 Thread sudeivas
I have made changes in the code to set all the parameters in the Session. Now the URL looks clean. http:///pageB?5 But in pageB's constructor after reading values from session I am not clearing it as we need those values in the session. When the page expiration happens, when wicket tries to