click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r932852 - in /click/trunk/click: documentation/docs/roadmap-changes.html documentation/dtds/menu-2.2.dtd extras/src/org/apache/click/extras/control/MenuFactory.java
Date Sun, 11 Apr 2010 08:13:02 GMT
Author: sabob
Date: Sun Apr 11 08:13:02 2010
New Revision: 932852

URL: http://svn.apache.org/viewvc?rev=932852&view=rev
Log:
added menu dtd and updated roadmap

Added:
    click/trunk/click/documentation/dtds/menu-2.2.dtd
Modified:
    click/trunk/click/documentation/docs/roadmap-changes.html
    click/trunk/click/extras/src/org/apache/click/extras/control/MenuFactory.java

Modified: click/trunk/click/documentation/docs/roadmap-changes.html
URL: http://svn.apache.org/viewvc/click/trunk/click/documentation/docs/roadmap-changes.html?rev=932852&r1=932851&r2=932852&view=diff
==============================================================================
--- click/trunk/click/documentation/docs/roadmap-changes.html (original)
+++ click/trunk/click/documentation/docs/roadmap-changes.html Sun Apr 11 08:13:02 2010
@@ -116,15 +116,36 @@ includes improved Ajax support and @Bind
     <ul style="padding: 0em; margin-left:0em;margin-bottom: 2em">
       <li class="change">
         Added <a href="click-api/org/apache/click/dataprovider/DataProvider.html">DataProvider</a>
-        interface and support in Table class for on demand loading of list data
+        interface and support in Table, Select, PickList and CheckList for
+        on demand loading of data. With DataProviders, users won't have to be
+        concerned about which page event (onInit or onRender) to set the data on
+        the control
         [<a target="_blank" href="https://issues.apache.org/jira/browse/CLK-640">CLK-640</a>].
       </li>
       <li class="change">
         Added <a href="click-api/org/apache/click/dataprovider/PagingDataProvider.html">PagingDataProvider</a>
-        interface to support paginated result sets
+        interface to support large paginated result sets for Tables
         [<a target="_blank" href="https://issues.apache.org/jira/browse/CLK-640">CLK-640</a>].
       </li>
       <li class="change">
+        Added a <a href="extras-api/org/apache/click/extras/control/MenuFactory.html">MenuFactory</a>
+        for creating and loading Menus from <tt>configuration</tt> files. All
the
+        static Menu methods have been deprecated and will be removed in a future release.
+      </li>
+      <li class="change">
+        Added an <a href="extras-api/org/apache/click/extras/control/MenuFactory.html#getRootMenu(boolean)">option</a>
+        for MenuFactory to not statically cache menus. This allows
+        developers to cache menus in different scopes such as HttpSession.
+        [<a target="_blank" href="https://issues.apache.org/jira/browse/CLK-405">CLK-405</a>].
+      </li>
+      <li class="change">
+        Added i18n support for Menus loaded from <tt>menu.xml</tt>. The menu
+        DTD now includes a new <tt>name</tt> attribute. By specifying
+        a <tt>name</tt> attribute in <tt>menu.xml</tt>, the Menu
will attempt to
+        load its <tt>label</tt> and <tt>title</tt> from resource
bundles
+        [<a target="_blank" href="https://issues.apache.org/jira/browse/CLK-591">CLK-591</a>].
+      </li>
+      <li class="change">
         Added improved dynamic Form support. Forms can now optionally bypass
         validation for JavaScript based submissions using the new JavaScript
         function <tt>"Click.submit(formName, validate)"</tt>
@@ -188,6 +209,13 @@ includes improved Ajax support and @Bind
         and <a href="click-api/org/apache/click/Context.html#hasRequestAttribute(java.lang.String)">Context.hasRequestAttribute(String)</a>.
       </li>
       <li class="change">
+        Added support to Select for a <a href="click-api/org/apache/click/control/Select.html#setDefaultOption(org.apache.click.control.Option)">default
option</a>
+        that can be used to validate non selection against and allows the Select
+        to only populate its optionList at rendering time, instead of during
+        <tt>onProcess</tt> event.
+        [<a target="_blank" href="https://issues.apache.org/jira/browse/CLK-???">CLK-???</a>].
+      </li>
+      <li class="change">
         Improved default autobinding mode to bind both public fields and fields
         annotated with @Bindable. In previous versions the default autobinding
         mode only binded public Page fields
@@ -238,6 +266,15 @@ includes improved Ajax support and @Bind
         cannot be retrieved
         [<a target="_blank" href="https://issues.apache.org/jira/browse/CLK-644">CLK-644</a>].
       </li>
+      <li class="change">
+          The menu.dtd has been published to
+          <a href="http://click.apache.org/dtds/menu-2.2.dtd">http://click.apache.org/dtds/menu-2.2.dtd</a>.
+          If you want your configuration to conform to the menu.dtd, include
+          the following declaration in your menu.xml:
+          <pre class="prettyprint">&lt;!DOCTYPE menu PUBLIC
+       "-//Apache Software Foundation//DTD Click Menu 2.2//EN"
+       "http://click.apache.org/dtds/menu-2.2.dtd"&gt; </pre>
+      </li>
     </ul>
   </dd>
 
@@ -500,7 +537,7 @@ includes improved Ajax support and @Bind
           the following declaration in your click.xml:
           <pre class="prettyprint">&lt;!DOCTYPE click-app PUBLIC
        "-//Apache Software Foundation//DTD Click Configuration 2.1//EN"
-       "http://click.apache.org/dtds/click_2_1.dtd"&gt; </pre>
+       "http://click.apache.org/dtds/click-2.1.dtd"&gt; </pre>
       </li>
       <li class="change">
           Improved Form validation to allow Form subclasses to override the

Added: click/trunk/click/documentation/dtds/menu-2.2.dtd
URL: http://svn.apache.org/viewvc/click/trunk/click/documentation/dtds/menu-2.2.dtd?rev=932852&view=auto
==============================================================================
--- click/trunk/click/documentation/dtds/menu-2.2.dtd (added)
+++ click/trunk/click/documentation/dtds/menu-2.2.dtd Sun Apr 11 08:13:02 2010
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+
+<!--
+     DTD for the Click Menu Configuration File, Version 2.2
+
+     To support validation of your configuration file, include the following
+     DOCTYPE element at the beginning (after the "xml" declaration):
+
+     <!DOCTYPE menu PUBLIC
+       "-//Apache Software Foundation//DTD Click Menu 2.2//EN"
+       "http://click.apache.org/dtds/menu-2.2.dtd">
+-->
+
+<!-- The Menu (menu.xml) Document Type Definition. -->
+<!ELEMENT menu (menu*)>
+    <!ATTLIST menu id ID #IMPLIED>
+    <!ATTLIST menu name CDATA #IMPLIED>
+    <!ATTLIST menu label CDATA #IMPLIED>
+    <!ATTLIST menu path CDATA #IMPLIED>
+    <!ATTLIST menu target CDATA #IMPLIED>
+    <!ATTLIST menu title CDATA #IMPLIED>
+    <!ATTLIST menu imageSrc CDATA #IMPLIED>
+    <!ATTLIST menu external (true|false) "false">
+    <!ATTLIST menu separator (true|false) "false">
+    <!ATTLIST menu roles CDATA #IMPLIED>
+    <!ATTLIST menu pages CDATA #IMPLIED>

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/MenuFactory.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/MenuFactory.java?rev=932852&r1=932851&r2=932852&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/MenuFactory.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/MenuFactory.java Sun Apr
11 08:13:02 2010
@@ -232,7 +232,8 @@ public class MenuFactory implements Seri
     /**
      * Return root menu item defined in the WEB-INF/menu.xml or classpath
      * menu.xml, creating menu items using the Menu class and the JEE
-     * RoleAccessController.
+     * RoleAccessController. The cached option specifies whether the loaded
+     * menus will be cached or not.
      *
      * @param cached return the cached menu if in production or profile mode,
      * otherwise create and return a new root menu instance
@@ -262,7 +263,8 @@ public class MenuFactory implements Seri
     /**
      * Return root menu item defined by the given name and fileName under WEB-INF
      * or the classpath, creating menu items using the provided menu class and
-     * AccessController.
+     * AccessController. The cached option specifies whether the loaded
+     * menus will be cached or not.
      * <p/>
      * Example usage:
      * <pre class="prettyprint">



Mime
View raw message