+1 on that. And use EnumeratedType instead, so we can say

public AjaxEventBehavoir(ClientEvent event)

Frank

On 4/27/07, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:

On Wed, 25 Apr 2007, Johan Compagner wrote:
> then you could maybe point us to a feature that was in 2.0 but is
overlooked
> by use to backport

The ClientEvent enum


http://svn.sourceforge.net/viewvc/wicket/trunk/wicket/src/java/wicket/ajax/ClientEvent.java?view=markup

was in 2.0 but does not exist in 1.3.0.

It's not a big deal, but would be trivial to backport
to Java 1.4 with String constants

public enum ClientEvent {
        /**
         * Matches the onabort event
         */
        ABORT("onabort"),

=>

public class ClientEvent {
    public static final String ABORT = "onabort";
...

- Timo

--
Timo Rantalaiho
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

Reply via email to