JBoss Rich Faces SVN: r494 - trunk/docs/userguide/en/modules.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-04-24 06:28:37 -0400 (Tue, 24 Apr 2007)
New Revision: 494
Modified:
trunk/docs/userguide/en/modules/RFClibrary.xml
Log:
Modified: trunk/docs/userguide/en/modules/RFClibrary.xml
===================================================================
--- trunk/docs/userguide/en/modules/RFClibrary.xml 2007-04-23 21:58:15 UTC (rev 493)
+++ trunk/docs/userguide/en/modules/RFClibrary.xml 2007-04-24 10:28:37 UTC (rev 494)
@@ -2,7 +2,6 @@
<section id="RichFacesComponentsLibrary" xreflabel="RichFacesComponentsLibrary">
<?dbhtml filename="RichFacesComponentsLibrary.html"?>
- <para>The library encompasses ready-made components built based on the
- <emphasis role="italic"><property>Ajax4jsf Component Factory</property></emphasis>. To find out more about the Component Factory, go to the
+ <para>The library encompasses ready-made components built based on the <emphasis role="italic"><property>Ajax4jsf Component Factory</property></emphasis>. To find out more about the Component Factory, go to the
<ulink url="http://www.jboss.org/projects/jbossajax4jsf">Ajax4jsf project</ulink>.</para>
</section>
17 years, 6 months
JBoss Rich Faces SVN: r492 - trunk/richfaces/suggestionbox/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-04-23 14:17:26 -0400 (Mon, 23 Apr 2007)
New Revision: 492
Modified:
trunk/richfaces/suggestionbox/src/main/config/component/suggestionbox.xml
Log:
Modified: trunk/richfaces/suggestionbox/src/main/config/component/suggestionbox.xml
===================================================================
--- trunk/richfaces/suggestionbox/src/main/config/component/suggestionbox.xml 2007-04-23 18:09:01 UTC (rev 491)
+++ trunk/richfaces/suggestionbox/src/main/config/component/suggestionbox.xml 2007-04-23 18:17:26 UTC (rev 492)
@@ -114,16 +114,23 @@
A comma-delimited list of CSS style classes that is applied to popup table rows. A space separated list of classes may also be specified for any individual row. Thes styles are applied, in turn, to each row in the table. For example, if the list has two elements, the first style class in the list is applied to the first row, the second to the second row, the first to the third row, the second to the fourth row, etc. In other words, we keep iterating through the list until we reach the end, and then we start at the beginning again.
</description>
</property>
- <!--
+
<property>
<name>immediate</name>
<classname>boolean</classname>
<description>
- A flag indicating that this component value must be converted and validated immediately (that is, during Apply Request Values phase), rather than waiting until a Process Validations phase
+ A flag indicating that this component value must be converted and validated immediately (that is, during Apply Request Values phase), rather than waiting until a Process Validations phase.
</description>
</property>
- -->
+
+
<property>
+ <name>onsubmit</name>
+ <classname>java.lang.String</classname>
+ <description>JavaScript code for call before submission of ajax event.</description>
+ </property>
+
+ <property>
<name>selectedClass</name>
<classname>java.lang.String</classname>
<description>
@@ -292,14 +299,5 @@
<classname>java.lang.String</classname>
<description>align</description>
</property>
- <property>
- <name>onsubmit</name>
- <classname>java.lang.String</classname>
- <description>
- Javascript code which will be call as a function just before ajax "update choices" request. Note, what javascript code must return boolean value. If return false, the request will be discarded.
- Use "this" key word as a link to suggestion box input HTML element. For example, to know current value of input element use such statement: "var currentValue = this.value;".
- </description>
- </property>
-
</component>
</components>
17 years, 6 months
JBoss Rich Faces SVN: r490 - in trunk/richfaces: togglePanel/src/main/config/component and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-04-23 12:10:19 -0400 (Mon, 23 Apr 2007)
New Revision: 490
Modified:
trunk/richfaces/panelbar/src/main/config/component/panelbar.xml
trunk/richfaces/togglePanel/src/main/config/component/togglePanel.xml
Log:
Modified: trunk/richfaces/panelbar/src/main/config/component/panelbar.xml
===================================================================
--- trunk/richfaces/panelbar/src/main/config/component/panelbar.xml 2007-04-23 15:26:24 UTC (rev 489)
+++ trunk/richfaces/panelbar/src/main/config/component/panelbar.xml 2007-04-23 16:10:19 UTC (rev 490)
@@ -48,13 +48,13 @@
<property>
<name>style</name>
<classname>java.lang.String</classname>
- <description>The component style</description>
+ <description>CSS style(s) is/are to be applied when this component is rendered</description>
<defaultvalue><![CDATA[""]]></defaultvalue>
</property>
<property>
<name>styleClass</name>
<classname>java.lang.String</classname>
- <description>The component style class</description>
+ <description>Corresponds to the HTML class attribute.</description>
</property>
<property>
<name>headerStyleActive</name>
@@ -72,11 +72,23 @@
<classname>java.lang.String</classname>
<description>Id of expanded panelBarItem</description>
</property>
+ <property >
+ <name>converter</name>
+ <classname>javax.faces.convert.Converter</classname>
+ <description>
+ Id of Converter to be used or reference to a Converter.
+ </description>
+ </property>
+ <property hidden="true">
+ <name>localValueSet</name>
+ <classname>boolean</classname>
+ </property>
+
-
&ui_component_attributes;
&header_component_attributes;
&content_component_attributes;
+ &ui_input_attributes;
<!--
<taghandler>
<classname>org.ajax4jsf.tag.TestHandler</classname>
Modified: trunk/richfaces/togglePanel/src/main/config/component/togglePanel.xml
===================================================================
--- trunk/richfaces/togglePanel/src/main/config/component/togglePanel.xml 2007-04-23 15:26:24 UTC (rev 489)
+++ trunk/richfaces/togglePanel/src/main/config/component/togglePanel.xml 2007-04-23 16:10:19 UTC (rev 490)
@@ -75,7 +75,7 @@
</taghandler>
-->
&ui_component_attributes;
- &ui_input_attributes.ent;
+ &ui_input_attributes;
<!--
<property>
<name>param</name>
17 years, 6 months
JBoss Rich Faces SVN: r489 - trunk/richfaces-samples/suggestionbox-sample/src/main/java/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: F.antonov
Date: 2007-04-23 11:26:24 -0400 (Mon, 23 Apr 2007)
New Revision: 489
Modified:
trunk/richfaces-samples/suggestionbox-sample/src/main/java/org/richfaces/SuggestionBox.java
Log:
Small demo application upgrade.
Modified: trunk/richfaces-samples/suggestionbox-sample/src/main/java/org/richfaces/SuggestionBox.java
===================================================================
--- trunk/richfaces-samples/suggestionbox-sample/src/main/java/org/richfaces/SuggestionBox.java 2007-04-23 15:24:59 UTC (rev 488)
+++ trunk/richfaces-samples/suggestionbox-sample/src/main/java/org/richfaces/SuggestionBox.java 2007-04-23 15:26:24 UTC (rev 489)
@@ -49,6 +49,7 @@
private String width = "200";
private String height = "150";
private String shadowOpacity = "4";
+ private String onsubmit = "true";
private static final String [] cit = {"Abba", "Abbeville", "Acworth", "Adairsville", "Adel", "Adrian", "Ailey", "Alamo", "Alapaha", "Albany", "Allenhurst", "Alma", "Alpharetta", "Alston", "Amboy", "Ambrose", "Americus", "Appling", "Arlington", "Ashburn", "Athens", "Athens-Clarke County", "Atkinson", "Atlanta", "Attapulgus", "Auburn", "Augusta", "Augusta-Richmond County", "Austell", "Avondale Estates", "Axson"};
@@ -240,4 +241,20 @@
public void setShadowOpacity(String shadowOpacity) {
this.shadowOpacity = shadowOpacity;
}
+
+ public String getOnsubmit() {
+ return onsubmit;
+ }
+
+ public void setOnsubmit(String onsubmit) {
+ this.onsubmit = onsubmit;
+ }
+
+ public String getOnsubmitFunction() {
+ if ("none".equalsIgnoreCase(onsubmit)) return null;
+ return "alert(this.value); return " + onsubmit + ";";
+ }
+
+ public void setOnsubmitFunction(String onsubmit) {
+ }
}
17 years, 6 months
JBoss Rich Faces SVN: r488 - trunk/richfaces-samples/suggestionbox-sample/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: F.antonov
Date: 2007-04-23 11:24:59 -0400 (Mon, 23 Apr 2007)
New Revision: 488
Modified:
trunk/richfaces-samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
Log:
Small demo application upgrade. New attribute ("onsubmit") test added.
Modified: trunk/richfaces-samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/richfaces-samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2007-04-23 15:18:10 UTC (rev 487)
+++ trunk/richfaces-samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2007-04-23 15:24:59 UTC (rev 488)
@@ -47,7 +47,8 @@
width="#{suggestionBox.width}"
height="#{suggestionBox.height}"
shadowDepth="#{suggestionBox.shadowDepth}"
- cellpadding="#{suggestionBox.cellpadding}">
+ cellpadding="#{suggestionBox.cellpadding}"
+ onsubmit="#{suggestionBox.onsubmitFunction}">
<a4j:ajaxListener type="org.richfaces.AjaxListener"/>
<h:column>
@@ -115,6 +116,14 @@
<f:verbatim>Cellpadding</f:verbatim>
<f:verbatim> </f:verbatim>
<h:inputText value="#{suggestionBox.cellpadding}" onchange="submit()" />
+
+ <f:verbatim>Onsubmit function will return</f:verbatim>
+ <f:verbatim> </f:verbatim>
+ <h:selectOneRadio value="#{suggestionBox.onsubmit}" onchange="submit()">
+ <f:selectItem itemLabel="true" itemValue="true"/>
+ <f:selectItem itemLabel="false" itemValue="false"/>
+ <f:selectItem itemLabel="no function" itemValue="none"/>
+ </h:selectOneRadio>
</h:panelGrid>
</h:form>
17 years, 6 months
JBoss Rich Faces SVN: r487 - trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: F.antonov
Date: 2007-04-23 11:18:10 -0400 (Mon, 23 Apr 2007)
New Revision: 487
Modified:
trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
Fix for bug http://jira.jboss.com/jira/browse/RF-81.
Modified: trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
--- trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2007-04-23 15:11:53 UTC (rev 486)
+++ trunk/richfaces/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2007-04-23 15:18:10 UTC (rev 487)
@@ -497,7 +497,7 @@
Exadel.Suggestion = Class.create();
Object.extend(Object.extend(Exadel.Suggestion.prototype, Suggestion.Base.prototype), {
- initialize: function(containerId, actionUrl, element, content, options) {
+ initialize: function(containerId, actionUrl, element, content, onsubmit, options) {
var update = options.popup || 'ac1update';
if (!$(update)) this.create(element, update, content, options);
this.baseInitialize(element, update, options);
@@ -508,13 +508,26 @@
this.content = content;
this.containerId = containerId;
this.actionUrl = actionUrl;
+
+ this.input = $(element);
+ this.oldValue = $(element).value;
+ if (onsubmit && onsubmit != 'null'){
+ this.onsubmitFunction = new Function(onsubmit).bind(this.input);
+ }
+
return this;
},
getUpdatedChoices: function(event) {
this.options.parameters[this.options.param] = this.getToken();
-
- A4J.AJAX.Submit(this.containerId, this.actionUrl, event, this.options);
+
+ if (this.onsubmitFunction && ! this.onsubmitFunction()) {
+ return;
+ }
+ if (this.oldValue != this.input.value && this.input.value.length > 0) {
+ A4J.AJAX.Submit(this.containerId, this.actionUrl, event, this.options);
+ }
+ this.oldValue = this.input.value;
return;
},
17 years, 6 months
JBoss Rich Faces SVN: r486 - trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: F.antonov
Date: 2007-04-23 11:11:53 -0400 (Mon, 23 Apr 2007)
New Revision: 486
Modified:
trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
Log:
Fix for bug http://jira.jboss.com/jira/browse/RF-81.
Modified: trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
===================================================================
--- trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2007-04-23 15:10:52 UTC (rev 485)
+++ trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2007-04-23 15:11:53 UTC (rev 486)
@@ -296,6 +296,7 @@
UIComponent targetComponent = getTarget(component);
submitSuggest.addParameter(targetComponent.getClientId(context));
submitSuggest.addParameter(component.getClientId(context));
+ submitSuggest.addParameter(component.getAttributes().get("onsubmit"));
Map options = AjaxRendererUtils.buildEventOptions(context, component);
options.put("popup", component.getClientId(context));
for (int i = 0; i < OPTIONS.length; i++) {
17 years, 6 months
JBoss Rich Faces SVN: r485 - trunk/richfaces/suggestionbox/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: F.antonov
Date: 2007-04-23 11:10:52 -0400 (Mon, 23 Apr 2007)
New Revision: 485
Modified:
trunk/richfaces/suggestionbox/src/main/config/component/suggestionbox.xml
Log:
Fix for bug http://jira.jboss.com/jira/browse/RF-81.
Modified: trunk/richfaces/suggestionbox/src/main/config/component/suggestionbox.xml
===================================================================
--- trunk/richfaces/suggestionbox/src/main/config/component/suggestionbox.xml 2007-04-23 14:50:21 UTC (rev 484)
+++ trunk/richfaces/suggestionbox/src/main/config/component/suggestionbox.xml 2007-04-23 15:10:52 UTC (rev 485)
@@ -292,6 +292,14 @@
<classname>java.lang.String</classname>
<description>align</description>
</property>
+ <property>
+ <name>onsubmit</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Javascript code which will be call as a function just before ajax "update choices" request. Note, what javascript code must return boolean value. If return false, the request will be discarded.
+ Use "this" key word as a link to suggestion box input HTML element. For example, to know current value of input element use such statement: "var currentValue = this.value;".
+ </description>
+ </property>
</component>
</components>
17 years, 6 months
JBoss Rich Faces SVN: r484 - trunk.
by richfaces-svn-commits@lists.jboss.org
Author: ishabalov
Date: 2007-04-23 10:50:21 -0400 (Mon, 23 Apr 2007)
New Revision: 484
Added:
trunk/sandbox/
Log:
Added sandbox folder
17 years, 6 months
JBoss Rich Faces SVN: r483 - trunk/richfaces/drag-drop/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-04-23 10:42:00 -0400 (Mon, 23 Apr 2007)
New Revision: 483
Modified:
trunk/richfaces/drag-drop/src/main/config/component/dndParam.xml
Log:
Modified: trunk/richfaces/drag-drop/src/main/config/component/dndParam.xml
===================================================================
--- trunk/richfaces/drag-drop/src/main/config/component/dndParam.xml 2007-04-23 14:35:24 UTC (rev 482)
+++ trunk/richfaces/drag-drop/src/main/config/component/dndParam.xml 2007-04-23 14:42:00 UTC (rev 483)
@@ -42,5 +42,12 @@
</description>
<defaultvalue>"default"</defaultvalue>
</property>
+ <property>
+ <name>value</name>
+ <classname>java.lang.Object</classname>
+ <description>
+ The current value for this component.
+ </description>
+ </property>
</component>
</components>
17 years, 6 months