JBoss Rich Faces SVN: r5174 - in branches/3.1.x/ui/scrollableDataTable/src/main: javascript/ClientUI/common/box and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-01-08 07:08:18 -0500 (Tue, 08 Jan 2008)
New Revision: 5174
Modified:
branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/common/box/Box.js
branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridFooter.js
branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
Log:
merged scrollable-data-table with trunk
Modified: branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
===================================================================
--- branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2008-01-08 11:59:21 UTC (rev 5173)
+++ branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2008-01-08 12:08:18 UTC (rev 5174)
@@ -72,7 +72,7 @@
int width = 0;
- String widthPx = (String)column.getAttributes().get("width");
+ String widthPx = getColumnWidth(column);
widthPx = getFormattedWidth(widthPx);
prevWidth = state.getSumWidth();
width = prevWidth + Integer.parseInt(widthPx);
@@ -86,7 +86,7 @@
public void renderContent(FacesContext context, UIComponent column, ResponseWriter writer, ScrollableDataTableRendererState state) throws IOException {
writer.startElement("col", column);
- getUtils().writeAttribute(writer, "width", column.getAttributes().get("width"));
+ getUtils().writeAttribute(writer, "width", getColumnWidth(column));
getUtils().writeAttribute(writer, "style", column.getAttributes().get("style"));
//int cell_index = state.getCellIndex();
//Object columnClass = state.getColumnClass(cell_index);
@@ -108,7 +108,7 @@
ComponentVariables variables =
ComponentsVariableResolver.getVariables(headerCellTemplate, column);
- String widthPx = (String)column.getAttributes().get("width");
+ String widthPx = getColumnWidth(column);
widthPx = getFormattedWidth(widthPx);
int width = Integer.parseInt(widthPx);
@@ -956,4 +956,11 @@
return sorting;
}
+ private String getColumnWidth(UIComponent column) {
+ String width = (String) column.getAttributes().get("width");
+ if (width == null) {
+ width = "100px";
+ }
+ return width;
+ }
}
Modified: branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/common/box/Box.js
===================================================================
--- branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/common/box/Box.js 2008-01-08 11:59:21 UTC (rev 5173)
+++ branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/common/box/Box.js 2008-01-08 12:08:18 UTC (rev 5174)
@@ -69,8 +69,9 @@
return this.element;
},
getHeight: function() {
- if(this.getElement().tagName.toLowerCase() != "body") {
- var h = Element.getHeight(this.element);
+ var el = this.getElement();
+ if(el.tagName.toLowerCase() != "body") {
+ var h = el.offsetHeight;
return h>0 ? h : (this.element.boxHeight ? parseInt(this.element.boxHeight) : 0);
}
@@ -97,8 +98,9 @@
return this;
},
getWidth: function() {
- if(this.getElement().tagName.toLowerCase() != "body") {
- var w = Element.getWidth(this.element);
+ var el = this.getElement();
+ if(el.tagName.toLowerCase() != "body") {
+ var w = el.offsetWidth;
return w>0 ? w : (this.element.boxWidth ? parseInt(this.element.boxWidth) : 0);
}
Modified: branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridFooter.js
===================================================================
--- branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridFooter.js 2008-01-08 11:59:21 UTC (rev 5173)
+++ branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridFooter.js 2008-01-08 12:08:18 UTC (rev 5174)
@@ -102,10 +102,11 @@
this.helpObj = new ClientUI.common.box.Box(this.frozenContentBox.getElement(), null, true);
this.defaultWidth = this.grid.getHeader().defaultWidth;
- this.defaultHeight = Element.getHeight(this.headerRow.getElement().rows[0].cells[0]);
if(ClientUILib.isGecko) {
this.defaultHeight -= this.getBorderWidth("tb") + this.getPadding("tb");
//this.defaultWidth -= this.getBorderWidth("lr") + this.getPadding("lr");
+ } else {
+ this.defaultHeight = this.headerRow.getElement().rows[0].cells[0].offsetHeight;
}
this.frozenSubstrate = new ClientUI.common.box.Box(this.grid.getElement().id + ":fs", this.getElement());
@@ -115,10 +116,11 @@
},
updateSize: function() {
this.defaultWidth = this.grid.getHeader().defaultWidth;
- this.defaultHeight = Element.getHeight(this.headerRow.getElement().rows[0].cells[0]);
if(ClientUILib.isGecko) {
this.defaultHeight -= this.getBorderWidth("tb") + this.getPadding("tb");
//this.defaultWidth -= this.getBorderWidth("lr") + this.getPadding("lr");
+ } else {
+ this.defaultHeight = this.headerRow.getElement().rows[0].cells[0].offsetHeight;
}
this.setHeight(this.defaultHeight);
this.setWidth(this.defaultWidth);
Modified: branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
===================================================================
--- branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2008-01-08 11:59:21 UTC (rev 5173)
+++ branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2008-01-08 12:08:18 UTC (rev 5174)
@@ -140,7 +140,7 @@
if(columns[j].sortable)
Event.observe(cell, 'click', eventCellMouseDown);
- h = Element.getHeight(cell);
+ h = cell.offsetHeigh;
if(h > defaultHeight) defaultHeight = h;
defaultWidth += columns[j].width;
columns[j].object = new ClientUI.common.box.InlineBox(cell, null, true);
@@ -187,7 +187,7 @@
if(columns[j].sortable)
Event.observe(cell, 'click', eventCellMouseDown);
- h = Element.getHeight(cell);
+ h = cell.offsetHeight;
if(h > defaultHeight) defaultHeight = h;
defaultWidth += columns[j].width;
columns[j].object = new ClientUI.common.box.InlineBox(cell, null, true);
@@ -259,7 +259,7 @@
cells.each(function(cell) {
if(i<columns.length) {
columns[i].width = parseInt(cols[j].width);
- h = Element.getHeight(cell);
+ h = cell.offsetHeigh;
if(h > defaultHeight) defaultHeight = h;
defaultWidth += columns[i].width;
}
@@ -273,7 +273,7 @@
if(i<columns.length) {
columns[i].width = parseInt(cols[j].width);
- h = Element.getHeight(cell);
+ h = cell.offsetHeigh;
if(h > defaultHeight) defaultHeight = h;
defaultWidth += columns[i].width;
}
17 years
JBoss Rich Faces SVN: r5173 - trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-01-08 06:59:21 -0500 (Tue, 08 Jan 2008)
New Revision: 5173
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
Log:
merged scrollable-data-table with 3/1/x branch
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-01-08 11:42:12 UTC (rev 5172)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-01-08 11:59:21 UTC (rev 5173)
@@ -72,8 +72,6 @@
// create scroll box
this.scrollBox = new ClientUI.common.box.ScrollableBox(this.gridId + ":scb", this.getElement());
- this.scrollBox.setWidth(this.getWidth());
- this.scrollBox.setHeight(this.getHeight());
this.sizeBox = new ClientUI.common.box.Box(this.gridId + ":sb", this.scrollBox.getElement());
var normal = null, frozen = null;
@@ -184,7 +182,7 @@
var row = this.templNormal.getElement().rows[0];
if(row) {
- this.defaultRowHeight = row.cells[0].offsetHeigh;
+ this.defaultRowHeight = row.cells[0].offsetHeight;
}
//if(ClientUILib.isGecko) {
// this.defaultRowHeight -= this.getBorderWidth("tb") + this.getPadding("tb");
@@ -201,11 +199,13 @@
var totalWidth = this.grid.getColumnsTotalWidth();
this.scrollBox.moveTo(0, 0);
- this.scrollBox.setWidth(this.getWidth());
- this.scrollBox.setHeight(this.getHeight());
+ var height = this.element.offsetHeight;
+ var width = this.element.offsetWidth;
+ this.scrollBox.setWidth(width);
+ this.scrollBox.setHeight(height);
+
var scrollLeft = this.grid.getScrollOffset();
- var height = this.scrollBox.getHeight();
var fixH = this.grid.getFooter() ? this.grid.getFooter().getHeight() : 0;
if(fixH > height) fixH = 0;
@@ -216,10 +216,8 @@
this.sizeBox.moveTo(0, 0);
this.sizeBox.setWidth(totalWidth);
- this.scrollBox.setWidth(this.getWidth()+1);
- this.scrollBox.setHeight(this.getHeight()+1);
- this.scrollBox.setWidth(this.getWidth());
- this.scrollBox.setHeight(this.getHeight());
+ this.scrollBox.setWidth(width);
+ this.scrollBox.setHeight(height);
height = this.scrollBox.getElement().clientHeight;
17 years
JBoss Rich Faces SVN: r5172 - branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-01-08 06:42:12 -0500 (Tue, 08 Jan 2008)
New Revision: 5172
Modified:
branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
Log:
RF-726
Modified: branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
--- branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-01-08 11:07:29 UTC (rev 5171)
+++ branches/3.1.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-01-08 11:42:12 UTC (rev 5172)
@@ -72,8 +72,6 @@
// create scroll box
this.scrollBox = new ClientUI.common.box.ScrollableBox(this.gridId + ":scb", this.getElement());
- this.scrollBox.setWidth(this.getWidth());
- this.scrollBox.setHeight(this.getHeight());
this.sizeBox = new ClientUI.common.box.Box(this.gridId + ":sb", this.scrollBox.getElement());
var normal = null, frozen = null;
@@ -184,7 +182,7 @@
var row = this.templNormal.getElement().rows[0];
if(row) {
- this.defaultRowHeight = Element.getHeight(row.cells[0]);
+ this.defaultRowHeight = row.cells[0].offsetHeight;
}
//if(ClientUILib.isGecko) {
// this.defaultRowHeight -= this.getBorderWidth("tb") + this.getPadding("tb");
@@ -201,11 +199,13 @@
var totalWidth = this.grid.getColumnsTotalWidth();
this.scrollBox.moveTo(0, 0);
- this.scrollBox.setWidth(this.getWidth());
- this.scrollBox.setHeight(this.getHeight());
+ var height = this.element.offsetHeight;
+ var width = this.element.offsetWidth;
+ this.scrollBox.setWidth(width);
+ this.scrollBox.setHeight(height);
+
var scrollLeft = this.grid.getScrollOffset();
- var height = this.scrollBox.getHeight();
var fixH = this.grid.getFooter() ? this.grid.getFooter().getHeight() : 0;
if(fixH > height) fixH = 0;
@@ -216,10 +216,8 @@
this.sizeBox.moveTo(0, 0);
this.sizeBox.setWidth(totalWidth);
- this.scrollBox.setWidth(this.getWidth()+1);
- this.scrollBox.setHeight(this.getHeight()+1);
- this.scrollBox.setWidth(this.getWidth());
- this.scrollBox.setHeight(this.getHeight());
+ this.scrollBox.setWidth(width);
+ this.scrollBox.setHeight(height);
height = this.scrollBox.getElement().clientHeight;
17 years
JBoss Rich Faces SVN: r5171 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-01-08 06:07:29 -0500 (Tue, 08 Jan 2008)
New Revision: 5171
Modified:
trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
Log:
http://jira.jboss.com/jira/browse/RF-920 - Fix Classes name 'rich-sdt-footer-row' of ScrollableDataTable.
Modified: trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2008-01-08 11:07:14 UTC (rev 5170)
+++ trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2008-01-08 11:07:29 UTC (rev 5171)
@@ -500,7 +500,7 @@
</row>
<row>
- <entry>rich-sdt-header-raw</entry>
+ <entry>rich-sdt-header-row</entry>
<entry>Defines styles for a header raw</entry>
</row>
@@ -517,7 +517,7 @@
</row>
<row>
- <entry>rich-sdt-footer-raw</entry>
+ <entry>rich-sdt-footer-row</entry>
<entry>Defines styles for a footer raw</entry>
</row>
17 years
JBoss Rich Faces SVN: r5170 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-01-08 06:07:14 -0500 (Tue, 08 Jan 2008)
New Revision: 5170
Modified:
trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml
Log:
http://jira.jboss.com/jira/browse/RF-920 - Delete empty 'Example' section in Paint2D
Modified: trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml 2008-01-08 11:06:56 UTC (rev 5169)
+++ trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml 2008-01-08 11:07:14 UTC (rev 5170)
@@ -111,37 +111,35 @@
</emphasis> and <emphasis>
<property>"data"</property>
</emphasis> attributes.</para>
- <para><emphasis role="bold">Example:</emphasis>
- </para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="JAVA"><![CDATA[paintBean.java:
-
- public void paint(Graphics2D g2, Object obj) {
- // code that gets data from the data Bean (PaintData)
- PaintData data = (PaintData) obj;
- ...
- // a code drawing a rectangle
- g2.drawRect(0, 0, data.Width, data.Height);
- ...
- // some more code placing graphical data into g2 stream below
- }
-
+
+ public void paint(Graphics2D g2, Object obj) {
+ // code that gets data from the data Bean (PaintData)
+ PaintData data = (PaintData) obj;
+ ...
+ // a code drawing a rectangle
+ g2.drawRect(0, 0, data.Width, data.Height);
+ ...
+ // some more code placing graphical data into g2 stream below
+ }
+
dataBean.java:
-
+
public class PaintData implements Serializable{
private static final long serialVersionUID = 1L;
Integer Width=100;
Integer Height=50;
...
}
-
-page.xhtml:
-...
+
+ page.xhtml:
+ ...
<rich:paint2D paint="#{paint2D.paint}" data="#{paint2DModel.data}"/>
-...
+ ...
]]></programlisting>
</section>
17 years
JBoss Rich Faces SVN: r5169 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-01-08 06:06:56 -0500 (Tue, 08 Jan 2008)
New Revision: 5169
Modified:
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml
trunk/docs/userguide/en/src/main/docbook/included/panel.xml
trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml
Log:
http://jira.jboss.com/jira/browse/RF-920 - add CSS role
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml 2008-01-08 11:06:21 UTC (rev 5168)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml 2008-01-08 11:06:56 UTC (rev 5169)
@@ -265,11 +265,11 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"><![CDATA[...
- . rich-spinner-input {
+ <programlisting role="CSS"><![CDATA[...
+ . rich-spinner-input{
font-style:italic;
}
- .myClass {
+ .myClass{
font-weight: bold;
}
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/panel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2008-01-08 11:06:21 UTC (rev 5168)
+++ trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2008-01-08 11:06:56 UTC (rev 5169)
@@ -323,7 +323,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"><![CDATA[...
+ <programlisting role="CSS"><![CDATA[...
.rich-panel-header{
background-color:#F99;
}
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml 2008-01-08 11:06:21 UTC (rev 5168)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml 2008-01-08 11:06:56 UTC (rev 5169)
@@ -218,7 +218,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="HTML"><![CDATA[...
+ <programlisting role="CSS"><![CDATA[...
. rich-panelbar{
padding:10px;
}
@@ -233,7 +233,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="HTML"><![CDATA[...
+ <programlisting role="CSS"><![CDATA[...
.headerClass{
...
}
17 years
JBoss Rich Faces SVN: r5166 - in trunk: samples/scrollableDataTableDemo/src/main/webapp/pages and 18 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2008-01-07 19:31:20 -0500 (Mon, 07 Jan 2008)
New Revision: 5166
Added:
trunk/samples/skins/src/main/java/META-INF/MANIFEST.MF
trunk/ui/effect/src/main/java/META-INF/
trunk/ui/effect/src/main/java/META-INF/MANIFEST.MF
trunk/ui/jQuery/src/main/java/META-INF/
trunk/ui/jQuery/src/main/java/META-INF/MANIFEST.MF
trunk/ui/listShuttle/src/main/java/META-INF/
trunk/ui/listShuttle/src/main/java/META-INF/MANIFEST.MF
trunk/ui/orderingList/src/main/java/META-INF/
trunk/ui/orderingList/src/main/java/META-INF/MANIFEST.MF
trunk/ui/panelmenu/src/main/java/META-INF/
trunk/ui/panelmenu/src/main/java/META-INF/MANIFEST.MF
trunk/ui/treeModel/src/main/java/META-INF/
trunk/ui/treeModel/src/main/java/META-INF/MANIFEST.MF
Modified:
trunk/samples/scrollableDataTableDemo/src/main/webapp/WEB-INF/web.xml
trunk/samples/scrollableDataTableDemo/src/main/webapp/pages/grid1.xhtml
trunk/samples/seamPortletEar/seamBooking/pom.xml
trunk/sandbox/ui/pom.xml
trunk/ui/listShuttle/pom.xml
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/box/Box.js
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridFooter.js
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
Log:
Replace prototype Element.getHeight(Width) to element.offsetHeight(Width), as a attempt to improve scrollable grid performance
Modified: trunk/samples/scrollableDataTableDemo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/scrollableDataTableDemo/src/main/webapp/WEB-INF/web.xml 2008-01-07 20:26:43 UTC (rev 5165)
+++ trunk/samples/scrollableDataTableDemo/src/main/webapp/WEB-INF/web.xml 2008-01-08 00:31:20 UTC (rev 5166)
@@ -6,6 +6,10 @@
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
<param-value>false</param-value>
</context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_STYLE</param-name>
+ <param-value>false</param-value>
+ </context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
Modified: trunk/samples/scrollableDataTableDemo/src/main/webapp/pages/grid1.xhtml
===================================================================
--- trunk/samples/scrollableDataTableDemo/src/main/webapp/pages/grid1.xhtml 2008-01-07 20:26:43 UTC (rev 5165)
+++ trunk/samples/scrollableDataTableDemo/src/main/webapp/pages/grid1.xhtml 2008-01-08 00:31:20 UTC (rev 5166)
@@ -22,7 +22,7 @@
frozenColCount="1" first="0" rows="40" width="100%" height="500px">
<dt:column width="200px">
<f:facet name="header">
- <h:outputText value="header"></h:outputText>
+ <h:outputText value="issue"></h:outputText>
</f:facet>
<h:outputText value="#{issues.cell2}"></h:outputText>
<f:facet name="footer">
@@ -30,11 +30,17 @@
</f:facet>
</dt:column>
<dt:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="data"></h:outputText>
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
<h:outputText value="data"></h:outputText>
</dt:column>
</sg:scrollableDataTable>
<a4j:commandButton value="reRender" reRender="table"/>
- <img src="q.jpg">
+ <img src="q.jpg"/>
<script type="text/javascript">
<!--
document.observe("grid:initialized", function(event) {
Modified: trunk/samples/seamPortletEar/seamBooking/pom.xml
===================================================================
--- trunk/samples/seamPortletEar/seamBooking/pom.xml 2008-01-07 20:26:43 UTC (rev 5165)
+++ trunk/samples/seamPortletEar/seamBooking/pom.xml 2008-01-08 00:31:20 UTC (rev 5166)
@@ -1,4 +1,5 @@
-<?xml version="1.0"?><project>
+<?xml version="1.0"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>seamPortletEar</artifactId>
<groupId>org.richfaces.samples</groupId>
Added: trunk/samples/skins/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- trunk/samples/skins/src/main/java/META-INF/MANIFEST.MF (rev 0)
+++ trunk/samples/skins/src/main/java/META-INF/MANIFEST.MF 2008-01-08 00:31:20 UTC (rev 5166)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: trunk/samples/skins/src/main/java/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/sandbox/ui/pom.xml
===================================================================
--- trunk/sandbox/ui/pom.xml 2008-01-07 20:26:43 UTC (rev 5165)
+++ trunk/sandbox/ui/pom.xml 2008-01-08 00:31:20 UTC (rev 5166)
@@ -21,7 +21,7 @@
<module>sortableHeader</module>
<module>fileUpload</module>
<module>combobox</module>
- <module>progressBar</module>
+ <module>progressBAR</module>
<module>pickList</module>
</modules>
</project>
\ No newline at end of file
Added: trunk/ui/effect/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- trunk/ui/effect/src/main/java/META-INF/MANIFEST.MF (rev 0)
+++ trunk/ui/effect/src/main/java/META-INF/MANIFEST.MF 2008-01-08 00:31:20 UTC (rev 5166)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: trunk/ui/effect/src/main/java/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/ui/jQuery/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- trunk/ui/jQuery/src/main/java/META-INF/MANIFEST.MF (rev 0)
+++ trunk/ui/jQuery/src/main/java/META-INF/MANIFEST.MF 2008-01-08 00:31:20 UTC (rev 5166)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: trunk/ui/jQuery/src/main/java/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/ui/listShuttle/pom.xml
===================================================================
--- trunk/ui/listShuttle/pom.xml 2008-01-07 20:26:43 UTC (rev 5165)
+++ trunk/ui/listShuttle/pom.xml 2008-01-08 00:31:20 UTC (rev 5166)
@@ -32,8 +32,7 @@
</configuration>
</plugin>
</plugins>
- </build>
-
+ </build>
<dependencies>
<dependency>
<artifactId>orderingList</artifactId>
Added: trunk/ui/listShuttle/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- trunk/ui/listShuttle/src/main/java/META-INF/MANIFEST.MF (rev 0)
+++ trunk/ui/listShuttle/src/main/java/META-INF/MANIFEST.MF 2008-01-08 00:31:20 UTC (rev 5166)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: trunk/ui/listShuttle/src/main/java/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/ui/orderingList/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- trunk/ui/orderingList/src/main/java/META-INF/MANIFEST.MF (rev 0)
+++ trunk/ui/orderingList/src/main/java/META-INF/MANIFEST.MF 2008-01-08 00:31:20 UTC (rev 5166)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: trunk/ui/orderingList/src/main/java/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/ui/panelmenu/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- trunk/ui/panelmenu/src/main/java/META-INF/MANIFEST.MF (rev 0)
+++ trunk/ui/panelmenu/src/main/java/META-INF/MANIFEST.MF 2008-01-08 00:31:20 UTC (rev 5166)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: trunk/ui/panelmenu/src/main/java/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/box/Box.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/box/Box.js 2008-01-07 20:26:43 UTC (rev 5165)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/box/Box.js 2008-01-08 00:31:20 UTC (rev 5166)
@@ -69,8 +69,9 @@
return this.element;
},
getHeight: function() {
- if(this.getElement().tagName.toLowerCase() != "body") {
- var h = Element.getHeight(this.element);
+ var el = this.getElement();
+ if(el.tagName.toLowerCase() != "body") {
+ var h = el.offsetHeight;
return h>0 ? h : (this.element.boxHeight ? parseInt(this.element.boxHeight) : 0);
}
@@ -97,8 +98,9 @@
return this;
},
getWidth: function() {
- if(this.getElement().tagName.toLowerCase() != "body") {
- var w = Element.getWidth(this.element);
+ var el = this.getElement();
+ if(el.tagName.toLowerCase() != "body") {
+ var w = el.offsetWidth;
return w>0 ? w : (this.element.boxWidth ? parseInt(this.element.boxWidth) : 0);
}
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-01-07 20:26:43 UTC (rev 5165)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-01-08 00:31:20 UTC (rev 5166)
@@ -184,7 +184,7 @@
var row = this.templNormal.getElement().rows[0];
if(row) {
- this.defaultRowHeight = Element.getHeight(row.cells[0]);
+ this.defaultRowHeight = row.cells[0].offsetHeigh;
}
//if(ClientUILib.isGecko) {
// this.defaultRowHeight -= this.getBorderWidth("tb") + this.getPadding("tb");
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridFooter.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridFooter.js 2008-01-07 20:26:43 UTC (rev 5165)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridFooter.js 2008-01-08 00:31:20 UTC (rev 5166)
@@ -102,10 +102,11 @@
this.helpObj = new ClientUI.common.box.Box(this.frozenContentBox.getElement(), null, true);
this.defaultWidth = this.grid.getHeader().defaultWidth;
- this.defaultHeight = Element.getHeight(this.headerRow.getElement().rows[0].cells[0]);
if(ClientUILib.isGecko) {
this.defaultHeight -= this.getBorderWidth("tb") + this.getPadding("tb");
//this.defaultWidth -= this.getBorderWidth("lr") + this.getPadding("lr");
+ } else {
+ this.defaultHeight = this.headerRow.getElement().rows[0].cells[0].offsetHeight;
}
this.frozenSubstrate = new ClientUI.common.box.Box(this.grid.getElement().id + ":fs", this.getElement());
@@ -115,10 +116,11 @@
},
updateSize: function() {
this.defaultWidth = this.grid.getHeader().defaultWidth;
- this.defaultHeight = Element.getHeight(this.headerRow.getElement().rows[0].cells[0]);
if(ClientUILib.isGecko) {
this.defaultHeight -= this.getBorderWidth("tb") + this.getPadding("tb");
//this.defaultWidth -= this.getBorderWidth("lr") + this.getPadding("lr");
+ } else {
+ this.defaultHeight = this.headerRow.getElement().rows[0].cells[0].offsetHeight;
}
this.setHeight(this.defaultHeight);
this.setWidth(this.defaultWidth);
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2008-01-07 20:26:43 UTC (rev 5165)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2008-01-08 00:31:20 UTC (rev 5166)
@@ -140,7 +140,7 @@
if(columns[j].sortable)
Event.observe(cell, 'click', eventCellMouseDown);
- h = Element.getHeight(cell);
+ h = cell.offsetHeigh;
if(h > defaultHeight) defaultHeight = h;
defaultWidth += columns[j].width;
columns[j].object = new ClientUI.common.box.InlineBox(cell, null, true);
@@ -187,7 +187,7 @@
if(columns[j].sortable)
Event.observe(cell, 'click', eventCellMouseDown);
- h = Element.getHeight(cell);
+ h = cell.offsetHeight;
if(h > defaultHeight) defaultHeight = h;
defaultWidth += columns[j].width;
columns[j].object = new ClientUI.common.box.InlineBox(cell, null, true);
@@ -259,7 +259,7 @@
cells.each(function(cell) {
if(i<columns.length) {
columns[i].width = parseInt(cols[j].width);
- h = Element.getHeight(cell);
+ h = cell.offsetHeigh;
if(h > defaultHeight) defaultHeight = h;
defaultWidth += columns[i].width;
}
@@ -273,7 +273,7 @@
if(i<columns.length) {
columns[i].width = parseInt(cols[j].width);
- h = Element.getHeight(cell);
+ h = cell.offsetHeigh;
if(h > defaultHeight) defaultHeight = h;
defaultWidth += columns[i].width;
}
Added: trunk/ui/treeModel/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- trunk/ui/treeModel/src/main/java/META-INF/MANIFEST.MF (rev 0)
+++ trunk/ui/treeModel/src/main/java/META-INF/MANIFEST.MF 2008-01-08 00:31:20 UTC (rev 5166)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: trunk/ui/treeModel/src/main/java/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
17 years
JBoss Rich Faces SVN: r5165 - trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-01-07 15:26:43 -0500 (Mon, 07 Jan 2008)
New Revision: 5165
Modified:
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
Log:
http://jira.jboss.com/jira/browse/RF-1841 back compatibility fix update
Modified: trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
===================================================================
--- trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2008-01-07 20:26:39 UTC (rev 5164)
+++ trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2008-01-07 20:26:43 UTC (rev 5165)
@@ -33,6 +33,7 @@
Richfaces.ListBase.prototype = {
initialize : function(containerId, contentTableId, headerTableId, focusKeeperId,
onclickControlId, controlClass, columnsClasses, rowClasses) {
+ this["rich:destructor"] = "destroy";
this.selectedItems = new Array();
//this.layoutManager = layoutManager;
17 years