Return-Path: Delivered-To: apmail-click-commits-archive@www.apache.org Received: (qmail 14016 invoked from network); 30 Jun 2010 14:30:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Jun 2010 14:30:00 -0000 Received: (qmail 75935 invoked by uid 500); 30 Jun 2010 14:30:00 -0000 Delivered-To: apmail-click-commits-archive@click.apache.org Received: (qmail 75920 invoked by uid 500); 30 Jun 2010 14:30:00 -0000 Mailing-List: contact commits-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@click.apache.org Delivered-To: mailing list commits@click.apache.org Received: (qmail 75904 invoked by uid 99); 30 Jun 2010 14:30:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jun 2010 14:30:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jun 2010 14:29:57 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C50FD2388A02; Wed, 30 Jun 2010 14:29:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r959329 - in /click/trunk/click/documentation/docs: roadmap-changes.html upgrade-path.html Date: Wed, 30 Jun 2010 14:29:03 -0000 To: commits@click.apache.org From: sabob@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100630142903.C50FD2388A02@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sabob Date: Wed Jun 30 14:29:03 2010 New Revision: 959329 URL: http://svn.apache.org/viewvc?rev=959329&view=rev Log: roadmap Modified: click/trunk/click/documentation/docs/roadmap-changes.html click/trunk/click/documentation/docs/upgrade-path.html Modified: click/trunk/click/documentation/docs/roadmap-changes.html URL: http://svn.apache.org/viewvc/click/trunk/click/documentation/docs/roadmap-changes.html?rev=959329&r1=959328&r2=959329&view=diff ============================================================================== --- click/trunk/click/documentation/docs/roadmap-changes.html (original) +++ click/trunk/click/documentation/docs/roadmap-changes.html Wed Jun 30 14:29:03 2010 @@ -79,6 +79,10 @@ includes improved Ajax support and @Bind
Latest Release - Version 2.3.0 Milestone 1 - ?? July 2010
+
+ IMPORTANT: be sure to read the upgrade path + when upgrading from previous releases. +
New examples:
@@ -88,6 +92,44 @@ includes improved Ajax support and @Bind [CLK-544]. + +
+ Deprecated: +
+
New features and issues resolved:
@@ -134,8 +176,7 @@ Select.setAttribute("onchange", "Click.s [CLK-705].
  • - Added a strict parameter binding strategy for AbstractLink and - ActionButton. This option restricts incoming parameters to be + Deprecated added only to explicitly defined parameters. By default this option will be true for ajax requests, false for non-ajax requests [CLK-685]. @@ -181,7 +222,7 @@ Select.setAttribute("onchange", "Click.s
    - IMPORTANT: be sure to read the upgrade path + IMPORTANT: be sure to read the upgrade path when upgrading from previous releases.

    Its worth highlighting that in this release we have removed the deprecated methods Modified: click/trunk/click/documentation/docs/upgrade-path.html URL: http://svn.apache.org/viewvc/click/trunk/click/documentation/docs/upgrade-path.html?rev=959329&r1=959328&r2=959329&view=diff ============================================================================== --- click/trunk/click/documentation/docs/upgrade-path.html (original) +++ click/trunk/click/documentation/docs/upgrade-path.html Wed Jun 30 14:29:03 2010 @@ -84,7 +84,57 @@ versions please email the Click user gro

    • - 2.3.0 is backwards compatible with 2.2.0. + AbstractLink binds all incoming request parameters to its own parameter map. + There are a number of pitfalls binding parameters to links, namely: +
        +
      • + all parameters are bound to the link, even unwanted parameters. This + becomes prevalent when replacing the default link behavior + with Ajax requests. The Ajax parameters are bound to link + parameters, leading to links that render parameters not meant for + that link +
      • +
      • + it can lead to memory leaks in stateful pages +
      • +
      + If you are using one of the deprecated getter methods, you can + simply replace it with their Context counterparts: + + Before: +
      +public void onGet() {
      +    if (link.isClicked()) {
      +        String value = link.getValue();
      +        String id = link.getParameter("id");
      +        String[] myArray = link.getParameterValues("myArray");
      +    }
      +}
      +
      + After: +
      +public void onGet() {
      +    if (link.isClicked()) {
      +        Context context = getContext();
      +        String value = link.getValue();
      +        String id = context.getRequestParameter("id");
      +        String[] myArray = context.getRequestParameterValues("myArray");
      +    }
      +}
      +
    • The DateField control now accepts month and day names spelled in the