oops... Seems I had a little brain fade. I was mounting the urls in the
onInitialize method of the common page superclass so they aren't mounted
until you hit the home page which is the only page accessible at that
point. Not a good design idea ;)

On 06/01/14 08:09, Paul BorČ™ wrote:
> Can't you simply invalidate the user session and have Wicket redirect to / 
> when that happens?
>
> Another idea, have an Ajax timer refresh those resources so they don't time 
> out :)
>
> Have a great day,
>     Paul Bors
>
>> On Jan 5, 2014, at 7:55 AM, Steve <shadders....@gmail.com> wrote:
>>
>> I've solved this problem before but can't remember how I did it.  The
>> wicket-el example app is running on google app engine which unloads the
>> instance if it's not accessed for a period of time.  This is ok if the
>> next user hits the "/" url first but if they try to hit any mounted urls
>> e.g. /ajax they will get a 404 not found error as the app isn't loaded
>> in the jetty container.  My url pattern is:
>>
>>  <filter-mapping>
>>    <filter-name>wicket.wicket-el</filter-name>
>>    <url-pattern>/*</url-pattern>
>>  </filter-mapping>
>>
>> I've tried this:
>>
>> <error-page>
>>  <error-code>404</error-code>
>>  <location>/</location>
>> </error-page>
>>
>> But it just gives me a listing of files in the webapp directory.  I've
>> tried explicitly mounting the home page as "/" but then it overrides all
>> other urls and static files are inaccessible.  Are there any other ways
>> to solve this problem?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to