Re: Sign to Google with Java Wicket

2013-11-25 Thread Martin Grigorov
Hi, This is no more a question about Wicket. Please use StackOverflow or any other appropriate forum. A hint: Desktop.getDesktop().browse(new URI("http://www.gmail.com";)); starts a new session that knows nothing about the one that made the handshake. On Sun, Nov 24, 2013 at 11:25 PM, MartinoS

Re: wicket-bootstrap and another webjars components

2013-11-25 Thread Martin Grigorov
Hi, I've proposed a fix in wicket-webjars project (Pull Request 4). Thanks for your help! On Sat, Nov 23, 2013 at 5:06 AM, Shengche Hsiao wrote: > > This is the quickstart on git hub > > https://github.com/Shengche/webjars-wicket > > > > - > We do this not because it is easy. We do this bec

Newbie question: startup wicketapplication with loginform

2013-11-25 Thread gerritqf
Hello usermembers, I have a question about the startup page for my wicket webapplication. I made a Loginform class and a Loginform.html which i want to start my application with. The Loginform class extends Form. Now in the application class it is not possible to point to the Loginform.class like

Re: wicket-bootstrap and another webjars components

2013-11-25 Thread Shengche Hsiao
Thans Martin On Nov 25, 2013 5:36 PM, "Martin Grigorov" wrote: > Hi, > > I've proposed a fix in wicket-webjars project (Pull Request 4). > Thanks for your help! > > > On Sat, Nov 23, 2013 at 5:06 AM, Shengche Hsiao >wrote: > > > > > This is the quickstart on git hub > > > > https://github.com/Sh

Re: Newbie question: startup wicketapplication with loginform

2013-11-25 Thread Martin Grigorov
Hi, You should use the form in a page. Create a proper page, add the form to it, and use that page as a home page. On Mon, Nov 25, 2013 at 11:44 AM, gerritqf wrote: > Hello usermembers, > > I have a question about the startup page for my wicket webapplication. > I made a Loginform class and a L

Re: Newbie question: startup wicketapplication with loginform

2013-11-25 Thread Gerrit Wassink
Ok i will try.Thanks! Martin Grigorov , 25-11-2013 10:55: Hi, You should use the form in a page. Create a proper page, add the form to it, and use that page as a home page. On Mon, Nov 25, 2013 at 11:44 AM, gerritqf wrote: > Hello usermembers, > > I have a question about the startu

FileUPloadField alternatives?

2013-11-25 Thread Martin Dietze
In my project I am experiencing IE8 crashes at (Ajax-based) file upload. This happens with some particular machines my client uses, and, no, replacing them is (unfortunately) not an option. I am therefore exploring alternatives, hoping that e.g. a flash- or javascript-based upload might not lead t

Field Decorator not working on a single dropdown field after form submit

2013-11-25 Thread lucast
Dear Forum, I have created a Field Decorator solution based on Apache Wicket Cookbook, chapter 3. I have also created a drop down field validator which implements INullAcceptingValidator. When the form is first rendered, Field decorator beforeRender() and afterRender() is called for all form field

Re: FileUPloadField alternatives?

2013-11-25 Thread Martin Grigorov
Hi, On Mon, Nov 25, 2013 at 4:24 PM, Martin Dietze wrote: > In my project I am experiencing IE8 crashes at (Ajax-based) file > upload. This happens with some particular machines my client > uses, and, no, replacing them is (unfortunately) not an option. > Can you explain what is the issue ? May

CSRF protection by randomizing the page ID

2013-11-25 Thread Andreas Kappler
Hi, I am working on securing a Wicket application against CSRF attacks, which are possible because Wicket URLs can be easily guessed by an attacker and requests contain no challenge token. I did my research and found https://issues.apache.org/jira/browse/WICKET-1782 and https://issues.apache.

Re: FileUPloadField alternatives?

2013-11-25 Thread Martin Dietze
On Mon, November 25, 2013, Martin Grigorov wrote: > > In my project I am experiencing IE8 crashes at (Ajax-based) file > > upload. This happens with some particular machines my client > > uses, and, no, replacing them is (unfortunately) not an option. > > > > Can you explain what is the issue ? >

Re: FileUPloadField alternatives?

2013-11-25 Thread Martin Grigorov
On Mon, Nov 25, 2013 at 5:15 PM, Martin Dietze wrote: > On Mon, November 25, 2013, Martin Grigorov wrote: > > > > In my project I am experiencing IE8 crashes at (Ajax-based) file > > > upload. This happens with some particular machines my client > > > uses, and, no, replacing them is (unfortunate

Re: CSRF protection by randomizing the page ID

2013-11-25 Thread Martin Grigorov
Hi, There is a (small) chance of clashes with this approach: 1) token = 0 => pageId == num 2) token = Integer.MAX_VALUE => pageId == num The page id is session relative, so pageId=13 is Page1 for me but could be Page21 for anyone else. On Mon, Nov 25, 2013 at 5:15 PM, Andreas Kappler < andrea

Change a session locale using a GET parameter

2013-11-25 Thread Marcin Zajączkowski
Hi, In the application an user should be able to change session locale with a GET parameter (e.g. ?locale=pl). I implemented it in onConfigure for my abstract WebPage where I check if the parameter exists and change session locale and it works fine. Nevertheless I wonder if it is a proper place f

Re: Change a session locale using a GET parameter

2013-11-25 Thread Martin Grigorov
Hi, See https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/LocaleFirstMapper.java?source=cc You can read the parameter from the query string. On Mon, Nov 25, 2013 at 6:31 PM, Marcin Zajączkowski wrote: > Hi, > > In the applicati

Re: FileUPloadField alternatives?

2013-11-25 Thread Martin Dietze
On Mon, November 25, 2013, Martin Grigorov wrote: > I guess that the problem is in > https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js?source=cc#L856 If I understand this correctly I might get away by producing a deployable

Re: Change a session locale using a GET parameter

2013-11-25 Thread Marcin Zajączkowski
On 2013-11-25 17:45, Martin Grigorov wrote: > Hi, > > See > https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/LocaleFirstMapper.java?source=cc > > You can read the parameter from the query string. Great, thanks Martin. Marcin >