You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sc...@apache.org on 2005/06/29 03:38:24 UTC

svn commit: r202305 - in /myfaces/sandbox/trunk: conf/ conf/faces-config.xml tld/ tld/entities/ tld/entities/html_input_suggest_attributes.xml tld/myfaces_sandbox.tld

Author: schof
Date: Tue Jun 28 18:38:22 2005
New Revision: 202305

URL: http://svn.apache.org/viewcvs?rev=202305&view=rev
Log:
initial commit of new sandbox component: inputSuggest

Added:
    myfaces/sandbox/trunk/conf/
    myfaces/sandbox/trunk/conf/faces-config.xml
    myfaces/sandbox/trunk/tld/entities/
    myfaces/sandbox/trunk/tld/entities/html_input_suggest_attributes.xml
    myfaces/sandbox/trunk/tld/myfaces_sandbox.tld
Modified:
    myfaces/sandbox/trunk/tld/   (props changed)

Added: myfaces/sandbox/trunk/conf/faces-config.xml
URL: http://svn.apache.org/viewcvs/myfaces/sandbox/trunk/conf/faces-config.xml?rev=202305&view=auto
==============================================================================
--- myfaces/sandbox/trunk/conf/faces-config.xml (added)
+++ myfaces/sandbox/trunk/conf/faces-config.xml Tue Jun 28 18:38:22 2005
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<!DOCTYPE faces-config PUBLIC
+ "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+
+<!--
+ * Copyright 2004-2005 The Apache Software Foundation.
+ *
+ * Licensed 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.
+-->
+
+<faces-config xmlns="http://java.sun.com/JSF/Configuration">
+
+  <!-- sandbox components -->
+
+  <!-- sandbox renderkit -->
+
+  <render-kit>
+
+    <render-kit-id>HTML_BASIC</render-kit-id>
+
+    <!-- extended standard renderers -->
+
+    <!-- custom component renderers -->
+    <renderer>
+      <component-family>javax.faces.Input</component-family>
+      <renderer-type>org.apache.myfaces.InputSuggest</renderer-type>
+      <renderer-class>org.apache.myfaces.custom.suggest.InputSuggestRenderer</renderer-class>
+    </renderer>
+
+    <!--custom validators -->
+
+  </render-kit>
+</faces-config>

Propchange: myfaces/sandbox/trunk/tld/
------------------------------------------------------------------------------
--- svn:externals (added)
+++ svn:externals Tue Jun 28 18:38:22 2005
@@ -0,0 +1,2 @@
+entities-share https://svn.apache.org/repos/asf/myfaces/impl/trunk/tld/entities
+misc           https://svn.apache.org/repos/asf/myfaces/impl/trunk/tld/misc

Added: myfaces/sandbox/trunk/tld/entities/html_input_suggest_attributes.xml
URL: http://svn.apache.org/viewcvs/myfaces/sandbox/trunk/tld/entities/html_input_suggest_attributes.xml?rev=202305&view=auto
==============================================================================
--- myfaces/sandbox/trunk/tld/entities/html_input_suggest_attributes.xml (added)
+++ myfaces/sandbox/trunk/tld/entities/html_input_suggest_attributes.xml Tue Jun 28 18:38:22 2005
@@ -0,0 +1,14 @@
+        <!--
+        This attribute indicates that the component should be forced to use the specified id instead of
+        using the one that faces generates.  Components contained within a "list" will include a '[n]'
+        suffix where 'n' is the row index (unless the forceIdIndex attribute is set to false).
+        -->
+        <!--
+        <attribute>
+            <name>forceId</name>
+            <required>false</required>
+            <rtexprvalue>false</rtexprvalue>
+            <type>java.lang.String</type>
+            <description>If true, this component will force the use of the specified id when rendering.</description>
+        </attribute>
+        -->

Added: myfaces/sandbox/trunk/tld/myfaces_sandbox.tld
URL: http://svn.apache.org/viewcvs/myfaces/sandbox/trunk/tld/myfaces_sandbox.tld?rev=202305&view=auto
==============================================================================
--- myfaces/sandbox/trunk/tld/myfaces_sandbox.tld (added)
+++ myfaces/sandbox/trunk/tld/myfaces_sandbox.tld Tue Jun 28 18:38:22 2005
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<!--
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed 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.
+-->
+
+<!DOCTYPE taglib
+  PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+  "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd" [
+
+<!--
+===========================================================================
+Shared Entities.  These entities already exist in the impl and tomahawk
+packages.  They are reproduced here so the TLD can function as it would if
+the component were added to the tomahawk project.  Developers should not be
+changing these.  All new entities for sandbox components should be added to
+the entities directory.
+===========================================================================
+-->
+
+<!ENTITY display_value_only_attributes  SYSTEM "entities-share/display_value_only_attributes.xml">
+<!ENTITY ext_forceId_attribute          SYSTEM "entities-share/ext_forceId_attribute.xml">
+<!ENTITY html_anchor_attributes         SYSTEM "entities-share/html_anchor_attributes.xml">
+<!ENTITY html_button_attributes         SYSTEM "entities-share/html_button_attributes.xml">
+<!ENTITY html_event_handler_attributes  SYSTEM "entities-share/html_event_handler_attributes.xml">
+<!ENTITY html_form_attributes           SYSTEM "entities-share/html_form_attributes.xml">
+<!ENTITY html_img_attributes            SYSTEM "entities-share/html_img_attributes.xml">
+<!ENTITY html_input_attributes          SYSTEM "entities-share/html_input_attributes.xml">
+<!ENTITY html_input_help_attributes     SYSTEM "entities-share/html_input_help_attributes.xml">
+<!ENTITY html_input_checkbox_attributes SYSTEM "entities-share/html_input_checkbox_attributes.xml">
+<!ENTITY html_input_radio_attributes    SYSTEM "entities-share/html_input_radio_attributes.xml">
+<!ENTITY html_label_attributes          SYSTEM "entities-share/html_label_attributes.xml">
+<!ENTITY html_select_attributes         SYSTEM "entities-share/html_select_attributes.xml">
+<!ENTITY html_table_attributes          SYSTEM "entities-share/html_table_attributes.xml">
+<!ENTITY html_textarea_attributes       SYSTEM "entities-share/html_textarea_attributes.xml">
+<!ENTITY html_universal_attributes      SYSTEM "entities-share/html_universal_attributes.xml">
+<!ENTITY ui_column_attributes           SYSTEM "entities-share/ui_column_attributes.xml">
+<!ENTITY ui_command_attributes          SYSTEM "entities-share/ui_command_attributes.xml">
+<!ENTITY ui_component_attributes        SYSTEM "entities-share/ui_component_attributes.xml">
+<!ENTITY ui_form_attributes             SYSTEM "entities-share/ui_form_attributes.xml">
+<!ENTITY ui_graphic_attributes          SYSTEM "entities-share/ui_graphic_attributes.xml">
+<!ENTITY ui_input_attributes            SYSTEM "entities-share/ui_input_attributes.xml">
+<!ENTITY ui_message_attributes          SYSTEM "entities-share/ui_message_attributes.xml">
+<!ENTITY ui_messages_attributes         SYSTEM "entities-share/ui_messages_attributes.xml">
+<!ENTITY ui_output_attributes           SYSTEM "entities-share/ui_output_attributes.xml">
+<!ENTITY ui_panel_attributes            SYSTEM "entities-share/ui_panel_attributes.xml">
+<!ENTITY ui_parameter_attributes        SYSTEM "entities-share/ui_parameter_attributes.xml">
+<!ENTITY ui_select_boolean_attributes   SYSTEM "entities-share/ui_select_boolean_attributes.xml">
+<!ENTITY ui_select_item_attributes      SYSTEM "entities-share/ui_select_item_attributes.xml">
+<!ENTITY ui_select_items_attributes     SYSTEM "entities-share/ui_select_items_attributes.xml">
+<!ENTITY ui_select_many_attributes      SYSTEM "entities-share/ui_select_many_attributes.xml">
+<!ENTITY ui_select_one_attributes       SYSTEM "entities-share/ui_select_one_attributes.xml">
+<!ENTITY user_role_attributes           SYSTEM "entities-share/user_role_attributes.xml">
+<!ENTITY standard_command_button_attributes  SYSTEM "entities-share/standard_command_button_attributes.xml">
+<!ENTITY standard_command_link_attributes    SYSTEM "entities-share/standard_command_link_attributes.xml">
+<!ENTITY standard_data_table_attributes      SYSTEM "entities-share/standard_data_table_attributes.xml">
+<!ENTITY standard_input_text_attributes      SYSTEM "entities-share/standard_input_text_attributes.xml">
+<!ENTITY standard_input_textarea_attributes  SYSTEM "entities-share/standard_input_textarea_attributes.xml">
+<!ENTITY standard_message_attributes         SYSTEM "entities-share/standard_message_attributes.xml">
+<!ENTITY standard_messages_attributes        SYSTEM "entities-share/standard_messages_attributes.xml">
+<!ENTITY standard_output_label_attributes    SYSTEM "entities-share/standard_output_label_attributes.xml">
+<!ENTITY standard_output_text_attributes     SYSTEM "entities-share/standard_output_text_attributes.xml">
+<!ENTITY standard_panel_grid_attributes     SYSTEM "entities-share/standard_panel_grid_attributes.xml">
+<!ENTITY standard_panel_group_attributes     SYSTEM "entities-share/standard_panel_group_attributes.xml">
+<!ENTITY standard_select_boolean_checkbox_attributes  SYSTEM "entities-share/standard_select_boolean_checkbox_attributes.xml">
+<!ENTITY standard_select_many_checkbox_attributes SYSTEM "entities-share/standard_select_many_checkbox_attributes.xml">
+<!ENTITY standard_select_many_listbox_attributes SYSTEM "entities-share/standard_select_many_listbox_attributes.xml">
+<!ENTITY standard_select_many_menu_attributes SYSTEM "entities-share/standard_select_many_menu_attributes.xml">
+<!ENTITY standard_select_one_listbox_attributes SYSTEM "entities-share/standard_select_one_listbox_attributes.xml">
+<!ENTITY standard_select_one_menu_attributes SYSTEM "entities-share/standard_select_one_menu_attributes.xml">
+<!ENTITY standard_select_one_radio_attributes SYSTEM "entities-share/standard_select_one_radio_attributes.xml">
+<!ENTITY alt_location_attributes             SYSTEM "entities-share/alt_location_attributes.xml">
+
+<!--
+===========================================================================
+Sandbox-related entities.
+===========================================================================
+-->
+<!ENTITY html_input_suggest_attributes       SYSTEM "entities/html_input_suggest_attributes.xml">
+]>
+
+<taglib>
+
+    <tlib-version>0.9.0</tlib-version>
+    <jsp-version>1.2</jsp-version>
+    <short-name>x</short-name>
+    <uri>http://myfaces.apache.org/extensions</uri>
+    <description>
+        Enhanced standard JSP actions and custom MyFaces actions.
+    </description>
+
+    <!-- inputSuggest -->
+    <tag>
+        <name>inputSuggest</name>
+        <tag-class>org.apache.myfaces.custom.suggest.InputSuggestTag</tag-class>
+        <body-content>JSP</body-content>
+        <description>
+            Provides an input textbox with "suggest" functionality.
+        </description>
+        &standard_input_text_attributes;
+        &ext_forceId_attribute;
+        &alt_location_attributes;
+        &html_input_suggest_attributes;
+    </tag>
+
+</taglib>