How to catch all 404s (Page Not Found) and filter to a Page or strategy

2008-07-16 Thread Chris Lintz
Hi all, I want to catch all page not found (404s) and simply grab the path that caused the 404 and reroute the request to a valid Page based on business rules (returning a valid 200), or simply continue to return the 404. I dont see where i can intercept these errors easily from the Application.

Re: StatelessForm doesn't work with GET method

2008-06-26 Thread Chris Lintz
Is there a patch for this in the 1.3.x branch or something i can override as a fix? I am using 1.3.3. Doug Donohoe wrote: > > As part of my effort to submit a form to a bookmarkable page, I discovered > this bug when trying to uses a stateless form with the GET method of a > form. I've docum

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-05-15 Thread Chris Lintz
Guys has this been resolved?? We have been having some customers complain as well (some sending screen shots of others peoples data as proof). Because our users click streams are available publically at their control, we had thought jsessionids occurring in the click stream were being malicious

Re: How to lookup Page or Class from a URI path ?

2008-05-04 Thread Chris Lintz
wrote: > > why do you want to know it there? > you are to early there. Wicket only knows it much later when it generates > a > RequestTarget from the url > > johan > > > On Sun, May 4, 2008 at 6:09 PM, Chris Lintz <[EMAIL PROTECTED]> > wrote: > >> &g

Re: How to lookup Page or Class from a URI path ?

2008-05-04 Thread Chris Lintz
: > > http://wicketstuff.org/wicket13/niceurl/the/homepage/path > > Browse the source code of NiceUrlApplication.java to see how to use > mounts > > On Sat, 2008-05-03 at 18:35 +0200, Johan Compagner wrote: >> Use mounts >> >> On 5/2/08, Chris Lintz <[EMAIL PRO

How to lookup Page or Class from a URI path ?

2008-05-02 Thread Chris Lintz
Hi, Any one know how I can directly lookup a Page or the Page Class from a URI path? For example, say I have "/pic/convert" . How can I get the associated Page or Page class that path? thanks for any help chris -- View this message in context: http://www.nabble.com/How-to-lookup-Page-or-Cla

Is there something like HybridUrlCodingStrategy for normal GET parameters?

2008-03-17 Thread Chris Lintz
Hey all, So the HybridUrlCodingStrategy is great for AJAX pages. I have a bit of an issue where I need something like the HybridUrlCodingStrategy except it can take GET parameters and not lose its mount point. Anyone know of something like this out there? From the Wicket Java docs, it doesn't a

Re: Need to redirect to the current page upon a page expire - how??

2008-02-21 Thread Chris Lintz
That would work, except the search results do contain some AJAX functionality, which of course result in a stateful page. Mr Mean wrote: > > how about using a stateless searchpage? > that way you should not get a page expired. > > Maurice > > On Thu, Feb 21, 2008 at

Need to redirect to the current page upon a page expire - how??

2008-02-20 Thread Chris Lintz
Hi, So i have searched the forums regarding overriding RequestCycle#onRuntimeException(Page page,RuntimeException e) . It seems we are completely stuck because there is no way to determine what page threw a PageExpiredException . What I want to do is this: When my SearchPage expires, and the

Re: How To Change Page Store Size in DiskPageStore?

2007-11-14 Thread Chris Lintz
gt; 1. > > On 11/14/07, Chris Lintz <[EMAIL PROTECTED]> wrote: >> >> The process ID is just an idea for a unique ID. If that wont work for >> you, >> lets dream another unique ID . >> >> >> >> Johan Compagner wrote: >> > >> &

Re: How To Change Page Store Size in DiskPageStore?

2007-11-14 Thread Chris Lintz
t; processes that are all valid. so that doesn't solve anything > > On 11/14/07, Johan Compagner <[EMAIL PROTECTED]> wrote: >> can you get the current process id by general api in java? have to >> look at Runtime then. >> >> On 11/14/07, Chris Lintz <[

Re: How To Change Page Store Size in DiskPageStore?

2007-11-14 Thread Chris Lintz
g we could do is have a thread running that is waking up > every day once > and checks if there are files older then X. And that thread must be > configured by you > explicitly setting the timeout that you want to have. > > johan > > > > > On Nov 14, 2007 12:0

Re: How To Change Page Store Size in DiskPageStore?

2007-11-13 Thread Chris Lintz
in the work dir. > > I don't think wicket can do much about it. > > johan > > > On Nov 13, 2007 10:41 PM, Chris Lintz <[EMAIL PROTECTED]> > wrote: > >> >> All, >> I have submitted a Jira on this topic. I will leave it to t

Re: How To Change Page Store Size in DiskPageStore?

2007-11-13 Thread Chris Lintz
All, I have submitted a Jira on this topic. I will leave it to the great minds to debate. In any case, it appears restarting the container cannot notify the HttpSessionListeners that are bound to the page store files. It would be nice if the framework can cleanup what I consider a leak of the c

Re: Is it possible to get AjaxLink stateless?

2007-11-09 Thread Chris Lintz
{ > > *return* *false*; > > } > > > > and return true. I dont know if all the urls are generated right then.. > > > On Nov 9, 2007 4:51 PM, Chris Lintz <[EMAIL PROTECTED]> wrote: > >> >> The onsubmit is adding a friend to XCP. An Ajax call decorator is

Re: Is it possible to get AjaxLink stateless?

2007-11-09 Thread Chris Lintz
d your friendship request. Please try again later.');"; } }; }; }; Johan Compagner wrote: > > but my question remains, what are you doing inside that ajax link?? > > On Nov 9, 2007 1:17 AM, Chris Lintz <

Re: Is it possible to get AjaxLink stateless?

2007-11-08 Thread Chris Lintz
lick? > > And ajax clicks should be lean and mean in my eyes because they should be > fast and could happen frequently > and creating constantly a page for that is pretty heavy. > > johan > > > > On Nov 8, 2007 11:50 PM, Chris Lintz <[EMAIL PROTECTED]>

Re: facebook support

2007-11-08 Thread Chris Lintz
I am curious what type of Wicket components/functionality you are hoping for? Just on a side note, we are using Octazen - http://www.octazen.com/ for social network slurping of contacts, etc. Of course there is a small license fee for the product, so it would be ideal to have a free library to w

Re: How To Change Page Store Size in DiskPageStore?

2007-11-08 Thread Chris Lintz
We get dangling cache files. I have the sessions set to expire in 1 hour. I check one of my servers and i see cache files from over a week old. This could of only have occurred because of the multiple restarts. Maybe its a bad timing where the HttpSessionBindingListener does not receive a noti

Is it possible to get AjaxLink stateless?

2007-11-08 Thread Chris Lintz
Hi. So i have tried setting the stateless hint and my AjaxLink is still statefull. I read some where where even Ajax components can be stateless. What am I missing? AjaxLink addFriend = new AjaxLink("addFriend") { @Override protec

Re: How To Change Page Store Size in DiskPageStore?

2007-11-08 Thread Chris Lintz
rious bug indeed. Can you please file a high > priority JIRA issue? We'll look at it as soon as possible. > > -Matej > > On Nov 8, 2007 6:35 PM, Chris Lintz <[EMAIL PROTECTED]> wrote: >> >> Guys I am on the same project so I can speak a bit more. The rea

Re: How To Change Page Store Size in DiskPageStore?

2007-11-08 Thread Chris Lintz
How can we limit the number of files and/or directories? I only see the option to limit the size of the session or the size of the pagemap for the DiskPageStore ( DiskPageStore(java.io.File fileStoreFolder, int maxSizePerPagemap, int maxSizePerSession, int fileChannelPoolCapacity) Matej Knopp

Re: How To Change Page Store Size in DiskPageStore?

2007-11-08 Thread Chris Lintz
Guys I am on the same project so I can speak a bit more. The real issue is that on Redhat the default max directories is something like 32K. We ran out of file descriptors. Basically for every unique session there is a directory created for the second level cache. I think the real issue for u

Is Beta5 coming soon? Beta4 has caused these issues for us....

2007-10-29 Thread Chris Lintz
Any chance of getting a Beta5 out soon. As luck would have it, Beta4 to say the least has been frustrating for us. So far beta4 has caused these problems in our app (all stuff that worked in Beta3) 1) AJAXLink is broke when using the Crypted URL encoding strategy. 2) StringResourceModel change

Re: Button component bug - all uses of a Button cause a 302 redirect

2007-10-23 Thread Chris Lintz
Ok. Its a good thing.. I didnt know it was the default setting. I guess i should thank you because it exposed a classic issue seen when having SSL accelerators proxying requests to port 80 . The redirect was redirecting off https. I have fixed this by setting correct headers at the accelerator

Button component bug - all uses of a Button cause a 302 redirect

2007-10-23 Thread Chris Lintz
Hey all, We are quite puzzled why this is happening. Every use of a Button onSubmit causes a 302 redirect no matter if it posts a form or does a get. I have simplified this down to a simple page with a Button and guaranteed there are no Apache redirects or .htaccess files in play. I also ensure

Re: StringResourceModel toString() changed in Beta4 - why??? Must use getString() now.

2007-10-17 Thread Chris Lintz
I also read documentation - it may have been on the Pro Wicket book.. I dont recall. Nonetheless I thought it was strange to also reley on toString().. but seeing documentation and examples of toString() pushed me into using it without much thought. And like I said this worked all the way back t

StringResourceModel toString() changed in Beta4 - why??? Must use getString() now.

2007-10-17 Thread Chris Lintz
Hi all, I swapped beta3 for beta4 and to my surprise all of my StringResourceModels that have worked (even back to 1.2) suddenly dont work. The toString() call no longer returns the resource String. I dont see this in the release notes so to say the least, this was a very frustrating find. For e

Why is the session ID reused even when session is expired? Can I force a new JSESSIONID?

2007-10-14 Thread Chris Lintz
Hi all, I have noticed that even when my session expires, Wicket decides to reuse the same JSESSSIONID found in the cookie and creates a new session with that id. Is there a well to tell Wicket not to reuse the JSESSIONID from the cookie when that session is actually expired? If you are wonder

How to setResponsePage to a mountBookmarkablePage URL ("/promote", PromotePage.class);

2007-10-10 Thread Chris Lintz
Hi, Does any one know if its possible to set the response page (i.e. setResponsePage(...) ) to a bookmarkable page that actually sends the request to the mounted URL? For example if I have: mountBookmarkablePage("/promote", PromotePage.class); I want to do something like setResponsePage

Can we chain WebRequestCodingStrategies (CryptedUrlWebRequestCodingStrategy and an SSL coding strategy)

2007-10-04 Thread Chris Lintz
Hi, Can we chain WebRequestCodingStrategies? I want to use the CryptedUrlWebRequestCodingStrategy and an SSL coding strategy as seen on http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html#HowtoswitchtoSSLmode-CreateNewResponseStrategy . Is this possible to use multiple WebRequestCoding

Re: Bug in IndexedParamUrlCodingStrategy 1.3 Beta3

2007-09-14 Thread Chris Lintz
yeah sorry i missed that last line in your post or I wouldnt have submitted. I guess better 2 Jira's for it than none :) Sebastiaan van Erk wrote: > > Maybe WICKET-950 should be marked as a duplicate of this one then. > > Regards, > Sebastiaan > > Chris Lintz wrot

Re: Bug in IndexedParamUrlCodingStrategy 1.3 Beta3

2007-09-14 Thread Chris Lintz
I Have submitted the following Jira on this issue: http://issues.apache.org/jira/browse/WICKET-976 Chris Lintz wrote: > > Actually I just realized what causes this but have no idea how to get past > it. The InviteAcceptacePage has a Panel within another Panel. The nested > Pane

Re: Bug in IndexedParamUrlCodingStrategy 1.3 Beta3

2007-09-13 Thread Chris Lintz
BTW, I made a JIRA issue for this: > https://issues.apache.org/jira/browse/WICKET-950 > > Regards, > Sebastiaan > > Chris Lintz wrote: >> Hi all, >> So i think there is a bug in IndexedParamUrlCodingStrategy . I have this >> simple m

Re: Bug in IndexedParamUrlCodingStrategy 1.3 Beta3

2007-09-13 Thread Chris Lintz
true and generates the error. Why does the panel with these Map parameters generate the error inside that function? thanks for any help Chris Lintz wrote: > > Hi all, > So i think there is a bug in IndexedParamUrlCodingStrategy . I have this > simple mount in my e

Bug in IndexedParamUrlCodingStrategy 1.3 Beta3

2007-09-13 Thread Chris Lintz
Hi all, So i think there is a bug in IndexedParamUrlCodingStrategy . I have this simple mount in my extened WebApplication: mount(new IndexedParamUrlCodingStrategy("/joinme", InviteAcceptancePage.class)); In my InviteAcceptancePage class, i simply do this snippet of code: public InviteAcce

Re: How to force a delete (from disk) of the session from the session store?

2007-09-10 Thread Chris Lintz
#x27;s not the case please file a jira issue for it. Thanks. > > -Matej > > On 9/9/07, Chris Lintz <[EMAIL PROTECTED]> wrote: >> >> Interesting. I was using session.invalidateNow() which did not remove it >> from disk. But session.invalidate() worked like a cha

Re: How to force a delete (from disk) of the session from the session store?

2007-09-09 Thread Chris Lintz
Interesting. I was using session.invalidateNow() which did not remove it from disk. But session.invalidate() worked like a charm. Should session.invalidateNow() also remove the session from disk immediately? thanks for your help Eelco Hillenius wrote: > >> Chris Lintz wrote: >

How to force a delete (from disk) of the session from the session store?

2007-09-07 Thread Chris Lintz
Hi, When a user logouts of the site, i want to kill the session and have it be removed from disk immediately. I have extended WebSession properly, but no methods on the WebSession class seem to do the trick for me. Is there a way to to trigger the removal of the session cleanly from disk via the

Re: Bookmarkable page and session object problem? (1.3 beta3)

2007-09-07 Thread Chris Lintz
"); >>se.printStackTrace(); >> } >> >> } >>}; >> >> WebPageTemplate.java snippet: >> >> public void setUserInSession(User u) >> { >> MediumSession session = (MediumSession

Re: Bookmarkable page and session object problem? (1.3 beta3)

2007-09-07 Thread Chris Lintz
ion session = (MediumSession) getSession(); session.setUser(u); } Matej Knopp-2 wrote: > > We can't help you with this if you don't post any code. The session > object should of course be available for bookmarkable and > non-bookmarkable objects. > > -Matej

Bookmarkable page and session object problem? (1.3 beta3)

2007-09-07 Thread Chris Lintz
Hi all, This seems like a bug to me but I am hoping some one can lead me the right way to a solution. I basically have non-bookmarkable page that puts the a User object in the session. After this, if i click on a bookmarkable page link, that page does not have the user in the session. If I go b

Re: A Relative path question

2007-08-21 Thread Chris Lintz
ed. Thanks again Al Maw wrote: > > Chris Lintz wrote: >> Thanks for the response. Yes I am using Wicket 1.3 Beta 2. I First >> mapped >> the WAR at root, and let everything fall through Apache with JkUnMounts >> (i.e. JkUnMount /images default), but the issu

Re: A Relative path question

2007-08-21 Thread Chris Lintz
this. I cannot seem to make a reference to Wicket page on a path www.mydomain.com/myapp from my static home page www.mydomain.com because the relative path is "/" . I need the Wicket components to render under /myapp even from requests coming from / . Al Maw wrote: > > Chris L

A Relative path question

2007-08-21 Thread Chris Lintz
Hi all, I have a non-Wicket domain lets say, www.mydomain.com . This domain passes requests to the Wicket filter via mod_jk to this path: www.mydomain.com/myapp . The home page on www.mydomain.com is completely static except for a wicket form that is dyamically written via a Java script documen

Can I HTTP Post from static html page to a Wicket page?

2007-08-18 Thread Chris Lintz
Hi all, I want to post to a Bookmarkable page from a static (non-Wicket page). I am having a tough time figuring out exactly how this can be done. For example, I simply want a static home page to contain a basic form with the form action="/auth/login" . Is this possible with a Wicket page?