Bob has posted 7 posts at DZone. You can read more from them at their website. View Full User Profile

Apache Click Web Framework 2.1.0-RC1: Java 5, new Bindable Annotation, new Documentation Formats

07.07.2009
| 3373 views |
  • submit to reddit

The Apache Click team is proud to announce the first release candidate of Click 2.1.0. This is our first release that requires Java 5.

Apache Click is a simple page and component oriented Java web framework providing a natural rich client style programming model. Click is stateless by design however stateful Pages are supported. For a quick overview please see the introductory article.

This release includes all bugs fixes from 1.5.2 as well as a slew of new features, examples and documentation. The documentation has been converted to the Docbook format and are made available in three different flavors: PDF, HTML (single page) and HTML (multiple pages).

New features:

  • Added new Calendar popup to DateField. This Calendar popup uses Calendar Date Select which is based on the Prototype JavaScript library. Please note if you don't want a dependency on the Prototype library you can use the third-party Click Calendar instead.
  • Added first class support for HEAD elements such as JavaScript and Css. The following classes were added: Element, ResourceElement, JsImport, JsScript, CssImport and CssStyle. A new method was added to Page and Control: Control.getHeadElements() and Page.getHeadElements() [501].
  • Added SubmitLink control that can submit a Form [519].
  • Added HiddenList control for rendering and submitting a list of hidden fields [491].
  • Added plug-able security access controller (AccessController) to Menu class. This plubable interface enable use of security frameworks such as Spring Security (Acegi) or JSecurity to control user access to Menu items. This issue was raised by Demetrios Kyriakis [406].
  • Added method, ClickUtils.createTemplateModel, that returns a template model containing objects such as the Context path, Page path, HTTP request, HTTP response, HTTP session etc. This method is useful when rendering custom templates.
  • Added ability to specify a custom TreeNode icon through the new method TreeNode.setIcon(String). This issue was raised and fixed by Tim Hooper [494].
  • Added method Format.url for encoding URL's in templates [399].
  • Added method FieldColumn.setProperty that can be overriden to provide custom binding for complex domain objects. This issue was raised and fixed by WarnerJan Veldhuis [528].
  • Added TypeConverter configuration option to ClickServlet. See getTypeConverter() method for details. This issue was raised Joseph Schmidt and fixed by Adrian A. [539].
  • Added Slf4jLogService for supporting multiple application servers. This issue was raised Oliver Burn [555].
  • Added @Bindable annotation support for page field autobinding [556].
  • Improved Page redirect to support parameters. See the new Page methods setRedirect(String, Map) and setRedirect(Class, Map) This issue was raised and fixed by Adrian [536].
  • Improved Link Controls to support multivalued parameters through the new AbstractLink methods getParameterValues() and setParameterValues() [554].
  • Improved Table to support very large datasets by promoting the methods getFirstRow() and getLastRow() as public. These methods provide the necessary information to only retrieve the displayed rows [504].
  • Improved LinkDecorator to support target identfier property parameter names. This issue was raised by Demetrios Kyriakis and fixed by fixed by Adrian A. [400].
  • Improved PickList methods getValueObject() and setValueObject(Object) to delegate to getSelectedValues() and addSelectedValue(String) respectively [490].
  • Improved Spring integration with SpringClickServlet and PageScopeResolver, supporting Spring instantiated Pages with @Component configuration [534].
  • Improved CompressionServletResponseWrapper and CompressionResponseStream classes to have public visibility to enable use in custom servlet Filters [547].
  • Improved Menu control to render attribute class="selected" when the menu item is selected. This issue was raised and fixed by Frederic Daoud [551].
  • Improved PerformanceFilter to implement exclude-paths filtering [498].
  • Improved XmlConfigService to scan for deployable resources inside folders on the classpath [552].
  • Improved Cayenne DataContextFilter, including adding support for LifecycleListener registration [559].
  • Fixed PerformanceFilter and CompressionFilter to properly handle requests [557].

Deprecated:

Updated third-party libraries:
  • Update Velocity library to version 1.6.2.
  • Update Cayenne library to version 3.0M6.
  • Update Prototype.js library to version 1.6.1_RC2.

New Documentation:

New examples:

Enjoy.

- The Click team

---

Apache Click is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
0
Published at DZone with permission of its author, Bob Schellink.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)