Archive for August 22nd, 2005

Wicket 1.0.2 released

Monday, August 22nd, 2005

The Wicket team is pleased to announce the Wicket 1.0.2 release!

http://wicket.sourceforge.net

Wicket is a Java web application framework that takes simplicity, separation of concerns and ease of development to a whole new level. Wicket pages can be mocked up, previewed and later revised using standard WYSIWYG HTML design tools. Dynamic content processing and form handling is all handled in Java code using a first-class component model backed by POJO data beans that can easily be persisted using your favourite technology.

This release fixes some bugs, and with that introduces one API breaking change.The API change involves the IResourceStreamLocator interface, where the locate method now takes a ClassLoader as an extra parameter. Passing in null will use the context classloader.

So while this is a maintenance release, please make sure your code still compiles with this release.

Changes in this version include:

Fixed bugs:

  • newChoiceItem does not use object parameter but selects directly from list Issue: 1263892. Thanks to Arjan Zwaan.
  • Backport: AbstractDetachableModel doesn’t propogate attach/detach Issue: 1253113.
  • Backport: serialization bug in LocalizedImageResource
  • Backport: possible NullPointerException in DynamicImageResource.getResourceStream()
  • Backport: catch if session is saved to disk and reloaded again but locale is changed
  • fix for classloading problems that caused problems loading markup/ resources for components that were loaded by another classloader than the current one.
  • Backport: closed FileOutputStream in wicket.util.file.Files in finally block

Have fun!

-The wicket team

Do Wicket and Ajax Rhyme?

Monday, August 22nd, 2005

Wicket inspires a lot of people to write nice, clean web applications. Now the code_poet has written a nice poem about Wicket and AJAX. It has good metrum and it shows that even though AJAX support is still crude, Wicket and AJAX rhyme!

Ryan Sonnek has published a Auto Complete TextField component for Wicket using AJAX. Although the component code is a bit complex, the usage of the component has the Wicket feel all over it.

How would you like to use a full fledged AJAX component with no more code than:

And Java:

AutocompleteResultGenerator searcher =
    new AutocompleteResultGenerator() {
        public String[] getResults(String input) {
            return new String[] {”Bob”, “Jamie”, “Eric”};
        }
    };
form.add(new AutoCompleteTextField(”email”, searcher));

That would be awesome, wouldn’t it? With Wicket this is possible.