Re: Adding a javascript function to wicket

2011-07-14 Thread Pepijn de Geus
If you use WiQuery (which we do too, it's great), you can just let your component (Panel, WebMarkupContainer, Page) implement IWiQueryPlugin and implement statement(). On 13 jul 2011, at 20:01, Martin Grigorov wrote: Browse the sources at

Re: Major session problem [GAE]

2011-06-09 Thread Pepijn de Geus
Storing the User in a static field doesn't seem wise: the static field is shared between all session instances, so this will break. Besides that, I'd advise not to store the User instance itself in the session, but only the user ID (or username, or email). The User instance can be cached in a

Re: Major session problem [GAE]

2011-06-09 Thread Pepijn de Geus
The Wicket websession has a static .get(), which will always return the ThreadLocal session instance for the current user. So you can use that and cast the result to your session, or add your own get() to your session: public static MySession get() { return (MySession) WebSession.get();

Fixing redirect with relative part for mobile device

2011-02-22 Thread Pepijn de Geus
Hi all, I'm working on a mobile website to be accessed by all kinds of devices, including the Nokia N95. While testing we found out certain links were not working on the N95, while other devices and desktop browsers worked fine. I started a tcpdump and narrowed the problem to a redirect Wicket

Re: Fixing redirect with relative part for mobile device

2011-02-22 Thread Pepijn de Geus
application in different web container. I remember some version of Tomcat to had that problem. Per JEE spec it is container's responsibility to make the redirect url absolute. On Tue, Feb 22, 2011 at 8:13 PM, Pepijn de Geus pdeg...@me.com wrote: Hi all, I'm working on a mobile website

Re: how to set cookie domain?

2011-02-02 Thread Pepijn de Geus
Cookie itself can handle that: Cookie#setDomain(String). For session cookies, you can use the sun-web.xml, at least in GlassFish: http://download.oracle.com/docs/cd/E19776-01/820-4502/6nfvbc8id/index.html On 2 feb 2011, at 04:38, Paolo wrote: Hi, I want add a cookie, and I saw on this site,

Re: FeedbackPanel inside PropertyListView

2011-02-02 Thread Pepijn de Geus
Construct the FeedbackPanel with a filter, either a ComponentFeedbackMessageFilter or ContainerFeedbackMessageFilter. On 2 feb 2011, at 13:27, Duro wrote: Hello, in my FeedbackPanel, which is created inside PropertyListView I experience this behaviour. Each item , which is created in the

continueToOriginalDestination not working correctly

2010-09-30 Thread Pepijn de Geus
Hi all, I'm working on a website were the customer can enable a splash page that will be displayed once per session to every visitor entering the site. To achieve this, I've added a small session check with a to my BasePage, which is the parent of all webpages: if

Session cookie path

2010-07-29 Thread Pepijn de Geus
Hi, We're running Wicket 1.4.9 on GlassFish 2.1 behind an Apache server running on port 80. In several Apache virtual hosts we use JkMount to mount the GlassFish applications. I just found out this raises a problem: Wicket sets the session cookie path to the servlet contextpath /MyProject by

Re: Session cookie path

2010-07-29 Thread Pepijn de Geus
Found a (non-Wicket) solution using sun-web.xml: http://markmail.org/message/hi6ecymqdh7gyi4y On 29 jul 2010, at 14:02, Pepijn de Geus wrote: Hi, We're running Wicket 1.4.9 on GlassFish 2.1 behind an Apache server running on port 80. In several Apache virtual hosts we use JkMount