JBoss Rich Faces SVN: r19924 - trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/samples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-11-04 05:14:09 -0400 (Thu, 04 Nov 2010)
New Revision: 19924
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/samples/simpleScrolling-sample.xhtml
Log:
layout improvements
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/samples/simpleScrolling-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/samples/simpleScrolling-sample.xhtml 2010-11-04 09:06:34 UTC (rev 19923)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/dataScroller/samples/simpleScrolling-sample.xhtml 2010-11-04 09:14:09 UTC (rev 19924)
@@ -5,8 +5,17 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
+<style>
+ .rf-dt{
+ width:400px;
+ }
+ .acent{
+ text-align: center;
+ }
+</style>
<h:form id="form">
- <rich:dataScroller for="table" maxPages="6" />
+ <h:panelGrid columnClasses="acent">
+ <rich:dataScroller for="table" maxPages="5" />
<rich:dataTable value="#{carsBean.allInventoryItems}" var="car"
id="table" rows="10">
<rich:column accept="#{carsFiteringBean.acceptVendor}">
@@ -40,6 +49,7 @@
<h:outputText value="#{car.vin}" />
</rich:column>
</rich:dataTable>
- <rich:dataScroller for="table" maxPages="6" />
+ <rich:dataScroller for="table" maxPages="5" />
+ </h:panelGrid>
</h:form>
</ui:composition>
\ No newline at end of file
14 years, 2 months
JBoss Rich Faces SVN: r19923 - trunk/examples/richfaces-showcase/src/main/webapp/richfaces/calendar/samples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-11-04 05:06:34 -0400 (Thu, 04 Nov 2010)
New Revision: 19923
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/calendar/samples/calendar-sample.xhtml
Log:
https://jira.jboss.org/browse/RF-9595 - fixed and demo updated
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/calendar/samples/calendar-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/calendar/samples/calendar-sample.xhtml 2010-11-04 08:27:10 UTC (rev 19922)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/calendar/samples/calendar-sample.xhtml 2010-11-04 09:06:34 UTC (rev 19923)
@@ -30,8 +30,6 @@
datePattern="#{calendarBean.pattern}"
showApplyButton="#{calendarBean.showApply}" cellWidth="24px"
cellHeight="22px" style="width:200px">
- <f:convertDateTime pattern="#{calendarBean.pattern}"
- onchange="alert('1')" />
</rich:calendar>
</a4j:outputPanel>
<h:panelGrid columns="2">
14 years, 2 months
JBoss Rich Faces SVN: r19922 - in trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo: tables and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-11-04 04:27:10 -0400 (Thu, 04 Nov 2010)
New Revision: 19922
Added:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/
Modified:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tables/CarsBean.java
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tree/TreeBean.java
Log:
removing logging with println
Modified: trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tables/CarsBean.java
===================================================================
--- trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tables/CarsBean.java 2010-11-04 08:07:55 UTC (rev 19921)
+++ trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tables/CarsBean.java 2010-11-04 08:27:10 UTC (rev 19922)
@@ -148,7 +148,6 @@
break;
}
} catch (Exception e) {
- System.out.println("!!!!!!loadallInventoryItems Error: " + e.getMessage());
e.printStackTrace();
}
}
@@ -187,7 +186,6 @@
iiList = new ArrayList<InventoryItem>(Arrays.asList(demoInventoryItemArrays));
} catch (Exception e) {
- System.out.println("!!!!!!createCategory Error: " + e.getMessage());
e.printStackTrace();
}
Modified: trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tree/TreeBean.java
===================================================================
--- trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tree/TreeBean.java 2010-11-04 08:07:55 UTC (rev 19921)
+++ trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tree/TreeBean.java 2010-11-04 08:27:10 UTC (rev 19922)
@@ -36,6 +36,7 @@
import org.richfaces.demo.tree.model.CD;
import org.richfaces.demo.tree.model.Company;
import org.richfaces.demo.tree.model.Country;
+import org.richfaces.event.TreeSelectionEvent;
/**
* @author Ilya Shaikovsky
@@ -87,6 +88,10 @@
return company;
}
+ private void selectionListener(TreeSelectionEvent event) {
+ //TODO: implement when ready
+ }
+
public List<CDXmlDescriptor> getCdXmlDescriptors() {
return cdXmlDescriptors;
}
14 years, 2 months
JBoss Rich Faces SVN: r19921 - trunk/examples/richfaces-showcase/src/main/webapp/richfaces/repeat/samples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-11-04 04:07:55 -0400 (Thu, 04 Nov 2010)
New Revision: 19921
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/repeat/samples/simpleGrid-sample.xhtml
Log:
layout minor corrections.
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/repeat/samples/simpleGrid-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/repeat/samples/simpleGrid-sample.xhtml 2010-11-04 07:48:25 UTC (rev 19920)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/repeat/samples/simpleGrid-sample.xhtml 2010-11-04 08:07:55 UTC (rev 19921)
@@ -6,27 +6,29 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:form>
- <a4j:outputPanel id="panel" layout="block">
- <a4j:repeat value="#{capitalsBean.capitals}" var="cap" rows="20"
- id="repeat">
- <rich:panel style="float:left; width:200px; padding:5px;">
- <f:facet name="header">
- <h:panelGroup>
- <h:graphicImage value="#{cap.stateFlag}" />
- <h:outputText value="#{cap.state}" style="font-weight:bold" />
- </h:panelGroup>
- </f:facet>
- <h:panelGrid columns="2">
- <h:outputText value="State Capital" style="font-weight:bold" />
- <h:outputText value="#{cap.name}" />
- <h:outputText value="State TimeZone" style="font-weight:bold" />
- <h:outputText value="#{cap.timeZone}" />
- </h:panelGrid>
- </rich:panel>
- </a4j:repeat>
- </a4j:outputPanel>
- <a4j:outputPanel layout="block">
- <rich:dataScroller for="repeat" render="panel" />
- </a4j:outputPanel>
+ <h:panelGrid columns="1">
+ <a4j:outputPanel id="panel" layout="block">
+ <a4j:repeat value="#{capitalsBean.capitals}" var="cap" rows="20"
+ id="repeat">
+ <rich:panel style="float:left; width:200px; padding:5px;">
+ <f:facet name="header">
+ <h:panelGroup>
+ <h:graphicImage value="#{cap.stateFlag}" />
+ <h:outputText value="#{cap.state}" style="font-weight:bold" />
+ </h:panelGroup>
+ </f:facet>
+ <h:panelGrid columns="2">
+ <h:outputText value="State Capital" style="font-weight:bold" />
+ <h:outputText value="#{cap.name}" />
+ <h:outputText value="State TimeZone" style="font-weight:bold" />
+ <h:outputText value="#{cap.timeZone}" />
+ </h:panelGrid>
+ </rich:panel>
+ </a4j:repeat>
+ </a4j:outputPanel>
+ <a4j:outputPanel layout="block">
+ <rich:dataScroller for="repeat" render="panel" />
+ </a4j:outputPanel>
+ </h:panelGrid>
</h:form>
</ui:composition>
\ No newline at end of file
14 years, 2 months
JBoss Rich Faces SVN: r19920 - trunk/examples/richfaces-showcase/src/main/webapp/richfaces/inplaceSelect/samples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-11-04 03:48:25 -0400 (Thu, 04 Nov 2010)
New Revision: 19920
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/inplaceSelect/samples/inplaceSelect-sample.xhtml
Log:
alert's removed
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/inplaceSelect/samples/inplaceSelect-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/inplaceSelect/samples/inplaceSelect-sample.xhtml 2010-11-04 00:38:03 UTC (rev 19919)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/inplaceSelect/samples/inplaceSelect-sample.xhtml 2010-11-04 07:48:25 UTC (rev 19920)
@@ -14,8 +14,7 @@
<h:outputText value="Simples select"></h:outputText>
</f:facet>
<rich:inplaceSelect defaultLabel="Click here to edit"
- openOnEdit="true" saveOnBlur="false" oninputchange="alert('10')"
- onchange="alert('1')" oninputkeydown="alert('kdown')">
+ openOnEdit="true">
<f:selectItem itemValue="0" itemLabel="Option 1" />
<f:selectItem itemValue="1" itemLabel="Option 2" />
<f:selectItem itemValue="2" itemLabel="Option 3" />
14 years, 2 months
JBoss Rich Faces SVN: r19919 - trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-11-03 20:38:03 -0400 (Wed, 03 Nov 2010)
New Revision: 19919
Modified:
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/AccordionItem.js
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/accordion.ecss
Log:
https://jira.jboss.org/browse/RF-9274
Modified: trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/AccordionItem.js
===================================================================
--- trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/AccordionItem.js 2010-11-03 22:19:35 UTC (rev 19918)
+++ trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/AccordionItem.js 2010-11-04 00:38:03 UTC (rev 19919)
@@ -47,7 +47,7 @@
if (this.isSelected()) {
var item = this;
- $(this.togglePanelId).ready(function () {
+ $(document).ready(function () {
item.__fitToHeight(item.getTogglePanel());
});
}
Modified: trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/accordion.ecss
===================================================================
--- trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/accordion.ecss 2010-11-03 22:19:35 UTC (rev 19918)
+++ trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/accordion.ecss 2010-11-04 00:38:03 UTC (rev 19919)
@@ -21,6 +21,9 @@
font-family: '#{richSkin.headerFamilyFont}';
font-size: '#{richSkin.headerSizeFont}';
cursor: pointer;
+
+ /* gain layout trigger for IE7 */
+ min-height: 0px;
}
.rf-ac-itm-hdr-act {}
14 years, 2 months
JBoss Rich Faces SVN: r19918 - in trunk/cdk/generator/src/main/java/org/richfaces/cdk: templatecompiler and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-11-03 18:19:35 -0400 (Wed, 03 Nov 2010)
New Revision: 19918
Modified:
trunk/cdk/generator/src/main/java/org/richfaces/cdk/model/ComponentLibrary.java
trunk/cdk/generator/src/main/java/org/richfaces/cdk/templatecompiler/RendererClassGenerator.java
Log:
https://jira.jboss.org/browse/RF-9632
Modified: trunk/cdk/generator/src/main/java/org/richfaces/cdk/model/ComponentLibrary.java
===================================================================
--- trunk/cdk/generator/src/main/java/org/richfaces/cdk/model/ComponentLibrary.java 2010-11-03 19:52:47 UTC (rev 19917)
+++ trunk/cdk/generator/src/main/java/org/richfaces/cdk/model/ComponentLibrary.java 2010-11-03 22:19:35 UTC (rev 19918)
@@ -152,6 +152,19 @@
return components;
}
+ public ComponentModel getComponentByRenderer(FacesId family, FacesId rendererType) {
+ if (family == null) {
+ return null;
+ }
+
+ for (ComponentModel component : components) {
+ if (family.equals(component.getFamily()) && rendererType.equals(component.getRendererType())) {
+ return component;
+ }
+ }
+ return null;
+ }
+
public ComponentModel getComponentByFamily(FacesId family) {
if (family == null) {
return null;
@@ -161,6 +174,7 @@
if (family.equals(component.getFamily())) {
return component;
}
+
}
return null;
}
Modified: trunk/cdk/generator/src/main/java/org/richfaces/cdk/templatecompiler/RendererClassGenerator.java
===================================================================
--- trunk/cdk/generator/src/main/java/org/richfaces/cdk/templatecompiler/RendererClassGenerator.java 2010-11-03 19:52:47 UTC (rev 19917)
+++ trunk/cdk/generator/src/main/java/org/richfaces/cdk/templatecompiler/RendererClassGenerator.java 2010-11-03 22:19:35 UTC (rev 19918)
@@ -78,7 +78,7 @@
}
private ComponentModel findComponentByRenderer(RendererModel renderer, ComponentLibrary library) {
- return library.getComponentByFamily(renderer.getFamily());
+ return library.getComponentByRenderer(renderer.getFamily(), renderer.getId());
}
/*
14 years, 2 months
JBoss Rich Faces SVN: r19917 - trunk/core/impl/src/main/resources/META-INF/resources.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-11-03 15:52:47 -0400 (Wed, 03 Nov 2010)
New Revision: 19917
Modified:
trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js
Log:
https://jira.jboss.org/browse/RF-9588
Modified: trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js
===================================================================
--- trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js 2010-11-03 19:18:27 UTC (rev 19916)
+++ trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js 2010-11-03 19:52:47 UTC (rev 19917)
@@ -373,7 +373,7 @@
};
var getExtensionResponseElement = function(responseXML) {
- return jQuery("partial-response > extension#org\\.richfaces\\.extension", responseXML);
+ return jQuery("partial-response extension#org\\.richfaces\\.extension", responseXML);
};
var JSON_STRING_START = /^\s*(\[|\{)/;
14 years, 2 months
JBoss Rich Faces SVN: r19916 - in trunk/ui/iteration/ui/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-11-03 15:18:27 -0400 (Wed, 03 Nov 2010)
New Revision: 19916
Modified:
trunk/ui/iteration/ui/src/main/resources/META-INF/resources/org.richfaces/tree.js
trunk/ui/iteration/ui/src/main/templates/tree.template.xml
Log:
https://jira.jboss.org/browse/RF-9628
Modified: trunk/ui/iteration/ui/src/main/resources/META-INF/resources/org.richfaces/tree.js
===================================================================
--- trunk/ui/iteration/ui/src/main/resources/META-INF/resources/org.richfaces/tree.js 2010-11-03 19:16:57 UTC (rev 19915)
+++ trunk/ui/iteration/ui/src/main/resources/META-INF/resources/org.richfaces/tree.js 2010-11-03 19:18:27 UTC (rev 19916)
@@ -38,8 +38,7 @@
name: "TreeNode",
init: function (id) {
- this.id = id;
- this.elt = $(this.attachToDom());
+ this.__rootElt = $(this.attachToDom(id));
this.__children = new Array();
@@ -47,10 +46,6 @@
},
destroy: function() {
- if (this.isSelected()) {
- this.getTree().__resetSelection();
- }
-
if (this.parent) {
this.parent.removeChild(this);
this.parent = null;
@@ -60,22 +55,22 @@
this.__clearChildren();
- this.elt = null;
+ this.__rootElt = null;
},
__initializeChildren: function() {
var _this = this;
- this.elt.children(".rf-tr-nd").each(function() {
+ this.__rootElt.children(".rf-tr-nd").each(function() {
_this.addChild(new richfaces.ui.TreeNode(this));
});
},
__getHandle: function() {
- return this.elt.find(" > .rf-trn:first > .rf-trn-hnd:first");
+ return this.__rootElt.find(" > .rf-trn:first > .rf-trn-hnd:first");
},
__getContent: function() {
- return this.elt.find(" > .rf-trn:first > .rf-trn-cnt:first");
+ return this.__rootElt.find(" > .rf-trn:first > .rf-trn-cnt:first");
},
getParent: function() {
@@ -146,8 +141,8 @@
__updateClientToggleStateInput: function(newState) {
if (!this.__clientToggleStateInput) {
- this.__clientToggleStateInput = $("<input type='hidden' />").appendTo(this.elt)
- .attr({name: this.elt.attr("id") + NEW_NODE_TOGGLE_STATE});
+ this.__clientToggleStateInput = $("<input type='hidden' />").appendTo(this.__rootElt)
+ .attr({name: this.getId() + NEW_NODE_TOGGLE_STATE});
}
this.__clientToggleStateInput.val(newState.toString());
@@ -161,7 +156,7 @@
switch (tree.getToggleType()) {
case 'client':
- this.elt.addClass(TREE_CLASSES[newState ? 1 : 0]).removeClass(TREE_CLASSES[!newState ? 1 : 0]);
+ this.__rootElt.addClass(TREE_CLASSES[newState ? 1 : 0]).removeClass(TREE_CLASSES[!newState ? 1 : 0]);
this.__getHandle().addClass(TREE_HANDLE_CLASSES[newState ? 1 : 0]).removeClass(TREE_HANDLE_CLASSES[!newState ? 1 : 0]);
this.__updateClientToggleStateInput(newState);
break;
@@ -204,7 +199,7 @@
},
getId: function() {
- return richfaces.getDomElement(this.id).id;
+ return this.__rootElt.attr('id');
}
});
@@ -245,8 +240,10 @@
name: "Tree",
init: function (id, options) {
- this.$super.init.call(this, id);
+ this.__treeRootElt = $(richfaces.getDomElement(id));
+ this.$super.init.call(this, this.__treeRootElt);
+
this.__toggleType = options.toggleType || 'ajax';
this.__selectionType = options.selectionType || 'client';
@@ -254,20 +251,21 @@
this.__ajaxSubmitFunction = new Function("event", "source", "params", options.ajaxSubmitFunction);
}
- this.__selectionInput = $(" > .rf-tr-sel-inp", this.elt);
+ this.__selectionInput = $(" > .rf-tr-sel-inp", this.__treeRootElt);
- this.elt.delegate(".rf-trn-hnd", "click", this, this.__itemHandleClicked);
- this.elt.delegate(".rf-trn-cnt", "mousedown", this, this.__itemContentClicked);
+ this.__treeRootElt.delegate(".rf-trn-hnd", "click", this, this.__itemHandleClicked);
+ this.__treeRootElt.delegate(".rf-trn-cnt", "mousedown", this, this.__itemContentClicked);
this.__updateSelection();
},
destroy: function() {
- this.$super.destroy();
+ this.$super.destroy.call(this);
- this.elt.undelegate(".rf-trn-hnd", "click", this.__itemHandleClicked);
- this.elt.undelegate(".rf-trn-cnt", "mousedown", this.__itemContentClicked);
-
+ this.__treeRootElt.undelegate(".rf-trn-hnd", "click", this.__itemHandleClicked);
+ this.__treeRootElt.undelegate(".rf-trn-cnt", "mousedown", this.__itemContentClicked);
+ this.__treeRootElt = null;
+
this.__itemContentClickedHandler = null;
this.__selectionInput = null;
this.__ajaxSubmitFunction = null;
@@ -303,7 +301,7 @@
clientParams[toggleSource + NEW_NODE_TOGGLE_STATE] = newNodeState;
if (this.getToggleType() == 'server') {
- var form = $(richfaces.getDomElement(this.id)).closest('form');
+ var form = this.__treeRootElt.closest('form');
richfaces.submitForm(form, clientParams);
} else {
this.__ajaxSubmitFunction(event, toggleSource + ncSepChar + DECODER_HELPER_ID, clientParams);
@@ -334,7 +332,7 @@
if (this.getSelectionType() == 'client') {
this.__updateSelection();
} else {
- this.__ajaxSubmitFunction(null, this.id);
+ this.__ajaxSubmitFunction(null, this.getId());
}
},
Modified: trunk/ui/iteration/ui/src/main/templates/tree.template.xml
===================================================================
--- trunk/ui/iteration/ui/src/main/templates/tree.template.xml 2010-11-03 19:16:57 UTC (rev 19915)
+++ trunk/ui/iteration/ui/src/main/templates/tree.template.xml 2010-11-03 19:18:27 UTC (rev 19916)
@@ -11,8 +11,8 @@
<cdk:renderer-type>org.richfaces.TreeRenderer</cdk:renderer-type>
<cdk:renders-children>true</cdk:renders-children>
+ <cdk:resource-dependency name="ajax.reslib" library="org.richfaces" />
<cdk:resource-dependency name="base-component.reslib" library="org.richfaces" />
- <cdk:resource-dependency name="ajax.reslib" library="org.richfaces" />
<cdk:resource-dependency name="tree.js" library="org.richfaces" />
<cdk:resource-dependency name="tree.ecss" library="org.richfaces" />
14 years, 2 months
JBoss Rich Faces SVN: r19915 - trunk/core/impl/src/main/resources/META-INF/resources.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-11-03 15:16:57 -0400 (Wed, 03 Nov 2010)
New Revision: 19915
Modified:
trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js
Log:
https://jira.jboss.org/browse/RF-9343
Modified: trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js
===================================================================
--- trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js 2010-11-03 15:01:37 UTC (rev 19914)
+++ trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js 2010-11-03 19:16:57 UTC (rev 19915)
@@ -770,10 +770,21 @@
};
- // move this code to somewhere
- if (typeof jsf != 'undefined') {
- jsf.ajax.addOnEvent(ajaxOnComplete);
+ var attachAjaxDOMCleaner = function() {
+ // move this code to somewhere
+ if (typeof jsf != 'undefined' && jsf.ajax) {
+ jsf.ajax.addOnEvent(ajaxOnComplete);
+
+ return true;
+ }
+
+ return false;
+ };
+
+ if (!attachAjaxDOMCleaner()) {
+ jQuery(document).ready(attachAjaxDOMCleaner);
}
+
if (window.addEventListener) {
window.addEventListener("unload", richfaces.cleanDom, false);
} else {
14 years, 2 months