RE: Textfield length validator?

2008-03-04 Thread Wang, Yuesong
StringValidator -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2008 2:39 PM To: users@wicket.apache.org Subject: Textfield length validator? Is there a validator in wicket that constrains the input length? Michael --

RE: Resource keys for custom Validators?

2008-03-04 Thread Wang, Yuesong
I think you can put "MyValidator.minimum" in your app's properties file. That makes it the app-level default. Yuesong -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2008 1:53 PM To: users@wicket.apache.org Subject: Resource keys for custom Vali

BaseWicketTester.isVisible() doesn't check Component.isRenderAllowed()

2008-02-21 Thread Wang, Yuesong
BaseWicketTester.isVisible() only checks Component.isVisible(), not Component.isRenderAllowed(). So for a component whose RENDER action is disabled through role based authorization strategy, BaseWicketTester.isVisible() still returns true. BaseWicketTester.isInvisible() works correctly by using Bas

RE: Problem on undeploy

2008-02-15 Thread Wang, Yuesong
It's not a wicket issue. When Tomcat has to access resources in a jar file of a web app, it may lock it. Another attribute your can try is antiJARLocking, which is a little "nicer" than autiResourceLocking. You really only need to set these attribute if you do hot redeployment, e.g. in a develop

RE: Is serialVersionUID really required?

2008-02-14 Thread Wang, Yuesong
code. Because the generated serialVersionUID does change for the most stupid ways (i guess they have to do that but most of the time i don;t care if i added a method) without the id serialization just breaks (can't deserialize) just way more often johan On Thu, Feb 14, 2008 at 4:09 PM,

Is serialVersionUID really required?

2008-02-14 Thread Wang, Yuesong
Hi, In theory, all Serializable classes should have a serialVersionUID, but to provide one to every annonymous inner class used everywhere in a Wicket app is just too much. So I decided to turn off that warning in Eclipse, and not to use serialVersionUID any more, but what is the implication? For

RE: OutOfMemoryError on FilePageSerializingThread

2008-02-12 Thread Wang, Yuesong
It's sort of a known issue of Tomcat (or Sun JVM? Which one I can't remember exactly). It happens when one does repeated hot redeployment. Tomcat can't clear the permgen space, so the classes get accumulated and eventually permgen space runs out. Something like that :) There's a lot of dicussion ab

RE: Override external .properties for localization

2008-02-12 Thread Wang, Yuesong
Maybe you can extend the page, or duplicate the external package in your own code base, and put your localized properties file there? WARNING: I'm a newbie to wicket, so my suggestions might not work at all ;) Yuesong -Original Message- From: Thomas Kappler [mailto:[EMAIL PROTECTED] Sent

RE: Reloading resource

2008-02-07 Thread Wang, Yuesong
y the app if it detects a change c) make sure your ide copies modified html/property files into that exploded war location -igor On Feb 7, 2008 5:13 AM, Wang, Yuesong <[EMAIL PROTECTED]> wrote: > Hi, > > My name is Yuesong Wang. I'm new to Wicket. > > I don't think sl

RE: Reloading resource

2008-02-07 Thread Wang, Yuesong
Hi, My name is Yuesong Wang. I'm new to Wicket. I don't think slf4j has anything to do with it. I have version 1.4.2. Still when I change an html file in Eclipse, tomcat redeploys the whole app. In tomcat console I do see 08:08:15,536 INFO [main] WebApplication - [WebAdrWebApplication] Started