Dynamic Session.style

2013-05-03 Thread Allen Gilbert
We are adding some new pages to our application that we'd like to style differently from existing ones. We also want to reuse Panels we've built, so we're employing the Style mechanism outlined in https://cwiki.apache.org/confluence/display/WICKET/Localization+and+Skinning+of+Applications. We

Re: Dynamic Session.style

2013-05-03 Thread Allen Gilbert
tab and refreshing the page should be in Spanish. Same for you. What you need to do is create a new session for the second tab in order to treat them separate. ~ Thank you, Paul Bors -Original Message- From: Allen Gilbert [mailto:allen.gilb...@doane.edu] Sent: Friday, May 03

Re: StalePageException handling issue

2012-04-23 Thread Allen Gilbert
, 2012 at 4:59 AM, Allen Gilbert allen.gilb...@doane.edu wrote: While trying to understand what causes StalePageExceptions (using Wicket 1.5.4), I discovered a strange situation that can occur when DefaultExceptionMapper handles a StalePageException. I decided to ping the mailing list before

StalePageException handling issue

2012-04-22 Thread Allen Gilbert
While trying to understand what causes StalePageExceptions (using Wicket 1.5.4), I discovered a strange situation that can occur when DefaultExceptionMapper handles a StalePageException. I decided to ping the mailing list before creating a JIRA issue in case I'm misunderstanding intended behavior.

Re: JavaSerializer - java.util.ConcurrentModificationException during page serialization

2012-03-01 Thread Allen Gilbert
that their thread-safety is up to users. I found out in my copy of Wicket in Action :-). Thanks! On Wed, Feb 29, 2012 at 1:54 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, On Wed, Feb 29, 2012 at 12:37 AM, Allen Gilbert allen.gilb...@doane.edu wrote: Hello, I'm trying to crack

JavaSerializer - java.util.ConcurrentModificationException during page serialization

2012-02-28 Thread Allen Gilbert
Hello, I'm trying to crack a strange, intermittent bug that's cropped up on our production site. We're using Wicket 1.5.4, and receive the following stack trace a couple times a day under nominal load: 2012-02-23 14:24:57,051 ERROR [ajp-0.0.0.0-8009-2]

Component implementation - instance variables

2012-02-28 Thread Allen Gilbert
I understand that it's not a good idea to store model bean objects as instance variables in a Component, but I'm not clear on this: is it OK to store references to child Components as private fields in a parent Component (e.g. a Panel)? It often seems convenient to do so, especially when the

onConfigure()

2012-02-28 Thread Allen Gilbert
OK, one more question, then I'll stop pestering everyone...at least for now : ). Is it problematic to make changes to a Component's model in its onConfigure() method? -Allen

Re: Component implementation - instance variables

2012-02-28 Thread Allen Gilbert
, 2012 at 2:49 PM, Allen Gilbert allen.gilb...@doane.edu wrote: I understand that it's not a good idea to store model bean objects as instance variables in a Component, but I'm not clear on this: is it OK to store references to child Components as private fields in a parent Component (e.g

Error detaching RequestHandler

2012-01-19 Thread Allen Gilbert
Running 1.5.2, we occasionally see this error message in our logs, usually many times in a row: 2012-01-19 10:03:09,284 ERROR [org.apache.wicket.request.RequestHandlerStack] Error detaching RequestHandler org.apache.wicket.RestartResponseAtInterceptPageException No other details are provided.

Re: What is the cause for log entry ModificationWatcher - Cannot track modifications to resource

2012-01-02 Thread Allen Gilbert
Per, I ran into this problem recently and solved it by removing spaces from directory names in my project path. I plan to file a Jira issue at some point, as it seems that ModificationWatcher should be able to handle file paths with spaces... -Allen On Mon, Jan 2, 2012 at 4:42 AM, Per Newgro

Re: Wicket.Ajax.registerPre/PostCallHandler filtering

2011-12-29 Thread Allen Gilbert
:28 PM, Allen Gilbert allen.gilb...@doane.edu wrote: Ernesto, Interesting...I've only used IAjaxIndicatorAware to display a loading gif, but it might solve this problem if I can get it to nicely show and hide a div that a) blocks the user from interacting with my panel and b) shows

Re: Wicket.Ajax.registerPre/PostCallHandler filtering

2011-12-29 Thread Allen Gilbert
, Dec 29, 2011 at 3:40 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Allen, Isn't it possible to make the panel implement IAjaxIndicatorAware? Regards, Ernesto On Wed, Dec 28, 2011 at 11:41 PM, Allen Gilbert allen.gilb...@doane.edu wrote: Hello, I have a Panel containing

Wicket.Ajax.registerPre/PostCallHandler filtering

2011-12-28 Thread Allen Gilbert
Hello, I have a Panel containing many child components that perform various ajax actions. Whenever an ajax request is initiated from the panel or any of its children, I'd like to show an indicator on the panel and block user interaction with it. However, I don't want the indicator to be shown

Re: Wicket.Ajax.registerPre/PostCallHandler filtering

2011-12-28 Thread Allen Gilbert
callbacks On Thu, Dec 29, 2011 at 12:41 AM, Allen Gilbert allen.gilb...@doane.edu wrote: Hello, I have a Panel containing many child components that perform various ajax actions. Whenever an ajax request is initiated from the panel or any of its children, I'd like to show an indicator

IRequestMapper that ignores page version

2011-12-05 Thread Allen Gilbert
Hello, I have a problem similar to the one outlined here: http://apache-wicket.1842946.n4.nabble.com/Migrating-from-1-4-16-to-1-5-RC3-problem-when-trying-to-avoid-pages-caching-not-calling-the-construc-td3463183.html. I have a page that uses a lot of Ajax (and is thus stateful/versioned), but I

Re: IRequestMapper that ignores page version

2011-12-05 Thread Allen Gilbert
url = request.getUrl(); info = getPageComponentInfo(url); if (info != null) url.removeQueryParam(info.toString()); return super.mapRequest(request) This will cut the special parameter that brings the page info On Mon, Dec 5, 2011 at 8:08 PM, Allen Gilbert allen.gilb...@doane.edu wrote

Hide page version query parameters

2011-12-05 Thread Allen Gilbert
Is there a built-in way to hide page version parameters (e.g. ?12) in Wicket 1.5? If not, is it possible to write a custom IRequestMapper that does so without screwing up proper request handling? -Allen

Hiding subclass components

2011-11-03 Thread Allen Gilbert
Hello, I've defined an abstract subclass of WebPage (BasePage) that knows whether or not a user can access the content of any concrete page.  If a user does not have access, I don't want to block them from landing on the page; instead, I'd like to show some page-specific content instructing them

Updating a child of a transparent resolver via ajax

2011-11-02 Thread Allen Gilbert
Hello, Following Igor's example at http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/, I am trying to paint only the latest item added to a repeater. Although the sample project from the article worked, I could not get the approach to work on my page in my