JBoss Rich Faces SVN: r1685 - in branches/3.0.2/richfaces/tree/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-18 15:05:39 -0400 (Wed, 18 Jul 2007)
New Revision: 1685
Modified:
branches/3.0.2/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss
branches/3.0.2/richfaces/tree/src/main/templates/htmlTreeNode.jspx
Log:
nowrap="nowrap" changed to CSS equivalent
Modified: branches/3.0.2/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss
===================================================================
--- branches/3.0.2/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss 2007-07-18 18:23:27 UTC (rev 1684)
+++ branches/3.0.2/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss 2007-07-18 19:05:39 UTC (rev 1685)
@@ -44,6 +44,7 @@
width: 100%;
cursor: default;
padding : 1px 4px 1px 4px;
+ white-space: nowrap;
}
.dr-tree-h-text-span {
Modified: branches/3.0.2/richfaces/tree/src/main/templates/htmlTreeNode.jspx
===================================================================
--- branches/3.0.2/richfaces/tree/src/main/templates/htmlTreeNode.jspx 2007-07-18 18:23:27 UTC (rev 1684)
+++ branches/3.0.2/richfaces/tree/src/main/templates/htmlTreeNode.jspx 2007-07-18 19:05:39 UTC (rev 1685)
@@ -200,7 +200,7 @@
</td>
<td class="dr-tree-h-text rich-tree-node #{component.attributes['nodeClass']}"
rich:selectedclass="#{selectedClass}" rich:highlightedclass="#{highlightedClass}"
- id="#{clientId}:text" nowrap="nowrap">
+ id="#{clientId}:text">
<vcp:body />
</td>
</tr>
17 years, 6 months
JBoss Rich Faces SVN: r1684 - in trunk: cdk/generator/src/main/resources/META-INF/templates12 and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-07-18 14:23:27 -0400 (Wed, 18 Jul 2007)
New Revision: 1684
Added:
trunk/cdk/generator/src/main/resources/META-INF/templates12/tag.vm
Modified:
trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/PropertyBean.java
trunk/docs/ajaxguide/pom.xml
trunk/framework/test/src/test/resources/log4j.xml
trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml
Log:
fix build for a SuggestionBox component
Modified: trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/PropertyBean.java
===================================================================
--- trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/PropertyBean.java 2007-07-18 18:10:03 UTC (rev 1683)
+++ trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/config/PropertyBean.java 2007-07-18 18:23:27 UTC (rev 1684)
@@ -23,6 +23,7 @@
import java.util.HashMap;
import java.util.Map;
+import java.util.regex.Pattern;
/**
* Describe JavaBean property of component.
@@ -32,6 +33,8 @@
*/
public class PropertyBean extends JsfBean {
+ private static final Pattern SEPARATOR_PATTERN = Pattern.compile("\\s*,\\s*");
+
/**
* Hold default values for java classes and base types
*/
@@ -233,6 +236,26 @@
public void setMethodargs(String methodargs) {
_methodargs = methodargs;
}
+
+ /**
+ * @return comma-separated list of classes for method args ( need to build method signature )
+ */
+ public String getMethodArgsClasses(){
+ if(null != this._methodargs){
+ StringBuffer result = new StringBuffer();
+ String[] classes = SEPARATOR_PATTERN.split(this._methodargs);
+ for (int i = 0; i < classes.length; i++) {
+ String argumentClass = classes[i];
+ if(i!=0){
+ result.append(',');
+ }
+ result.append(argumentClass).append(".class");
+ }
+ return result.toString();
+ } else {
+ return null;
+ }
+ }
/**
* @return Returns the transient.
Added: trunk/cdk/generator/src/main/resources/META-INF/templates12/tag.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates12/tag.vm (rev 0)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates12/tag.vm 2007-07-18 18:23:27 UTC (rev 1684)
@@ -0,0 +1,154 @@
+/**
+ * GENERATED FILE - DO NOT EDIT
+ *
+ */
+package ${tag.packageName};
+
+#foreach($import in $imports)
+import $import ;
+#end
+import javax.faces.component.UIComponent;
+import ${component.classname};
+
+/**
+ * @author shura (latest modification by $Author: alexsmirnov $)
+ * @version $Revision: 1.1.2.2 $ $Date: 2007/01/03 21:05:14 $
+ *
+ */
+public class $tag.simpleClassName extends $tag.superclass {
+
+// Fields
+#foreach( $prop in $component.properties )
+ #if( !$prop.existintag )
+ /*
+ * $prop.name
+ * ${prop.xmlEncodedDescription}
+ */
+ private String _$prop.name = null;
+
+ #end
+#end
+// Setters
+#foreach( $prop in $component.properties )
+ #if( !$prop.existintag )
+ /*
+ * $prop.name
+ * ${prop.xmlEncodedDescription}
+ */
+ /*
+ * $prop.description
+ * Setter for $prop.name
+ * @param $prop.name - new value
+ */
+ public void ${prop.setterName}( String __${prop.name} ){
+ this._${prop.name} = __${prop.name};
+ }
+
+ #end
+ #if( $prop.alias)
+ /*
+ * ${prop.xmlEncodedDescription}
+ * Setter for alias of $prop.name as $prop.alias
+ * @param $prop.name - new value
+ */
+ public void set${prop.upperFirstChar($prop.alias)}( String __${prop.alias} ){
+ this.${prop.setterName}(__${prop.alias});
+ }
+ #end
+#end
+// Release
+
+ /* (non-Javadoc)
+ * @see org.ajax4jsf.components.taglib.html.HtmlCommandButtonTagBase#release()
+ */
+ public void release()
+ {
+ // TODO Auto-generated method stub
+ super.release();
+#foreach( $prop in $component.properties )
+ #if( !$prop.existintag )
+ this._${prop.name} = null;
+ #end
+#end
+ }
+
+ /* (non-Javadoc)
+ * @see org.ajax4jsf.components.taglib.html.HtmlCommandButtonTagBase#setProperties(javax.faces.component.UIComponent)
+ */
+ protected void setProperties(UIComponent component)
+ {
+ // TODO Auto-generated method stub
+ super.setProperties(component);
+
+#foreach( $prop in $component.properties )
+ #if( !$prop.existintag )
+ #if(!$prop.el)
+ if(isValueReference(this._${prop.name})){
+ throw new IllegalArgumentException("Component ${component.name} with Id " + component.getClientId(getFacesContext()) +" not allowed EL expression for property ${prop.name}");
+ }
+ #end
+ #if($prop.name == "action")
+ setActionProperty(component, this._${prop.name});
+ #elseif($prop.name == "actionListener")
+ setActionListenerProperty(component, this._${prop.name});
+ #elseif($prop.name == "converter")
+ setConverterProperty(component, this._${prop.name});
+ #elseif($prop.name == "validator")
+ setValidatorProperty(component, this._${prop.name});
+ #elseif($prop.name == "valueChangeListener")
+ setValueChangedListenerProperty(component, this._${prop.name});
+ #elseif($prop.name == "value")
+ setValueProperty(component, this._${prop.name});
+ #elseif($prop.elonly || $prop.isInstanceof("javax.faces.el.ValueBinding") )
+ setValueBinding(component, "${prop.name}",this._${prop.name});
+ #elseif(${prop.simpleType})
+ // Simple type - ${prop.simpleClassName}
+ set${prop.boxingClass}Property(component, "${prop.name}",this._${prop.name});
+ #elseif($prop.classname == "java.lang.Boolean" || $prop.classname == "java.lang.Integer" || $prop.classname == "java.lang.Long")
+ set${prop.simpleClassName}Property(component, "${prop.name}",this._${prop.name});
+ #elseif( $prop.classname == "java.lang.String")
+ setStringProperty(component, "${prop.name}",this._${prop.name});
+ #elseif( $prop.classname == "java.lang.Object")
+ // TODO - handle object
+ setStringProperty(component, "${prop.name}",this._${prop.name});
+ #elseif( $prop.isInstanceof("javax.faces.el.MethodBinding") )
+ if(null != this._${prop.name}){
+ if (isValueReference(this._${prop.name}))
+ {
+ MethodBinding mb = getFacesContext().getApplication().createMethodBinding(this._${prop.name},
+ new Class[]{${prop.methodargs}});
+ ((${component.simpleClassName})component).${prop.setterName}(mb);
+ }
+ else
+ {
+ getFacesContext().getExternalContext().log("Component " + component.getClientId(getFacesContext()) + " has invalid ${prop.name} value: " + this._${prop.name});
+ }
+ }
+ #else
+ // TODO - setup properties for other cases.
+ // name ${prop.name} with type $prop.classname
+ #end
+ #end
+#end
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.webapp.UIComponentTag#getComponentType()
+ */
+ public String getComponentType() {
+ // TODO Auto-generated method stub
+ return "${component.name}";
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.webapp.UIComponentTag#getRendererType()
+ */
+ public String getRendererType() {
+ #if($renderer)
+ return "${renderer.name}";
+ #else
+ return null;
+ #end
+ }
+
+}
Modified: trunk/docs/ajaxguide/pom.xml
===================================================================
--- trunk/docs/ajaxguide/pom.xml 2007-07-18 18:10:03 UTC (rev 1683)
+++ trunk/docs/ajaxguide/pom.xml 2007-07-18 18:23:27 UTC (rev 1684)
@@ -13,21 +13,6 @@
<packaging>pom</packaging>
<name>Ajax4jsf user guide</name>
<description>Ajax4jsf user guide</description>
- <pluginRepositories>
- <pluginRepository>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- <updatePolicy>never</updatePolicy>
- </snapshots>
- <id>repository.jboss.com</id>
- <name>Jboss Repository for Maven</name>
- <url>http://repository.jboss.com/maven2/</url>
- <layout>default</layout>
- </pluginRepository>
- </pluginRepositories>
<build>
<pluginManagement>
<plugins>
Modified: trunk/framework/test/src/test/resources/log4j.xml
===================================================================
--- trunk/framework/test/src/test/resources/log4j.xml 2007-07-18 18:10:03 UTC (rev 1683)
+++ trunk/framework/test/src/test/resources/log4j.xml 2007-07-18 18:23:27 UTC (rev 1684)
@@ -43,39 +43,39 @@
</appender>
-->
<category name="com.sun.faces">
- <priority value="INFO" />
+ <priority value="WARN" />
<appender-ref ref="DEFAULT"/>
</category>
<category name="org.apache.myfaces">
- <priority value="INFO" />
+ <priority value="WARN" />
<appender-ref ref="DEFAULT"/>
</category>
<category name="javax.faces">
- <priority value="INFO" />
+ <priority value="WARN" />
<appender-ref ref="DEFAULT"/>
</category>
<category name="faces">
- <priority value="INFO" />
+ <priority value="WARN" />
<appender-ref ref="DEFAULT"/>
</category>
<category name="com.exadel.vcp">
- <priority value="INFO" />
+ <priority value="WARN" />
<appender-ref ref="DEFAULT"/>
</category>
<category name="org.ajax4jsf">
- <priority value="INFO" />
+ <priority value="WARN" />
<appender-ref ref="DEFAULT"/>
</category>
<!--
<root>
- <priority value ="info" />
+ <priority value ="WARN" />
<appender-ref ref="DEFAULT" />
</root>
-->
Modified: trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml
===================================================================
--- trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml 2007-07-18 18:10:03 UTC (rev 1683)
+++ trunk/ui/suggestionbox/src/main/config/component/suggestionbox.xml 2007-07-18 18:23:27 UTC (rev 1684)
@@ -68,7 +68,7 @@
<name>suggestionAction</name>
<classname>javax.faces.el.MethodBinding</classname>
<methodargs>
- java.lang.Object
+ java.lang.Object.class
</methodargs>
<description>
<![CDATA[Method calls an expression to get a collection of suggestion data on request. It must have one parameter with a type of Object with content of input component and must return any type allowed for <h:datatable> ]]>
17 years, 6 months
JBoss Rich Faces SVN: r1683 - in branches/3.0.2/sandbox/tooltip/src/main: resources/org/richfaces/renderkit/html/scripts and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dbiatenia
Date: 2007-07-18 14:10:03 -0400 (Wed, 18 Jul 2007)
New Revision: 1683
Modified:
branches/3.0.2/sandbox/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java
branches/3.0.2/sandbox/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
branches/3.0.2/sandbox/tooltip/src/main/templates/org/richfaces/htmltooltip.jspx
Log:
default facet bugfix
Modified: branches/3.0.2/sandbox/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java
===================================================================
--- branches/3.0.2/sandbox/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java 2007-07-18 18:09:15 UTC (rev 1682)
+++ branches/3.0.2/sandbox/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java 2007-07-18 18:10:03 UTC (rev 1683)
@@ -50,7 +50,11 @@
Map eventOptions = AjaxRendererUtils.buildEventOptions(context, component);
- String refreshTooltipInDOM = ";" + getJsVarName(context, component) + ".toolTip = $('" + component.getClientId(context) + "');";
+ //after element is subsituted in DOM tree, we have to re-create
+ //it's JS-reference, cause old one is already invalid
+ String refreshTooltipInDOM = ";" + getJsVarName(context, component) + ".toolTip = $('" + component.getClientId(context) + "');" +
+ ";" + getJsVarName(context, component) + ".toolTipContent = $('" + component.getClientId(context) + "content');";
+
String showNewToolTip = ";" + getJsVarName(context, component) + ".displayDiv();";
//enable ajaxSingle mode, i.e. we do not need to submit all form controls to get tooltip content
Modified: branches/3.0.2/sandbox/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
===================================================================
--- branches/3.0.2/sandbox/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2007-07-18 18:09:15 UTC (rev 1682)
+++ branches/3.0.2/sandbox/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2007-07-18 18:10:03 UTC (rev 1683)
@@ -22,6 +22,9 @@
this.ajaxExecuteString = ajaxFunction;
this.toolTip = $(id);
+ this.toolTipContent = $(id + 'content');
+ this.toolTipDefaultContent = $(id + 'defaultContent');
+
this.toolTip.style.visibility='hidden';
this.toolTip.style.display='block';
@@ -110,6 +113,9 @@
this.setToolTipPosition(e);
if(this.mode == 'ajax'){
+ if(this.toolTipDefaultContent){
+ this.toolTipContent.innerHTML = this.toolTipDefaultContent.innerHTML;
+ }
var event = e;
eval(this.ajaxExecuteString);
}
Modified: branches/3.0.2/sandbox/tooltip/src/main/templates/org/richfaces/htmltooltip.jspx
===================================================================
--- branches/3.0.2/sandbox/tooltip/src/main/templates/org/richfaces/htmltooltip.jspx 2007-07-18 18:09:15 UTC (rev 1682)
+++ branches/3.0.2/sandbox/tooltip/src/main/templates/org/richfaces/htmltooltip.jspx 2007-07-18 18:10:03 UTC (rev 1683)
@@ -24,17 +24,16 @@
<f:clientid var="clientId"/>
<div id="#{clientId}" style="position: absolute; display : none;z-index:99" class="dr-rich-tool-tip rich-tool-tip">
- <span id="#{clientId}script" style="display:none">
- <f:call name="insertScript"/>
- </span>
-
<span id="#{clientId}defaultContent" style="display:none">
<u:insertFacet name="defaultContent" />
</span>
-
<vcp:body>
<f:call name="encodeTooltipText"/>
</vcp:body>
+ <f:clientid var="clientId"/>
+ <span id="#{clientId}script" style="display:none">
+ <f:call name="insertScript"/>
+ </span>
</div>
<!-- f:call name="utils.encodeEndFormIfNessesary"/-->
17 years, 6 months
JBoss Rich Faces SVN: r1682 - trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-18 14:09:15 -0400 (Wed, 18 Jul 2007)
New Revision: 1682
Added:
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-mini.js
Removed:
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json.js
Log:
missing json-mini.js added
Added: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-mini.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-mini.js (rev 0)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json-mini.js 2007-07-18 18:09:15 UTC (rev 1682)
@@ -0,0 +1,71 @@
+/*
+ json.js
+ 2006-12-06
+
+ This file adds these methods to JavaScript:
+
+ array.toJSONString()
+ boolean.toJSONString()
+ date.toJSONString()
+ number.toJSONString()
+ object.toJSONString()
+ string.toJSONString()
+ These methods produce a JSON text from a JavaScript value.
+ It must not contain any cyclical references. Illegal values
+ will be excluded.
+
+ The default conversion for dates is to an ISO string. You can
+ add a toJSONString method to any date object to get a different
+ representation.
+
+ string.parseJSON(hook)
+ This method parses a JSON text to produce an object or
+ array. It can throw a SyntaxError exception.
+
+ The optional hook parameter is a function which can filter and
+ transform the results. It receives each of the values, and its
+ return value is used instead. If it returns what it received, then
+ structure is not modified.
+
+ Example:
+
+ // Parse the text. If it contains any "NaN" strings, replace them
+ // with the NaN value. All other values are left alone.
+
+ myData = text.parseJSON(function (value) {
+ if (value === 'NaN') {
+ return NaN;
+ }
+ return value;
+ });
+
+ It is expected that these methods will formally become part of the
+ JavaScript Programming Language in the Fourth Edition of the
+ ECMAScript standard in 2007.
+*/
+
+if (!String.prototype.parseJSON) {
+ String.prototype.parseJSON = function (hook) {
+ try {
+ if (!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(this.replace(/("(\\.|[^"\\])*")|('(\\.|[^'\\])*')/g, ''))) {
+ var j = eval('(' + this + ')');
+ if (typeof hook === 'function') {
+ function walk(v) {
+ if (v && typeof v === 'object') {
+ for (var i in v) {
+ if (v.hasOwnProperty(i)) {
+ v[i] = walk(v[i]);
+ }
+ }
+ }
+ return hook(v);
+ }
+ return walk(j);
+ }
+ return j;
+ }
+ } catch (e) {
+ }
+ throw new SyntaxError("parseJSON");
+ };
+}
Deleted: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json.js 2007-07-18 17:48:52 UTC (rev 1681)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/json/json.js 2007-07-18 18:09:15 UTC (rev 1682)
@@ -1,193 +0,0 @@
-/*
- json.js
- 2006-12-06
-
- This file adds these methods to JavaScript:
-
- array.toJSONString()
- boolean.toJSONString()
- date.toJSONString()
- number.toJSONString()
- object.toJSONString()
- string.toJSONString()
- These methods produce a JSON text from a JavaScript value.
- It must not contain any cyclical references. Illegal values
- will be excluded.
-
- The default conversion for dates is to an ISO string. You can
- add a toJSONString method to any date object to get a different
- representation.
-
- string.parseJSON(hook)
- This method parses a JSON text to produce an object or
- array. It can throw a SyntaxError exception.
-
- The optional hook parameter is a function which can filter and
- transform the results. It receives each of the values, and its
- return value is used instead. If it returns what it received, then
- structure is not modified.
-
- Example:
-
- // Parse the text. If it contains any "NaN" strings, replace them
- // with the NaN value. All other values are left alone.
-
- myData = text.parseJSON(function (value) {
- if (value === 'NaN') {
- return NaN;
- }
- return value;
- });
-
- It is expected that these methods will formally become part of the
- JavaScript Programming Language in the Fourth Edition of the
- ECMAScript standard in 2007.
-*/
-if (!Object.prototype.toJSONString) {
- Array.prototype.toJSONString = function () {
- var a = ['['], b, i, l = this.length, v;
-
- function p(s) {
- if (b) {
- a.push(',');
- }
- a.push(s);
- b = true;
- }
-
- for (i = 0; i < l; i += 1) {
- v = this[i];
- switch (typeof v) {
- case 'undefined':
- case 'function':
- case 'unknown':
- break;
- case 'object':
- if (v) {
- if (typeof v.toJSONString === 'function') {
- p(v.toJSONString());
- }
- } else {
- p("null");
- }
- break;
- default:
- p(v.toJSONString());
- }
- }
- a.push(']');
- return a.join('');
- };
-
- Boolean.prototype.toJSONString = function () {
- return String(this);
- };
-
- Date.prototype.toJSONString = function () {
-
- function f(n) {
- return n < 10 ? '0' + n : n;
- }
-
- return '"' + this.getFullYear() + '-' +
- f(this.getMonth() + 1) + '-' +
- f(this.getDate()) + 'T' +
- f(this.getHours()) + ':' +
- f(this.getMinutes()) + ':' +
- f(this.getSeconds()) + '"';
- };
-
- Number.prototype.toJSONString = function () {
- return isFinite(this) ? String(this) : "null";
- };
-
- Object.prototype.toJSONString = function () {
- var a = ['{'], b, i, v;
-
- function p(s) {
- if (b) {
- a.push(',');
- }
- a.push(i.toJSONString(), ':', s);
- b = true;
- }
-
- for (i in this) {
- if (this.hasOwnProperty(i)) {
- v = this[i];
- switch (typeof v) {
- case 'undefined':
- case 'function':
- case 'unknown':
- break;
- case 'object':
- if (v) {
- if (typeof v.toJSONString === 'function') {
- p(v.toJSONString());
- }
- } else {
- p("null");
- }
- break;
- default:
- p(v.toJSONString());
- }
- }
- }
- a.push('}');
- return a.join('');
- };
-
-
- (function (s) {
- var m = {
- '\b': '\\b',
- '\t': '\\t',
- '\n': '\\n',
- '\f': '\\f',
- '\r': '\\r',
- '"' : '\\"',
- '\\': '\\\\'
- };
-
- s.parseJSON = function (hook) {
- try {
- if (!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(this.replace(/("(\\.|[^"\\])*")|('(\\.|[^'\\])*')/g, ''))) {
- var j = eval('(' + this + ')');
- if (typeof hook === 'function') {
- function walk(v) {
- if (v && typeof v === 'object') {
- for (var i in v) {
- if (v.hasOwnProperty(i)) {
- v[i] = walk(v[i]);
- }
- }
- }
- return hook(v);
- }
- return walk(j);
- }
- return j;
- }
- } catch (e) {
- }
- throw new SyntaxError("parseJSON");
- };
-
- s.toJSONString = function () {
- if (/["\\\x00-\x1f]/.test(this)) {
- return '"' + this.replace(/([\x00-\x1f\\"])/g, function(a, b) {
- var c = m[b];
- if (c) {
- return c;
- }
- c = b.charCodeAt();
- return '\\u00' +
- Math.floor(c / 16).toString(16) +
- (c % 16).toString(16);
- }) + '"';
- }
- return '"' + this + '"';
- };
- })(String.prototype);
-}
\ No newline at end of file
17 years, 6 months
JBoss Rich Faces SVN: r1680 - trunk/ui/togglePanel/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-18 13:32:03 -0400 (Wed, 18 Jul 2007)
New Revision: 1680
Modified:
trunk/ui/togglePanel/src/main/config/component/togglePanel.xml
Log:
http://jira.jboss.com/jira/browse/RF-465 fixed
Modified: trunk/ui/togglePanel/src/main/config/component/togglePanel.xml
===================================================================
--- trunk/ui/togglePanel/src/main/config/component/togglePanel.xml 2007-07-18 15:39:20 UTC (rev 1679)
+++ trunk/ui/togglePanel/src/main/config/component/togglePanel.xml 2007-07-18 17:32:03 UTC (rev 1680)
@@ -102,6 +102,8 @@
-->
&ui_component_attributes;
&ui_input_attributes;
+ &html_style_attributes;
+ &html_events;
<!--
<property>
<name>param</name>
17 years, 6 months
JBoss Rich Faces SVN: r1679 - in trunk/sandbox: samples/rich-message-demo/src/main/webapp/WEB-INF and 5 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-07-18 11:39:20 -0400 (Wed, 18 Jul 2007)
New Revision: 1679
Modified:
trunk/sandbox/samples/panelmenu-sample/src/main/webapp/WEB-INF/web.xml
trunk/sandbox/samples/rich-message-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
trunk/sandbox/ui/message/src/main/config/component/message.xml
trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java
trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx
Log:
start implementing encodeEnd methods
Modified: trunk/sandbox/samples/panelmenu-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/panelmenu-sample/src/main/webapp/WEB-INF/web.xml 2007-07-18 15:35:33 UTC (rev 1678)
+++ trunk/sandbox/samples/panelmenu-sample/src/main/webapp/WEB-INF/web.xml 2007-07-18 15:39:20 UTC (rev 1679)
@@ -7,6 +7,10 @@
<param-value>#{skinBean.skin}</param-value>
</context-param>
<context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
Modified: trunk/sandbox/samples/rich-message-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/sandbox/samples/rich-message-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-07-18 15:35:33 UTC (rev 1678)
+++ trunk/sandbox/samples/rich-message-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-07-18 15:39:20 UTC (rev 1679)
@@ -2,5 +2,14 @@
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
+ <managed-bean>
+ <managed-bean-name>jiraUserConverter</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.converters.JiraUserConverter</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>channel</property-name>
+ <value>#{jiraService.channel}</value>
+ </managed-property>
+ </managed-bean>
</faces-config>
Modified: trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml
===================================================================
--- trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-07-18 15:35:33 UTC (rev 1678)
+++ trunk/sandbox/samples/rich-message-demo/src/main/webapp/pages/message-demo.xhtml 2007-07-18 15:39:20 UTC (rev 1679)
@@ -3,8 +3,16 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:msg="http://labs.jboss.com/jbossrichfaces/ui/ui/message"
+ xmlns:r="http://labs.jboss.com/jbossrichfaces/ui/ui/message"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+
+ <h:form>
+ <h:inputText id="input" value="hello!!">
+ <f:validateLongRange minimum="1" maximum="500"/>
+ </h:inputText>
+ <h:commandButton value="submit"></h:commandButton>
+
+ <r:message for="input"></r:message>
+ </h:form>
- <h:outputText value="hello!!"></h:outputText>
</html>
\ No newline at end of file
Modified: trunk/sandbox/ui/message/src/main/config/component/message.xml
===================================================================
--- trunk/sandbox/ui/message/src/main/config/component/message.xml 2007-07-18 15:35:33 UTC (rev 1678)
+++ trunk/sandbox/ui/message/src/main/config/component/message.xml 2007-07-18 15:39:20 UTC (rev 1679)
@@ -36,7 +36,7 @@
</tag>
- <property>
+ <property attachedstate="true">
<name>passedLabel</name>
<classname>java.lang.String</classname>
<description>
@@ -44,7 +44,7 @@
</description>
</property>
- <property>
+ <property attachedstate="true">
<name>markerLocation</name>
<classname>java.lang.String</classname>
<description>
@@ -59,6 +59,7 @@
<description>
Client identifier of the component for which to display messages
</description>
+
</property>
<property>
@@ -167,6 +168,12 @@
<name>LabelClass</name>
<classname>java.lang.String</classname>
</property>
+
+ <property attachedstate="true" hidden="true">
+ <name>binding</name>
+ <classname>javax.faces.component.UIComponent</classname>
+ </property>
+
&ui_component_attributes;
</component>
Modified: trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java
===================================================================
--- trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java 2007-07-18 15:35:33 UTC (rev 1678)
+++ trunk/sandbox/ui/message/src/main/java/org/richfaces/component/UIRichMessage.java 2007-07-18 15:39:20 UTC (rev 1679)
@@ -2,10 +2,31 @@
import javax.faces.component.UIMessage;
+import org.ajax4jsf.component.AjaxOutput;
+
/**
* @author Anton Belevich
*
*/
-public abstract class UIRichMessage extends UIMessage{
+public abstract class UIRichMessage extends UIMessage implements AjaxOutput{
+
+ public final String MARKER_LOCATION_LEFT = "left";
+
+ public final String MARKER_LOCATION_RIGHT = "right";
+
+ private String passedLabel = null;
+
+ private String markerLocation = "left";
+
+
+
+ public abstract String getPassedLabel();
+
+ public abstract void setPassedLabel(String passedLabel);
+
+ public abstract String getMarkerLocation();
+
+ public abstract void setMarkerLocation(String markerLocation);
+
}
\ No newline at end of file
Modified: trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java
===================================================================
--- trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java 2007-07-18 15:35:33 UTC (rev 1678)
+++ trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java 2007-07-18 15:39:20 UTC (rev 1679)
@@ -1,12 +1,172 @@
package org.richfaces.renderkit.html;
+import java.io.IOException;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+
+import javax.faces.application.FacesMessage;
+import javax.faces.component.NamingContainer;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+import org.ajax4jsf.context.AjaxContext;
import org.ajax4jsf.renderkit.RendererBase;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.richfaces.component.UIRichMessage;
/**
* @author Anton Belevich
*
*/
-public abstract class RichMessageBaseRenderer extends RendererBase{
+public class RichMessageBaseRenderer extends RendererBase{
+
+ private static final Log log = LogFactory.getLog(RichMessageBaseRenderer.class);
+
+ public static final String NULL_PARAMETER_ERROR_MESSAGE = "null parameter ERROR";
+
+ public static final String COMPONENT_NOT_FOUND_IN_VIEW = "component not found in view";
+
+
+ public void encodeEnd(FacesContext context, UIComponent component)
+ throws IOException {
+
+ Iterator msgIter = null;
+
+ if(component == null && context == null){
+ throw new NullPointerException(NULL_PARAMETER_ERROR_MESSAGE);
+ }
+
+ if (log.isTraceEnabled()) {
+ log.trace("begin encoding component " + component.getId());
+ }
+
+ if (!component.isRendered()) {
+ if (log.isTraceEnabled()) {
+ log.trace("stop encoding component: "
+ + component.getId() + " rendered attribute is set to false");
+ }
+ return;
+ }
+
+ UIRichMessage msgComponent = (UIRichMessage)component;
+ String clientId = msgComponent.getClientId(context);
+ String forClientId = msgComponent.getFor();
+
+ if(forClientId == null){
+ if(log.isInfoEnabled()){
+ log.info(NULL_PARAMETER_ERROR_MESSAGE);
+ }
+ }
+
+ msgIter = getMessageIterator(context, forClientId, msgComponent);
+
+ if(!msgIter.hasNext()){
+ return;
+ }
+
+ FacesMessage message = (FacesMessage)msgIter.next();
+
+ //TODO rendering here
+
+ AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
+ Set ajaxRenderedAreas = ajaxContext.getAjaxRenderedAreas();
+
+ if(null != ajaxRenderedAreas) {
+ ajaxRenderedAreas.add(clientId);
+ }
+ }
+
+ protected Iterator getMessageIterator(FacesContext context, String forClientId, UIComponent component){
+
+ Iterator msgIter = null;
+
+ if(forClientId != null){
+
+ if(forClientId.length() == 0){
+ msgIter = context.getMessages(null);
+ }else{
+ UIComponent result = findForComponent(context, forClientId,component);
+
+ if (result == null) {
+ msgIter = Collections.EMPTY_LIST.iterator();
+ } else {
+ msgIter = context.getMessages(result.getClientId(context));
+ }
+ }
+ }else{
+ msgIter = context.getMessages();
+ }
+
+ return msgIter;
+ }
+
+ protected UIComponent findForComponent(FacesContext context, String forClientId, UIComponent component) {
+
+ if(null == forClientId || forClientId.length() == 0) {
+ return null;
+ }
+
+ UIComponent result = null;
+ UIComponent parent = component;
+
+ try {
+ while(parent != null) {
+ result = parent.findComponent(forClientId);
+
+ if(result != null){
+ break;
+ }
+ parent = parent.getParent();
+ }
+
+ if(result == null) {
+ result = findComponentBelow(context.getViewRoot(), forClientId);
+ }
+
+ } catch(Throwable t) {
+ throw new RuntimeException(COMPONENT_NOT_FOUND_IN_VIEW + ":"+ forClientId);
+ }
+
+ if(result == null) {
+ if(log.isWarnEnabled()) {
+ log.warn(COMPONENT_NOT_FOUND_IN_VIEW + ":"+ forClientId);
+ }
+ }
+
+ return result;
+ }
+
+ protected UIComponent findComponentBelow(UIComponent startComponent, String forClientId){
+
+ UIComponent retComp = null;
+ List children = startComponent.getChildren();
+
+ for(int i = 0, size = children.size(); i < size; i++){
+ UIComponent comp = (UIComponent) children.get(i);
+
+ if(comp instanceof NamingContainer){
+ retComp = comp.findComponent(forClientId);
+ }
+
+ if(retComp == null){
+ if(comp.getChildCount() > 0){
+ retComp = findComponentBelow(comp, forClientId);
+ }
+ }
+
+ if(retComp != null)
+ break;
+ }
+
+ return retComp;
+ };
+
+ protected Class getComponentClass() {
+ return getClass();
+ }
}
\ No newline at end of file
Modified: trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx
===================================================================
--- trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx 2007-07-18 15:35:33 UTC (rev 1678)
+++ trunk/sandbox/ui/message/src/main/templates/org/richfaces/message.jspx 2007-07-18 15:39:20 UTC (rev 1679)
@@ -11,5 +11,12 @@
baseclass="org.richfaces.renderkit.html.RichMessageBaseRenderer"
component="org.richfaces.component.UIRichMessage"
>
+ <f:clientId var="clientId" />
+
+ <div id="#{clientId}:m">
+ <span>
+ <vcp:body/>
+ </span>
+ </div>
</f:root>
\ No newline at end of file
17 years, 6 months
JBoss Rich Faces SVN: r1678 - in branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces: renderkit and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-07-18 11:35:33 -0400 (Wed, 18 Jul 2007)
New Revision: 1678
Removed:
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateEvent.java
Modified:
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
Added currentDateString to CurrentDateEvent
Added CurrentDateEvent handling
Added updateCurrentDate method
Removed updateModel method
Modified: branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-07-18 15:28:21 UTC (rev 1677)
+++ branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-07-18 15:35:33 UTC (rev 1678)
@@ -34,6 +34,8 @@
import java.util.Set;
import java.util.TimeZone;
+import javax.faces.application.FacesMessage;
+//import javax.faces.component.MessageFactory;
import javax.faces.component.UIComponent;
import javax.faces.component.UIInput;
import javax.faces.component.UIViewRoot;
@@ -52,7 +54,7 @@
import org.ajax4jsf.framework.ajax.AjaxEvent;
import org.richfaces.renderkit.CalendarDataModelItemAdaptor;
import org.richfaces.renderkit.CalendarRendererBase;
-import org.richfaces.renderkit.CurrentDateEvent;
+import org.richfaces.renderkit.CurrentDateChangeEvent;
// import org.richfaces.renderkit.html.BaseGradient.Data;
@@ -103,58 +105,33 @@
public Date getConvertedValue(FacesContext context, String currentDateString)
throws ConverterException {
-
+
DateTimeConverter datetime = new DateTimeConverter();
datetime.setPattern("MM/yyyy");
Date newCurrentDate = (Date) datetime.getAsObject(context, this,
currentDateString);
return newCurrentDate;
}
+ public void updateCurrentDate(FacesContext context, Date currentDate) {
- public void updateModel(FacesContext context) {
-
if (context == null) {
throw new NullPointerException();
}
+ try{
ValueBinding vb = getValueBinding("currentDate");
if (vb != null) {
- vb.setValue(context, getLocalCurrentDate());
- //setValue(null);
- //setLocalValueSet(false);
+ vb.setValue(context, currentDate);
return;
+ }else{ setCurrentDate(currentDate);}
+ }catch (Exception e) {
+//TODO Add Exceptionhandling String messageStr = e.getMessage();
+// FacesMessage message = MessageFactory.getMessage(context, CONVERSION_MESSAGE_ID);
+// message.setSeverity(FacesMessage.SEVERITY_ERROR);
+// context.addMessage(getClientId(context), message);
}
}
-
- protected Date getLocalCurrentDate() {
-
- return this.currentDate;
- }
- protected void setLocalCurrentDate(Date currentDate){
-
- this.currentDate = currentDate;
- }
- public Object saveState(FacesContext context) {
-
- Object values[] = new Object[2];
- values[0] = super.saveState(context);
- values[1] = saveAttachedState(context, currentDate);
- return (values);
-
- }
-
- public void restoreState(FacesContext context, Object state) {
-
- Object values[] = (Object[]) state;
- super.restoreState(context, values[0]);
- currentDate = (Date) restoreAttachedState(context, values[1]);
-
- }
-
-
-
- // --------------------------------------------------------
private int getLastDayOfWeek(Calendar calendar) {
int i = calendar.getFirstDayOfWeek();
if (i == calendar.getActualMinimum(Calendar.DAY_OF_WEEK)) {
@@ -209,20 +186,43 @@
public void broadcast(FacesEvent event) throws AbortProcessingException {
// TODO Auto-generated method stub
- super.broadcast(event);
if (event instanceof AjaxEvent) {
FacesContext facesContext = FacesContext.getCurrentInstance();
AjaxContext ajaxContext = AjaxContext
.getCurrentInstance(facesContext);
ajaxContext.setResponseData(getPreload());
+ } else {
+ if (event instanceof CurrentDateChangeEvent) {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ CurrentDateChangeEvent dateChangeEvent = (CurrentDateChangeEvent) event;
+ String currentDateString = dateChangeEvent.getCurrentDateString();
+
+ if (currentDateString != null) {
+ // if currentDateString is not null then event cames from apply request phase
+ try {
+ Date currentDate = getConvertedValue(facesContext, currentDateString);
+ CurrentDateChangeEvent newDateChangeEvent = new CurrentDateChangeEvent(this, currentDate);
+ newDateChangeEvent.queue();
+ } catch (Exception e) {
+ //TODO Add Exception Handling
+ }
+ }
+ else{
+ Date currentDate1 = dateChangeEvent.getCurrentDate();
+ Date currentDate2 = getCurrentDate();
+ if(!currentDate1.equals(currentDate2)){
+ updateCurrentDate(facesContext, currentDate1);
+ //TODO Add ValueChange Events for currentDate
+
+ }
+
+ }
+ } else {
+ super.broadcast(event);
+ }
+
}
- /* added recently
- if (event instanceof CurrentDateEvent) {
- event.getPhaseId();
- event.getComponent();
- }
- */
}
public Object getPreload() {
@@ -236,7 +236,8 @@
HashMap args = new HashMap();
args.put("startDate", CalendarRendererBase
.formatDate(preloadDateRange[0]));
- args.put("days", new AdaptingCollection(
+ args
+ .put("days", new AdaptingCollection(
calendarDataModelItems));
return args;
}
Modified: branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-07-18 15:28:21 UTC (rev 1677)
+++ branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-07-18 15:35:33 UTC (rev 1678)
@@ -94,18 +94,15 @@
+ DATE_SCROLL);
if (currentDateString != null) {
- ((UICalendar) component)
- .setCurrentDate(convertCurrentDate(currentDateString));
+// ((UICalendar) component)
+// .setCurrentDate(convertCurrentDate(currentDateString));
+ CurrentDateChangeEvent ev = new CurrentDateChangeEvent(component, currentDateString) ;
+ ev.setPhaseId(PhaseId.PROCESS_VALIDATIONS);
+ ev.queue();
+
+ new AjaxEvent(component).queue();
}
-
-
-
-// CurrentDateEvent ev = new CurrentDateEvent(component) ;
-// ev.setPhaseId(PhaseId.PROCESS_VALIDATIONS);
-// ev.queue();
-
- new AjaxEvent(component).queue();
}
Deleted: branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateEvent.java
===================================================================
--- branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateEvent.java 2007-07-18 15:28:21 UTC (rev 1677)
+++ branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/renderkit/CurrentDateEvent.java 2007-07-18 15:35:33 UTC (rev 1678)
@@ -1,23 +0,0 @@
-package org.richfaces.renderkit;
-
-import javax.faces.component.UIComponent;
-import javax.faces.event.FacesEvent;
-import javax.faces.event.FacesListener;
-
-public class CurrentDateEvent extends FacesEvent {
-
-
- public CurrentDateEvent(UIComponent component) {
- super(component);
- }
-
- public boolean isAppropriateListener(FacesListener listener) {
- // TODO Auto-generated method stub
- return false;
- }
-
- public void processListener(FacesListener listener) {
- // TODO Auto-generated method stub
- }
-
-}
17 years, 6 months
JBoss Rich Faces SVN: r1677 - branches/3.0.2/sandbox/tooltip/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: dbiatenia
Date: 2007-07-18 11:28:21 -0400 (Wed, 18 Jul 2007)
New Revision: 1677
Modified:
branches/3.0.2/sandbox/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java
Log:
Modified: branches/3.0.2/sandbox/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java
===================================================================
--- branches/3.0.2/sandbox/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java 2007-07-18 13:41:35 UTC (rev 1676)
+++ branches/3.0.2/sandbox/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java 2007-07-18 15:28:21 UTC (rev 1677)
@@ -13,6 +13,7 @@
import org.ajax4jsf.framework.skin.Skin;
import org.ajax4jsf.framework.util.javascript.JSFunction;
import org.ajax4jsf.framework.util.javascript.JSFunctionDefinition;
+import org.ajax4jsf.framework.util.javascript.JSReference;
import org.richfaces.component.UIToolTip;
public class ToolTipRenderer extends AjaxComponentRendererBase{
@@ -52,6 +53,9 @@
String refreshTooltipInDOM = ";" + getJsVarName(context, component) + ".toolTip = $('" + component.getClientId(context) + "');";
String showNewToolTip = ";" + getJsVarName(context, component) + ".displayDiv();";
+ //enable ajaxSingle mode, i.e. we do not need to submit all form controls to get tooltip content
+ eventOptions.put("control", JSReference.THIS);
+
if(eventOptions.containsKey("oncomplete")){
JSFunctionDefinition onComplete = (JSFunctionDefinition)eventOptions.get("oncomplete");
onComplete.addToBody(refreshTooltipInDOM + showNewToolTip);
17 years, 6 months
JBoss Rich Faces SVN: r1676 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-07-18 09:41:35 -0400 (Wed, 18 Jul 2007)
New Revision: 1676
Added:
trunk/docs/userguide/en/src/main/resources/images/suggestionbox4.gif
Log:
http://jira.jboss.com/jira/browse/RF-451
Added: trunk/docs/userguide/en/src/main/resources/images/suggestionbox4.gif
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/suggestionbox4.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 6 months