Re: Using Wicket and Hibernate

2013-11-21 Thread Dan Alvizu
Here's an example of wicket spring and hibernate all working together, with an h2 database: https://github.com/dalvizu/wicket-spring-hibernate-template -Dan On Thu, Nov 21, 2013 at 8:30 AM, Gerrit Wassink gerrit.wass...@qfactors.nlwrote: Hello, I am reading Wicket in Action the part over

Re: Wicket as rest backend....

2012-09-20 Thread Dan Alvizu
I've used wicket-rest before - it got the job done, but I couldn't use it for wicket 1.5. Since then I've moved my rest services to Jersey - I highly recommend using that if you can: http://jersey.java.net/ -Dan On Thu, Sep 20, 2012 at 1:21 PM, Josh Kamau joshnet2...@gmail.com wrote: Good

Re: Single sign on (SSO) for two WicketApplication

2012-05-10 Thread Dan Alvizu
I'm not sure if it fits your use-case, but my company offers single sign on as a service: https://www.pingone.com/ -Dan On Thu, May 10, 2012 at 11:52 AM, Arjun Dhar dhar...@yahoo.com wrote: Sir, I rant philosophy let me stop you @ How could you send/share the username password between den in

Re: Login page stateless??

2012-04-24 Thread Dan Alvizu
The problem is that the application will be in internet, and is VERY easy to attack if we create a session in the login page Are you worried about a session fixation attack? I just call Session#replaceSession(): http://wicket.apache.org/apidocs/1.5/org/apache/wicket/Session.html#replaceSession()

Re: Preferred way to unit testing a WizardStep?

2012-03-10 Thread Dan Alvizu
is in -core, Wizard is in -extensions. -core doesn't know about -extensions. Can't you test it like any other Panel ? On Sat, Mar 10, 2012 at 12:13 AM, Dan Alvizu dalv...@pingidentity.com wrote: Hi again, Sorry for the repost but I haven't been able to find a way through WicketTester API

Re: Preferred way to unit testing a WizardStep?

2012-03-09 Thread Dan Alvizu
Hi again, Sorry for the repost but I haven't been able to find a way through WicketTester API to accomplish this, so I'm bumping this thread. Has anybody successfully written unit tests for the wizard? Thanks, Dan On Mon, Mar 5, 2012 at 2:34 PM, Dan Alvizu dalv...@pingidentity.com wrote: Hi

Preferred way to unit testing a WizardStep?

2012-03-05 Thread Dan Alvizu
Hi, I've got a wizard with 5 steps. If I want to test just step four, but do not want to go through steps 1 through 3 first, how would I do that? I found this message for wicket 1.4: http://osdir.com/ml/users-wicket.apache.org/2011-06/msg00498.html However, startPanel() is deprecated and

Re: Any info on wasp-swarm?

2011-12-09 Thread Dan Alvizu
and as such is released for every wicket release. It is maintained and it will continue to work, as all our major applications are built on top of it. Best regards, Emond Papegaaij On Friday 09 December 2011 08:52:40 Martin Grigorov wrote: On Fri, Dec 9, 2011 at 5:46 AM, Dan Alvizu dalv

Any info on wasp-swarm?

2011-12-08 Thread Dan Alvizu
Hi, I'm trying to solve an authorization problem in wicket 1.5 -- I do not want users to have access to certain pages based on the roles that they have. I think wasp-swarm may be what I need, but is it being maintained anymore? I can't find anything current on the web since the 1.4.1

Re: CSRF protection and preserving page mount names

2011-12-06 Thread Dan Alvizu
That works, thanks! On Tue, Dec 6, 2011 at 1:06 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, See https://issues.apache.org/jira/browse/WICKET-4140 There is a quickstart that shows how to do it. On Mon, Dec 5, 2011 at 11:40 PM, Dan Alvizu dalv...@pingidentity.com wrote: Hello

CSRF protection and preserving page mount names

2011-12-05 Thread Dan Alvizu
Hello, I'm migrating from wicket 1.4 to 1.5 and I am looking to port the cross site request forgery (CSRF) protection from wicket 1.4. In 1.4, the recommended way[1] is to use CryptedUrlWebRequestCodingStrategy: // MyWebApplication.java @Override protected IRequestCycleProcessor

Re: How to get client ip with wicket 1.5

2011-11-21 Thread Dan Alvizu
getRemoteHost() will return the IP of the client making the last http request. This is not a problem if your users make requests directly to your application server, but if you have a reverse proxy like a load balancer, getRemoteHost() will return the IP of the reverse proxy, which probably isn't