You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ar...@apache.org on 2009/12/16 23:45:47 UTC

svn commit: r891462 - in /myfaces/trinidad/branches/ar_clientBehaviors: ./ trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/ trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/ ...

Author: arobinson74
Date: Wed Dec 16 22:45:46 2009
New Revision: 891462

URL: http://svn.apache.org/viewvc?rev=891462&view=rev
Log:
Checkpoint

Added:
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/InvokeFunctionBehavior.java   (with props)
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/render/
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/render/InvokeFunctionBehaviorRenderer.java   (with props)
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/tr-demo.taglib.xml   (with props)
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/demos/clientBehaviorHolder.xhtml   (with props)
Modified:
    myfaces/trinidad/branches/ar_clientBehaviors/pom.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandButton.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandLink.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandNavigationItem.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputColor.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputDate.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputFile.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputListOfValues.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputNumberSpinbox.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputText.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectBooleanCheckbox.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectBooleanRadio.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyCheckbox.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyListbox.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyShuttle.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneChoice.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneListbox.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneRadio.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOrderShuttle.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/faces-config.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/web.xml
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/demos/demos.jspx
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/GlobalConfiguratorImpl.java
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/LazyValueExpression.java
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/RenderKitDecorator.java
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java
    myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js

Modified: myfaces/trinidad/branches/ar_clientBehaviors/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/pom.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/pom.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/pom.xml Wed Dec 16 22:45:46 2009
@@ -61,7 +61,7 @@
     <!-- Plugins -->
     <trinidad-plugins.version>2.0.0-SNAPSHOT</trinidad-plugins.version>
     <wagon-plugin.version>1.0.6</wagon-plugin.version>
-    <jetty-plugin.version>6.1.16</jetty-plugin.version>
+    <jetty-plugin.version>6.1.21</jetty-plugin.version>
     <pluto.version>1.1.6</pluto.version>
     <pluto.package>org.apache.pluto</pluto.package>
     

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandButton.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandButton.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandButton.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandButton.xml Wed Dec 16 22:45:46 2009
@@ -179,7 +179,7 @@
       <mfp:component-metadata/>
       <mfp:uix2-local-name>button</mfp:uix2-local-name>
       <fmd:default-event-name>click</fmd:default-event-name>
-      <fmd:event-names>click dblclick mousedown mouseup mouseover mousemove mouseout
+      <fmd:event-names>action click dblclick mousedown mouseup mouseover mousemove mouseout
         keypress keydown keyup</fmd:event-names>
       <fmd:component-metadata>
         <fmd:allowed-child-components>NONE</fmd:allowed-child-components>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandLink.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandLink.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandLink.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandLink.xml Wed Dec 16 22:45:46 2009
@@ -145,7 +145,7 @@
       <mfp:component-metadata/>
       <mfp:uix2-local-name>link</mfp:uix2-local-name>
       <fmd:default-event-name>click</fmd:default-event-name>
-      <fmd:event-names>click dblclick mousedown mouseup mouseover mousemove mouseout
+      <fmd:event-names>action click dblclick mousedown mouseup mouseover mousemove mouseout
         keypress keydown keyup blur focus</fmd:event-names>
       <fmd:component-metadata>
         <fmd:default-property>text</fmd:default-property>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandNavigationItem.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandNavigationItem.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandNavigationItem.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreCommandNavigationItem.xml Wed Dec 16 22:45:46 2009
@@ -212,7 +212,7 @@
       <mfp:component-metadata/>
       <mfp:uix2-local-name>commandNavigationItem</mfp:uix2-local-name>
       <fmd:default-event-name>click</fmd:default-event-name>
-      <fmd:event-names>click dblclick mousedown mouseup mouseover mousemove mouseout
+      <fmd:event-names>action click dblclick mousedown mouseup mouseover mousemove mouseout
         keypress keydown keyup</fmd:event-names>
       <fmd:component-metadata>
         <fmd:default-property>text</fmd:default-property>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputColor.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputColor.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputColor.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputColor.xml Wed Dec 16 22:45:46 2009
@@ -260,7 +260,7 @@
       <mfp:uix2-local-name>inputColor</mfp:uix2-local-name>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur</fmd:event-names>
+        keypress keydown keyup focus blur valueChange</fmd:event-names>
       <fmd:component-metadata>
         <fmd:allowed-child-components>NONE</fmd:allowed-child-components>
         <fmd:default-property>label</fmd:default-property>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputDate.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputDate.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputDate.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputDate.xml Wed Dec 16 22:45:46 2009
@@ -249,7 +249,7 @@
       <mfp:uix2-local-name>inputDate</mfp:uix2-local-name>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur</fmd:event-names>
+        keypress keydown keyup focus blur valueChange</fmd:event-names>
       <fmd:component-metadata>
         <fmd:allowed-child-components>NONE</fmd:allowed-child-components>
         <fmd:default-property>label</fmd:default-property>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputFile.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputFile.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputFile.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputFile.xml Wed Dec 16 22:45:46 2009
@@ -192,7 +192,7 @@
       <mfp:uix2-local-name>inputFile</mfp:uix2-local-name>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur select</fmd:event-names>
+        keypress keydown keyup focus blur select valueChange</fmd:event-names>
       <fmd:component-metadata>
         <fmd:allowed-child-components>NONE</fmd:allowed-child-components>
         <fmd:default-property>label</fmd:default-property>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputListOfValues.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputListOfValues.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputListOfValues.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputListOfValues.xml Wed Dec 16 22:45:46 2009
@@ -272,7 +272,7 @@
       <mfp:uix2-local-name>inputListOfValues</mfp:uix2-local-name>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur select</fmd:event-names>
+        keypress keydown keyup focus blur select valueChange</fmd:event-names>
       <fmd:component-metadata>
         <fmd:allowed-child-components>NONE</fmd:allowed-child-components>
         <fmd:default-property>label</fmd:default-property>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputNumberSpinbox.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputNumberSpinbox.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputNumberSpinbox.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputNumberSpinbox.xml Wed Dec 16 22:45:46 2009
@@ -316,7 +316,7 @@
       </mfp:component-metadata>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur select</fmd:event-names>
+        keypress keydown keyup focus blur select valueChange</fmd:event-names>
       <fmd:component-metadata>
         <fmd:allowed-child-components>NONE</fmd:allowed-child-components>
         <fmd:default-property>label</fmd:default-property>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputText.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputText.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputText.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreInputText.xml Wed Dec 16 22:45:46 2009
@@ -375,7 +375,7 @@
       <mfp:uix2-local-name>inputText</mfp:uix2-local-name>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur select</fmd:event-names>
+        keypress keydown keyup focus blur select valueChange</fmd:event-names>
       <fmd:component-metadata>
         <fmd:allowed-child-components>NONE</fmd:allowed-child-components>
         <fmd:default-property>label</fmd:default-property>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectBooleanCheckbox.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectBooleanCheckbox.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectBooleanCheckbox.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectBooleanCheckbox.xml Wed Dec 16 22:45:46 2009
@@ -198,7 +198,7 @@
       <mfp:uix2-local-name>selectBooleanCheckbox</mfp:uix2-local-name>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur</fmd:event-names>
+        keypress keydown keyup focus blur valueChange</fmd:event-names>
       <fmd:component-metadata>
         <fmd:allowed-child-components>NONE</fmd:allowed-child-components>
         <fmd:default-property>text</fmd:default-property>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectBooleanRadio.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectBooleanRadio.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectBooleanRadio.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectBooleanRadio.xml Wed Dec 16 22:45:46 2009
@@ -217,7 +217,7 @@
       <mfp:uix2-local-name>selectBooleanRadio</mfp:uix2-local-name>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur</fmd:event-names>
+        keypress keydown keyup focus blur valueChange</fmd:event-names>
       <fmd:component-metadata>
         <fmd:allowed-child-components>NONE</fmd:allowed-child-components>
         <fmd:expert>true</fmd:expert>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyCheckbox.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyCheckbox.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyCheckbox.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyCheckbox.xml Wed Dec 16 22:45:46 2009
@@ -218,7 +218,7 @@
       <mfp:uix2-local-name>selectManyCheckbox</mfp:uix2-local-name>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur</fmd:event-names>
+        keypress keydown keyup focus blur valueChange</fmd:event-names>
       <fmd:component-metadata>
         <fmd:default-property>label</fmd:default-property>
         <fmd:preferred-child-components>org.apache.myfaces.trinidad.CoreSelectItem</fmd:preferred-child-components>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyListbox.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyListbox.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyListbox.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyListbox.xml Wed Dec 16 22:45:46 2009
@@ -221,7 +221,7 @@
       <mfp:uix2-local-name>listbox</mfp:uix2-local-name>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur</fmd:event-names>
+        keypress keydown keyup focus blur valueChange</fmd:event-names>
       <fmd:component-metadata>
         <fmd:default-property>label</fmd:default-property>
         <fmd:preferred-child-components>org.apache.myfaces.trinidad.CoreSelectItem</fmd:preferred-child-components>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyShuttle.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyShuttle.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyShuttle.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectManyShuttle.xml Wed Dec 16 22:45:46 2009
@@ -357,7 +357,7 @@
       <mfp:author>Marissa Treinen</mfp:author>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur</fmd:event-names>
+        keypress keydown keyup focus blur valueChange</fmd:event-names>
       <mfp:component-metadata>
         <mfp:unsupported-agents>pda phone voice</mfp:unsupported-agents>
       </mfp:component-metadata>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneChoice.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneChoice.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneChoice.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneChoice.xml Wed Dec 16 22:45:46 2009
@@ -217,7 +217,7 @@
       <mfp:uix2-local-name>selectOneChoice</mfp:uix2-local-name>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur</fmd:event-names>
+        keypress keydown keyup focus blur valueChange</fmd:event-names>
       <fmd:component-metadata>
         <fmd:default-property>label</fmd:default-property>
         <fmd:preferred-child-components>org.apache.myfaces.trinidad.CoreSelectItem</fmd:preferred-child-components>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneListbox.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneListbox.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneListbox.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneListbox.xml Wed Dec 16 22:45:46 2009
@@ -230,7 +230,7 @@
       <mfp:uix2-local-name>listbox</mfp:uix2-local-name>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur</fmd:event-names>
+        keypress keydown keyup focus blur valueChange</fmd:event-names>
       <fmd:component-metadata>
         <fmd:default-property>label</fmd:default-property>
         <fmd:preferred-child-components>org.apache.myfaces.trinidad.CoreSelectItem</fmd:preferred-child-components>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneRadio.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneRadio.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneRadio.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOneRadio.xml Wed Dec 16 22:45:46 2009
@@ -234,7 +234,7 @@
       <mfp:uix2-local-name>selectOneRadio</mfp:uix2-local-name>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur</fmd:event-names>
+        keypress keydown keyup focus blur valueChange</fmd:event-names>
       <fmd:component-metadata>
         <fmd:default-property>label</fmd:default-property>
         <fmd:preferred-child-components>org.apache.myfaces.trinidad.CoreSelectItem</fmd:preferred-child-components>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOrderShuttle.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOrderShuttle.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOrderShuttle.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-build/src/main/resources/META-INF/maven-faces-plugin/components/trinidad/core/CoreSelectOrderShuttle.xml Wed Dec 16 22:45:46 2009
@@ -210,7 +210,7 @@
       <mfp:author>Marissa Treinen</mfp:author>
       <fmd:default-event-name>change</fmd:default-event-name>
       <fmd:event-names>change click dblclick mousedown mouseup mouseover mousemove mouseout
-        keypress keydown keyup focus blur</fmd:event-names>
+        keypress keydown keyup focus blur valueChange</fmd:event-names>
       <mfp:component-metadata>
         <mfp:unsupported-agents>pda phone voice</mfp:unsupported-agents>
       </mfp:component-metadata>

Added: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/InvokeFunctionBehavior.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/InvokeFunctionBehavior.java?rev=891462&view=auto
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/InvokeFunctionBehavior.java (added)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/InvokeFunctionBehavior.java Wed Dec 16 22:45:46 2009
@@ -0,0 +1,27 @@
+package org.apache.myfaces.trinidaddemo.behaviors;
+
+import javax.faces.component.behavior.ClientBehaviorBase;
+
+// Not using annotation so that Jetty can be used un-exploded
+//@FacesBehavior("invoke-function")
+public class InvokeFunctionBehavior
+  extends ClientBehaviorBase
+{
+  @Override
+  public String getRendererType()
+  {
+    return "invoke-function";
+  }
+
+  public String getFunction()
+  {
+    return _function;
+  }
+
+  public void setFunction(String function)
+  {
+    this._function = function;
+  }
+
+  private String _function;
+}

Propchange: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/InvokeFunctionBehavior.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/render/InvokeFunctionBehaviorRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/render/InvokeFunctionBehaviorRenderer.java?rev=891462&view=auto
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/render/InvokeFunctionBehaviorRenderer.java (added)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/render/InvokeFunctionBehaviorRenderer.java Wed Dec 16 22:45:46 2009
@@ -0,0 +1,30 @@
+package org.apache.myfaces.trinidaddemo.behaviors.render;
+
+import javax.faces.component.behavior.ClientBehavior;
+import javax.faces.component.behavior.ClientBehaviorContext;
+import javax.faces.render.ClientBehaviorRenderer;
+
+import org.apache.myfaces.trinidaddemo.behaviors.InvokeFunctionBehavior;
+
+
+// Not using annotation so that Jetty can be used un-exploded
+//@FacesBehaviorRenderer(
+//  renderKitId = "org.apache.myfaces.trinidad.core",
+//  rendererType = "invoke-function")
+public class InvokeFunctionBehaviorRenderer
+  extends ClientBehaviorRenderer
+{
+  @Override
+  public String getScript(
+    ClientBehaviorContext clientBehaviorContext,
+    ClientBehavior        clientBehavior)
+  {
+    InvokeFunctionBehavior behavior = (InvokeFunctionBehavior)clientBehavior;
+    String function = behavior.getFunction();
+    return new StringBuilder(10 + function.length())
+      .append("return ")
+      .append(function)
+      .append("();")
+      .toString();
+  }
+}

Propchange: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/behaviors/render/InvokeFunctionBehaviorRenderer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/faces-config.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/faces-config.xml Wed Dec 16 22:45:46 2009
@@ -69,6 +69,16 @@
     </locale-config>
 
   </application>
+
+  <!-- behaviors -->
+
+  <behavior>
+    <behavior-id>invoke-function</behavior-id>
+    <behavior-class>org.apache.myfaces.trinidaddemo.behaviors.InvokeFunctionBehavior</behavior-class>
+  </behavior>
+
+  <!-- components -->
+
   <component>
     <component-type>org.apache.myfaces.trinidaddemo.DateField</component-type>
     <component-class>org.apache.myfaces.trinidaddemo.composite.DateField</component-class>
@@ -80,6 +90,13 @@
       <renderer-type>org.apache.myfaces.trinidaddemo.DateField</renderer-type>
       <renderer-class>org.apache.myfaces.trinidaddemo.composite.DateFieldAsRenderer</renderer-class>
     </renderer>
+
+    <client-behavior-renderer>
+      <client-behavior-renderer-type>invoke-function</client-behavior-renderer-type>
+      <client-behavior-renderer-class>
+        org.apache.myfaces.trinidaddemo.behaviors.render.InvokeFunctionBehaviorRenderer
+      </client-behavior-renderer-class>
+    </client-behavior-renderer>
   </render-kit>
 
   <converter>

Added: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/tr-demo.taglib.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/tr-demo.taglib.xml?rev=891462&view=auto
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/tr-demo.taglib.xml (added)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/tr-demo.taglib.xml Wed Dec 16 22:45:46 2009
@@ -0,0 +1,34 @@
+<?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.
+
+-->
+<facelet-taglib
+  xmlns="http://java.sun.com/xml/ns/javaee"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+    http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd"
+  version="2.0">
+  <namespace>http://myfaces.apache.org/trinidad/demo</namespace>
+  <tag>
+    <tag-name>invokeFunctionBehavior</tag-name>
+    <behavior>
+      <behavior-id>invoke-function</behavior-id>
+    </behavior>
+  </tag>
+</facelet-taglib>

Propchange: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/tr-demo.taglib.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/web.xml?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/WEB-INF/web.xml Wed Dec 16 22:45:46 2009
@@ -16,12 +16,18 @@
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.
-     
+
 -->
 <web-app xmlns="http://java.sun.com/xml/ns/javaee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
          version="2.5">
+
+  <context-param>
+    <param-name>javax.faces.PROJECT_STAGE</param-name>
+    <param-value>Development</param-value>
+  </context-param>
+
   <!-- Use client-side state saving.  In Trinidad, it is an
        optimized, token-based mechanism that is almost always a
        better choice than the standard JSF server-side state saving. -->
@@ -73,7 +79,7 @@
     <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
     <param-value>false</param-value>
   </context-param>
-<!-- Uncomment this if you are debugging skinning and want the styleclasses to not be compressed  
+<!-- Uncomment this if you are debugging skinning and want the styleclasses to not be compressed
 <context-param>
  <param-name>org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION</param-name>
  <param-value>true</param-value>
@@ -96,14 +102,14 @@
        Change Persistence is entirely disabled. The ChangeManager is
        an API, which can persist component modifications (like,
        is a showDetail or tree expanded or collapsed). For providing
-       a custom Change Persistence implementation inherit from the 
-       Trinidad API's ChangeManager class. As the value you have 
+       a custom Change Persistence implementation inherit from the
+       Trinidad API's ChangeManager class. As the value you have
        to use the fullqualified class name. -->
   <context-param>
     <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
     <param-value>session</param-value>
   </context-param>
-  
+
   <context-param>
     <param-name>org.apache.myfaces.trinidad.resource.DEBUG</param-name>
     <param-value>false</param-value>
@@ -119,7 +125,7 @@
   <!--context-param>
     <param-name>org.apache.myfaces.trinidad.DIALOG_NAVIGATION_PREFIX</param-name>
     <param-value>userInputHere:</param-value>
-  </context-param--> 
+  </context-param-->
 
   <!-- Temporarily disable partial state saving default until we make it work with Trinidad -->
   <context-param>
@@ -127,19 +133,24 @@
     <param-value>false</param-value>
   </context-param>
 
-  <!-- Uncomment the below for use with Facelets 
+  <!-- Facelets configuration, comment to use JSP -->
 
   <context-param>
     <param-name>javax.faces.FACELETS_VIEW_MAPPINGS</param-name>
     <param-value>*.xhtml</param-value>
-  </context-param>     
+  </context-param>
 
   <context-param>
     <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
     <param-value>true</param-value>
   </context-param>
 
-  -->
+  <context-param>
+    <param-name>javax.faces.FACELETS_LIBRARIES</param-name>
+    <param-value>/WEB-INF/tr-demo.taglib.xml</param-value>
+  </context-param>
+
+  <!-- End of facelets configuration -->
 
   <filter>
     <filter-name>trinidad</filter-name>
@@ -150,7 +161,7 @@
     <filter-name>demoRedirect</filter-name>
     <filter-class>org.apache.myfaces.trinidaddemo.webapp.RedirectFilter</filter-class>
   </filter>
-  
+
   <filter-mapping>
     <filter-name>trinidad</filter-name>
     <servlet-name>faces</servlet-name>
@@ -166,7 +177,7 @@
     <servlet-name>faces</servlet-name>
     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
   </servlet>
-  
+
   <!-- resource loader servlet -->
   <servlet>
     <servlet-name>resources</servlet-name>
@@ -189,7 +200,7 @@
     <servlet-name>faces</servlet-name>
     <url-pattern>*.faces</url-pattern>
   </servlet-mapping>
-    
+
   <servlet-mapping>
     <servlet-name>resources</servlet-name>
     <url-pattern>/adf/*</url-pattern>
@@ -211,7 +222,7 @@
   </welcome-file-list>
 
   <!-- Survey Demo (Custom) Tag Library -->
-  <jsp-config>
+  <!--jsp-config>
     <taglib>
       <taglib-uri>http://myfaces.apache.org/trinidad/demo</taglib-uri>
       <taglib-location>/WEB-INF/survey.tld</taglib-location>
@@ -221,6 +232,6 @@
       <taglib-uri>http://myfaces.apache.org/trinidaddemo</taglib-uri>
       <taglib-location>/WEB-INF/trinidaddemo.tld</taglib-location>
     </taglib>
-  </jsp-config>
+  </jsp-config-->
 
 </web-app>

Added: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/demos/clientBehaviorHolder.xhtml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/demos/clientBehaviorHolder.xhtml?rev=891462&view=auto
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/demos/clientBehaviorHolder.xhtml (added)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/demos/clientBehaviorHolder.xhtml Wed Dec 16 22:45:46 2009
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!--
+    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.
+
+-->
+<ui:composition
+  xmlns:ui="http://java.sun.com/jsf/facelets"
+  xmlns:f="http://java.sun.com/jsf/core"
+  xmlns:tr="http://myfaces.apache.org/trinidad"
+  xmlns:trd="http://myfaces.apache.org/trinidad/demo"
+  xmlns:trh="http://myfaces.apache.org/trinidad/html">
+  <tr:document id="d1" title="Client Behavior Support">
+    <trh:script>
+function checkPrevent()
+{
+  var element = document.getElementById("sbc1");
+  if (element.checked)
+  {
+    alert("Form submission is being prevented by the behavior function");
+    return false;
+  }
+}
+function handleBlur(event)
+{
+  var blurElement = document.getElementById("it1");
+  var updateElement = document.getElementById("it3");
+  while (updateElement.firstChild != null)
+  {
+    updateElement.removeChild(updateElement.firstChild);
+  }
+  updateElement.appendChild(document.createTextNode(blurElement.value));
+}
+    </trh:script>
+    <tr:form id="f1">
+      <tr:panelHeader text="Client Behavior Support">
+        <tr:panelGroupLayout layout="scroll" id="pgl1">
+          <f:facet name="separator">
+            <tr:separator />
+          </f:facet>
+          <tr:messages/>
+          <tr:panelHeader text="Command button and blur">
+            <tr:panelFormLayout id="pfl1">
+              <tr:inputText id="it1" label="Enter text:" value="#{requestScope.inputTextValue}">
+                <trd:invokeFunctionBehavior function="handleBlur" event="blur" />
+              </tr:inputText>
+              <tr:selectBooleanCheckbox id="sbc1" label="Prevent submission"
+                value="#{requestScope.preventSubmissionValue}" />
+              <tr:inputText readOnly="true" id="it2" value="#{requestScope.inputTextValue}"
+                label="Value that was entered:" partialTriggers="cb1 cb2" />
+              <tr:inputText readOnly="true" id="it3" value="#{requestScope.noValue}"
+                label="Value detected on blur:" partialTriggers="cb1 cb2" />
+              <tr:commandButton id="cb1" partialSubmit="true" text="Submit">
+                <trd:invokeFunctionBehavior function="checkPrevent" />
+              </tr:commandButton>
+              <tr:commandButton id="cb2" text="Submit via JSF Ajax">
+                <trd:invokeFunctionBehavior function="checkPrevent" />
+                <f:ajax render="it2" />
+              </tr:commandButton>
+            </tr:panelFormLayout>
+          </tr:panelHeader>
+          <tr:panelHeader text="Ajax during value change">
+            <tr:panelFormLayout id="pfl2">
+              <tr:inputText id="it4" label="Enter text:" value="#{requestScope.inputText2Value}">
+                <f:ajax render="it5" />
+              </tr:inputText>
+              <tr:inputText readOnly="true" id="it5" value="#{requestScope.inputText2Value}"
+                label="Value updated by ajax on value change:" />
+            </tr:panelFormLayout>
+          </tr:panelHeader>
+        </tr:panelGroupLayout>
+      </tr:panelHeader>
+    </tr:form>
+  </tr:document>
+</ui:composition>
\ No newline at end of file

Propchange: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/demos/clientBehaviorHolder.xhtml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/demos/demos.jspx
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/demos/demos.jspx?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/demos/demos.jspx (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-examples/trinidad-demo/src/main/webapp/demos/demos.jspx Wed Dec 16 22:45:46 2009
@@ -16,7 +16,7 @@
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.
-     
+
 -->
 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
           xmlns:f="http://java.sun.com/jsf/core"
@@ -57,7 +57,8 @@
                 destination="showDetailDiscloseOne.jspx" />
               <tr:goLink text="FileDownloadActionListener Demo"
                 destination="tags/fileDownloadActionListener.jspx" />
-              
+              <tr:goLink text="Client behavior support Demo"
+                destination="clientBehaviorHolder.xhtml" />
             </tr:panelGroupLayout>
            </tr:panelHeader>
           </tr:panelHeader>

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/GlobalConfiguratorImpl.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/GlobalConfiguratorImpl.java?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/GlobalConfiguratorImpl.java (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/GlobalConfiguratorImpl.java Wed Dec 16 22:45:46 2009
@@ -22,15 +22,12 @@
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
-
 import java.util.concurrent.atomic.AtomicReference;
 
 import javax.faces.context.ExternalContext;
 
 import javax.servlet.ServletRequest;
-
 import javax.servlet.ServletRequestWrapper;
-
 import javax.servlet.http.HttpServletRequest;
 
 import org.apache.myfaces.trinidad.config.Configurator;
@@ -40,6 +37,9 @@
 import org.apache.myfaces.trinidad.logging.TrinidadLogger;
 import org.apache.myfaces.trinidad.skin.SkinFactory;
 import org.apache.myfaces.trinidad.util.ClassLoaderUtils;
+import org.apache.myfaces.trinidad.util.ExternalContextUtils;
+import org.apache.myfaces.trinidad.util.RequestStateMap;
+import org.apache.myfaces.trinidad.util.RequestType;
 import org.apache.myfaces.trinidadinternal.context.RequestContextFactoryImpl;
 import org.apache.myfaces.trinidadinternal.context.external.ServletCookieMap;
 import org.apache.myfaces.trinidadinternal.context.external.ServletRequestHeaderMap;
@@ -49,9 +49,7 @@
 import org.apache.myfaces.trinidadinternal.context.external.ServletRequestParameterValuesMap;
 import org.apache.myfaces.trinidadinternal.skin.SkinFactoryImpl;
 import org.apache.myfaces.trinidadinternal.skin.SkinUtils;
-import org.apache.myfaces.trinidad.util.ExternalContextUtils;
-import org.apache.myfaces.trinidad.util.RequestStateMap;
-import org.apache.myfaces.trinidad.util.RequestType;
+
 
 /**
  * This is the implementation of the Trinidad's Global configurator. It provides the entry point for
@@ -410,7 +408,7 @@
       finally
       {
 
-        //Do cleanup of anything which may have use the thread local manager durring
+        //Do cleanup of anything which may have use the thread local manager during
         //init.
         _releaseManagedThreadLocals();
       }

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/LazyValueExpression.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/LazyValueExpression.java?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/LazyValueExpression.java (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/LazyValueExpression.java Wed Dec 16 22:45:46 2009
@@ -20,25 +20,26 @@
 
 import javax.el.ELContext;
 import javax.el.ELResolver;
+import javax.el.ExpressionFactory;
 import javax.el.FunctionMapper;
+import javax.el.ValueExpression;
+import javax.el.VariableMapper;
 
 import javax.faces.FactoryFinder;
 import javax.faces.application.Application;
 import javax.faces.application.ApplicationFactory;
 import javax.faces.context.FacesContext;
-import javax.el.ValueExpression;
-
-import javax.el.VariableMapper;
 
 import org.apache.myfaces.trinidad.logging.TrinidadLogger;
 
- /**
-  * A ValueExpression class that lazily parses the underlying EL expression
-  * (in case the Application object is not yet available).  Unfortunately,
-  * this implementation means that errors in the syntax of the EL
-  * expression won't get detected until use.
-  *
-  */
+
+/**
+ * A ValueExpression class that lazily parses the underlying EL expression
+ * (in case the Application object is not yet available).  Unfortunately,
+ * this implementation means that errors in the syntax of the EL
+ * expression won't get detected until use.
+ *
+ */
 public class LazyValueExpression extends ValueExpression
 {
 
@@ -175,10 +176,11 @@
       {
         ELContext elContext = _getELContext(application);
 
-        return
-          application.getExpressionFactory().
-            createValueExpression(elContext, expression, expectedType);
-
+        ExpressionFactory expressionFactory = application.getExpressionFactory();
+        if (expressionFactory != null)
+        {
+          return expressionFactory.createValueExpression(elContext, expression, expectedType);
+        }
       }
     }
 

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/RenderKitDecorator.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/RenderKitDecorator.java?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/RenderKitDecorator.java (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/RenderKitDecorator.java Wed Dec 16 22:45:46 2009
@@ -6,9 +6,9 @@
  *  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
@@ -21,19 +21,24 @@
 import java.io.OutputStream;
 import java.io.Writer;
 
+import java.util.Iterator;
 import java.util.concurrent.ConcurrentMap;
 
 import javax.faces.FactoryFinder;
+import javax.faces.context.ExternalContext;
 import javax.faces.context.FacesContext;
 import javax.faces.context.ResponseStream;
 import javax.faces.context.ResponseWriter;
+import javax.faces.render.ClientBehaviorRenderer;
 import javax.faces.render.RenderKit;
 import javax.faces.render.RenderKitFactory;
 import javax.faces.render.Renderer;
 import javax.faces.render.ResponseStateManager;
 
 import org.apache.myfaces.trinidad.context.RequestContext;
+import org.apache.myfaces.trinidad.context.RequestContextFactory;
 import org.apache.myfaces.trinidad.util.Service;
+import org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl;
 
 
 abstract public class RenderKitDecorator extends RenderKitBase
@@ -70,6 +75,21 @@
     return getRenderKit().getResponseStateManager();
   }
 
+  public void addClientBehaviorRenderer(String type, ClientBehaviorRenderer renderer)
+  {
+    getRenderKit().addClientBehaviorRenderer(type, renderer);
+  }
+
+  public ClientBehaviorRenderer getClientBehaviorRenderer(String type)
+  {
+    return getRenderKit().getClientBehaviorRenderer(type);
+  }
+
+  public Iterator<String> getClientBehaviorRendererTypes()
+  {
+    return getRenderKit().getClientBehaviorRendererTypes();
+  }
+
   protected ResponseWriter createDecoratedResponseWriter(
     ResponseWriter delegate)
   {
@@ -88,14 +108,14 @@
     if (renderer == null)
     {
       RenderKit renderKit = getRenderKit();
-            
+
       // Use findRenderer() to avoid "not found" warning messages
       if (renderKit instanceof RenderKitBase)
         renderer = ((RenderKitBase) renderKit).findRenderer(
                                         componentFamily, rendererType);
       else
         renderer = renderKit.getRenderer(componentFamily, rendererType);
-        
+
       // copy-on-read
       if (renderer != null)
         addRenderer(componentFamily, rendererType, renderer);
@@ -107,28 +127,38 @@
   protected RenderKit getRenderKit()
   {
     FacesContext context = FacesContext.getCurrentInstance();
-    
+
     // There's only one RenderKitFactory per app. The javadoc for RenderKitFactory says:
-    //      "There must be one RenderKitFactory instance per web 
+    //      "There must be one RenderKitFactory instance per web
     //       application that is utilizing JavaServer Faces"
     // The call to FactoryFinder.getFactory is doing locking, Issue 688 was filed with the RI
     // to try to remove the locking there:
     // https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=688
-    // However they were not able to remove the locking. 
+    // However they were not able to remove the locking.
     // Therefore save off the factory on the app map.
-    ConcurrentMap<String, Object> appMap = 
-                         RequestContext.getCurrentInstance().getApplicationScopedConcurrentMap();
-    
+    RequestContext requestContext = RequestContext.getCurrentInstance();
+    if (requestContext == null)
+    {
+      // In JSF 2, this method may be called be before the global configurator has been initialized and if that
+      // is the case, then the request context needs to be built
+      ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
+      GlobalConfiguratorImpl.getInstance().init(externalContext);
+      requestContext = RequestContextFactory.getFactory().createContext(externalContext);
+    }
+
+    ConcurrentMap<String, Object> appMap =
+      requestContext.getApplicationScopedConcurrentMap();
+
     RenderKitFactory factory = (RenderKitFactory)appMap.get(_RENDER_KIT_FACTORY_KEY);
-    
+
     if (factory == null)
     {
-      factory = (RenderKitFactory)FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);   
-      RenderKitFactory oldFactory = 
+      factory = (RenderKitFactory)FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
+      RenderKitFactory oldFactory =
                           (RenderKitFactory) appMap.putIfAbsent(_RENDER_KIT_FACTORY_KEY, factory);
-        
+
       if (oldFactory != null)
-        factory = oldFactory;      
+        factory = oldFactory;
     }
 
     RenderKit renderKit = factory.getRenderKit(context, getDecoratedRenderKitId());
@@ -137,6 +167,6 @@
   }
 
   abstract protected String getDecoratedRenderKitId();
-  private static final String _RENDER_KIT_FACTORY_KEY = 
+  private static final String _RENDER_KIT_FACTORY_KEY =
          "org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.RENDER_KIT_FACTORY_KEY";
 }

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/XhtmlUtils.java Wed Dec 16 22:45:46 2009
@@ -673,7 +673,7 @@
 
       if (secondaryEventName != null)
       {
-        _getBehaviorScripts(facesContext, component, eventName, data);
+        _getBehaviorScripts(facesContext, component, secondaryEventName, data);
       }
     }
 

Modified: myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js?rev=891462&r1=891461&r2=891462&view=diff
==============================================================================
--- myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js (original)
+++ myfaces/trinidad/branches/ar_clientBehaviors/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js Wed Dec 16 22:45:46 2009
@@ -3148,7 +3148,7 @@
   shortCircuit // shortcircuit if handler 1 false
   )
 {
-  return _chainMultiple([evh1, evh2], target, event);
+  return _chainMultiple([evh1, evh2], target, event, shortCircuit);
 }
 
 /**