JBoss Rich Faces SVN: r1369 - trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-06-28 09:13:06 -0400 (Thu, 28 Jun 2007)
New Revision: 1369
Modified:
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java
Log:
add ajaxCellRenderer function
Modified: trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-06-28 12:31:58 UTC (rev 1368)
+++ trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-06-28 13:13:06 UTC (rev 1369)
@@ -178,7 +178,44 @@
}
};
+
+
+ private final ColumnVisitor ajaxCellRenderer = new ExtendedColumnVisitor(){
+ public void renderContent(FacesContext context, UIScrollableGridColumn column, ResponseWriter writer, GridRendererState state) throws IOException {
+ String cell_id = state.getRowIndex()+ "_" + state.getCellIndex();
+
+ if (log.isTraceEnabled()) {
+ log.trace("cell_index: " + cell_id);
+ }
+
+ String client_id = state.getClientId();
+ int cell_index = state.getCellIndex();
+
+// ComponentVariables variables = ComponentsVariableResolver.getVariables(cellTemplate, column);
+// variables.setVariable("cell_id",cell_id);
+// variables.setVariable("client_id", client_id);
+// variables.setVariable("cell_index", new Integer(cell_index));
+// variables.setVariable("columnClass", state.getColumnClass(cell_index));
+
+ UIScrollableGrid grid = state.getGrid();
+ writer.startElement("td", grid);
+ writer.startElement("div", grid);
+ getUtils().writeAttribute(writer, "class", "ClientUI_Grid_BCBody1");
+ writer.startElement("div", grid);
+ getUtils().writeAttribute(writer, "class", "ClientUI_Grid_BCBody");
+ String divId = client_id + ":bc_" + cell_id;
+ getUtils().writeAttribute(writer, "id", divId);
+ if(!state.isFake()) {
+ renderChildren(context, column);
+ }
+ writer.endElement("div");
+ writer.endElement("div");
+ writer.endElement("td");
+
+ }
+ };
+
private final DataVisitor rowsRenderer = new DataVisitor(){
public void process(FacesContext context, Object rowKey, Object argument) throws IOException {
@@ -291,7 +328,8 @@
}
UIScrollableGridColumn column = (UIScrollableGridColumn)kid;
- columnsCount += cellRenderer.visit(context, column, writer, state);
+ columnsCount += ajaxCellRenderer.visit(context, column, writer, state);
+// columnsCount += cellRenderer.visit(context, column, writer, state);
state.nextCell();
}
16 years, 10 months
JBoss Rich Faces SVN: r1368 - trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-06-28 08:31:58 -0400 (Thu, 28 Jun 2007)
New Revision: 1368
Modified:
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/LayoutManager.js
Log:
RF-368
Modified: trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/LayoutManager.js
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/LayoutManager.js 2007-06-28 12:31:29 UTC (rev 1367)
+++ trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/layouts/LayoutManager.js 2007-06-28 12:31:58 UTC (rev 1368)
@@ -75,6 +75,6 @@
ClientUI.layouts.LayoutManager.parentClass.method("updateLayout").call(this);
},
getContainer: function() {
- return this.container;
+ return this;
}
});
16 years, 10 months
JBoss Rich Faces SVN: r1367 - trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-06-28 08:31:29 -0400 (Thu, 28 Jun 2007)
New Revision: 1367
Modified:
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid1.xhtml
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid2.xhtml
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid3.xhtml
Log:
small fix
Modified: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid1.xhtml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid1.xhtml 2007-06-28 12:31:03 UTC (rev 1366)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid1.xhtml 2007-06-28 12:31:29 UTC (rev 1367)
@@ -7,7 +7,7 @@
<ui:composition>
<sg:scrollable-grid value="#{modelBuilder.model1}" var="issues"
- frozenColCount="3" first="0" rows="40" width="800px" height="500px">
+ frozenColCount="3" first="0" rows="40" width="100%" height="500px">
<ui:include src="columns.xhtml">
<ui:param name="issues" value="#{issues}" />
</ui:include>
Modified: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid2.xhtml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid2.xhtml 2007-06-28 12:31:03 UTC (rev 1366)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid2.xhtml 2007-06-28 12:31:29 UTC (rev 1367)
@@ -7,7 +7,7 @@
<ui:composition>
<sg:scrollable-grid value="#{modelBuilder.model2}" var="issues"
- frozenColCount="3" first="0" rows="40" width="800px" height="500px">
+ frozenColCount="3" first="0" rows="40" width="100%" height="500px">
<ui:include src="columns.xhtml">
<ui:param name="issues" value="#{issues}" />
</ui:include>
Modified: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid3.xhtml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid3.xhtml 2007-06-28 12:31:03 UTC (rev 1366)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid3.xhtml 2007-06-28 12:31:29 UTC (rev 1367)
@@ -7,7 +7,7 @@
<ui:composition>
<sg:scrollable-grid value="#{modelBuilder.model3}" var="issues"
- frozenColCount="3" first="0" rows="40" width="800px" height="500px">
+ frozenColCount="3" first="0" rows="40" width="100%" height="500px">
<ui:include src="columns.xhtml">
<ui:param name="issues" value="#{issues}" />
</ui:include>
16 years, 10 months
JBoss Rich Faces SVN: r1366 - trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-06-28 08:31:03 -0400 (Thu, 28 Jun 2007)
New Revision: 1366
Modified:
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Grid.js
Log:
RF-368
Modified: trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Grid.js
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Grid.js 2007-06-28 12:30:32 UTC (rev 1365)
+++ trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/controls/grid/Grid.js 2007-06-28 12:31:03 UTC (rev 1366)
@@ -64,7 +64,7 @@
},
createControl: function() {
var grid = this;
- this.layout = new ClientUI.layouts.GridLayoutManager(null, this.getElement());
+ this.layout = new ClientUI.layouts.GridLayoutManager(this.getElement(), null);
var pagePart, item;
for(var i=0; i<this.templates.length; i++) {
16 years, 10 months
JBoss Rich Faces SVN: r1365 - trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/common/utils.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-06-28 08:30:32 -0400 (Thu, 28 Jun 2007)
New Revision: 1365
Modified:
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/common/utils/Utils.js
Log:
RF-368
Modified: trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/common/utils/Utils.js
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/common/utils/Utils.js 2007-06-28 10:19:27 UTC (rev 1364)
+++ trunk/sandbox/scrollable-grid/src/main/javascript/ClientUI/common/utils/Utils.js 2007-06-28 12:30:32 UTC (rev 1365)
@@ -273,6 +273,28 @@
ClientUILib.log(ClientUILogger.INFO, "Utils.DOM.copyAttributes " + (d2 - d1) + "ms");
};
*/
+Utils.execOnLoad = function(func, condition, timeout) {
+
+ if (condition()) {
+ func();
+ } else {
+ window.setTimeout(
+ function() {
+ Utils.execOnLoad(func, condition, timeout);
+ },
+ timeout
+ );
+ }
+};
+Utils.Condition = {
+ ElementPresent : function(element) {
+ return function () {
+ var el = $(element);
+ return el && el.offsetHeight > 0;
+ };
+ }
+};
+
Array.prototype.unbreakableEach = function(f) {
for (var i = 0; i < this.length; i++) {
f(this[i], i);
16 years, 10 months
JBoss Rich Faces SVN: r1364 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-06-28 06:19:27 -0400 (Thu, 28 Jun 2007)
New Revision: 1364
Modified:
trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
Log:
fixed spelling errors
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-06-28 10:10:32 UTC (rev 1363)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-06-28 10:19:27 UTC (rev 1364)
@@ -88,10 +88,10 @@
</para>
<para>Possible values are:</para>
<itemizedlist>
- <listitem><para>left - down - submenu attached to left - down side of the menu;</para></listitem>
- <listitem><para>left - up - submenu attached to left - up side of the menu;</para></listitem>
- <listitem><para>right - down - submenu attached to right - down side of the menu;</para></listitem>
- <listitem><para>right - up - submenu attached to right - up side of the menu;</para></listitem>
+ <listitem><para>left - down - a submenu is attached to the left side of the menu and is dropping down;</para></listitem>
+ <listitem><para>left - up - a submenu is attached to the left side of the menu and is dropping up;</para></listitem>
+ <listitem><para>right - down - a submenu is attached to the right side of the menu and is dropping down;</para></listitem>
+ <listitem><para>right - up - a submenu is attached to the right side of the menu and is dropping up;</para></listitem>
<listitem><para>auto - smart positioning activated.</para></listitem>
</itemizedlist>
<para>
16 years, 10 months
JBoss Rich Faces SVN: r1363 - trunk/sandbox/scrollable-grid/src/main/javascript.
by richfaces-svn-commits@lists.jboss.org
Author: dmorozov
Date: 2007-06-28 06:10:32 -0400 (Thu, 28 Jun 2007)
New Revision: 1363
Modified:
trunk/sandbox/scrollable-grid/src/main/javascript/ClientUILib.js
Log:
Add custom prototype Event: OnDOMReady.
Usage: Event.onReady(callbackFunction);
Modified: trunk/sandbox/scrollable-grid/src/main/javascript/ClientUILib.js
===================================================================
--- trunk/sandbox/scrollable-grid/src/main/javascript/ClientUILib.js 2007-06-28 09:57:00 UTC (rev 1362)
+++ trunk/sandbox/scrollable-grid/src/main/javascript/ClientUILib.js 2007-06-28 10:10:32 UTC (rev 1363)
@@ -220,5 +220,37 @@
evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
this.dispatchEvent(evt);
}
-}
};
+
+// Usage: Event.onReady(callbackFunction);
+Object.extend(Event, {
+ _domReady : function() {
+ if (arguments.callee.done) return;
+ arguments.callee.done = true;
+
+ if (Event._timer) clearInterval(Event._timer);
+
+ Event._readyCallbacks.each(function(f) { f() });
+ Event._readyCallbacks = null;
+ },
+ onReady : function(f) {
+ if (!this._readyCallbacks) {
+ var domReady = this._domReady;
+
+ if (domReady.done) return f();
+
+ if (document.addEventListener)
+ document.addEventListener("DOMContentLoaded", domReady, false);
+ if (/WebKit/i.test(navigator.userAgent)) {
+ this._timer = setInterval(function() {
+ if (/loaded|complete/.test(document.readyState)) domReady();
+ }, 10);
+ }
+ Event.observe(window, 'load', domReady);
+ Event._readyCallbacks = [];
+ }
+ Event._readyCallbacks.push(f);
+ }
+});
+
+};
16 years, 10 months
JBoss Rich Faces SVN: r1362 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-06-28 05:57:00 -0400 (Thu, 28 Jun 2007)
New Revision: 1362
Modified:
trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
Log:
changed possible values for "direction" attributes
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-06-28 09:46:26 UTC (rev 1361)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-06-28 09:57:00 UTC (rev 1362)
@@ -88,8 +88,10 @@
</para>
<para>Possible values are:</para>
<itemizedlist>
- <listitem><para>left - submenu attached to left side of the menu;</para></listitem>
- <listitem><para>right - submenu attached to right side of the menu;</para></listitem>
+ <listitem><para>left - down - submenu attached to left - down side of the menu;</para></listitem>
+ <listitem><para>left - up - submenu attached to left - up side of the menu;</para></listitem>
+ <listitem><para>right - down - submenu attached to right - down side of the menu;</para></listitem>
+ <listitem><para>right - up - submenu attached to right - up side of the menu;</para></listitem>
<listitem><para>auto - smart positioning activated.</para></listitem>
</itemizedlist>
<para>
@@ -99,7 +101,7 @@
Here is an example:
</para>
<programlisting role="xml"><![CDATA[...
- <rich:menuGroup value="Active" direction="left"
+ <rich:menuGroup value="Active" direction="left-down"
<!--Nested menu components-->
</rich:menuGroup>
...
16 years, 10 months
JBoss Rich Faces SVN: r1361 - in trunk/sandbox-samples/scrollable-grid-demo/src/main: webapp/pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-06-28 05:46:26 -0400 (Thu, 28 Jun 2007)
New Revision: 1361
Added:
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/columns.xhtml
Modified:
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/datagrid/bean/Row.java
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/datagrid/bean/TestGridDataModelBuilder.java
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid1.xhtml
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid2.xhtml
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid3.xhtml
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/test.xhtml
Log:
RF-387
Modified: trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/datagrid/bean/Row.java
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/datagrid/bean/Row.java 2007-06-28 09:25:15 UTC (rev 1360)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/datagrid/bean/Row.java 2007-06-28 09:46:26 UTC (rev 1361)
@@ -9,6 +9,16 @@
private String cell6;
private String cell7;
private String cell8;
+ private String cell9;
+ private String cell10;
+ private String cell11;
+ private String cell12;
+ private String cell13;
+ private String cell14;
+ private String cell15;
+ private String cell16;
+ private String cell17;
+ private String cell18;
public Row(String name) {
cell1 = name + " - cell1";
cell2 = name + " - cell2";
@@ -18,6 +28,16 @@
cell6 = name + " - cell6";
cell7 = name + " - cell7";
cell8 = name + " - cell8";
+ cell9 = name + " - cell9";
+ cell10 = name + " - cell10";
+ cell11 = name + " - cell11";
+ cell12 = name + " - cell12";
+ cell13 = name + " - cell13";
+ cell14 = name + " - cell14";
+ cell15 = name + " - cell15";
+ cell16 = name + " - cell16";
+ cell17 = name + " - cell17";
+ cell18 = name + " - cell18";
}
public String getCell1() {
return cell1;
@@ -67,4 +87,64 @@
public void setCell8(String cell8) {
this.cell8 = cell8;
}
+ public String getCell9() {
+ return cell9;
+ }
+ public void setCell9(String cell9) {
+ this.cell9 = cell9;
+ }
+ public String getCell10() {
+ return cell10;
+ }
+ public void setCell10(String cell10) {
+ this.cell10 = cell10;
+ }
+ public String getCell11() {
+ return cell11;
+ }
+ public void setCell11(String cell11) {
+ this.cell11 = cell11;
+ }
+ public String getCell12() {
+ return cell12;
+ }
+ public void setCell12(String cell12) {
+ this.cell12 = cell12;
+ }
+ public String getCell13() {
+ return cell13;
+ }
+ public void setCell13(String cell13) {
+ this.cell13 = cell13;
+ }
+ public String getCell14() {
+ return cell14;
+ }
+ public void setCell14(String cell14) {
+ this.cell14 = cell14;
+ }
+ public String getCell15() {
+ return cell15;
+ }
+ public void setCell15(String cell15) {
+ this.cell15 = cell15;
+ }
+ public String getCell16() {
+ return cell16;
+ }
+ public void setCell16(String cell16) {
+ this.cell16 = cell16;
+ }
+ public String getCell17() {
+ return cell17;
+ }
+ public void setCell17(String cell17) {
+ this.cell17 = cell17;
+ }
+ public String getCell18() {
+ return cell18;
+ }
+ public void setCell18(String cell18) {
+ this.cell18 = cell18;
+ }
}
Modified: trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/datagrid/bean/TestGridDataModelBuilder.java
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/datagrid/bean/TestGridDataModelBuilder.java 2007-06-28 09:25:15 UTC (rev 1360)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/datagrid/bean/TestGridDataModelBuilder.java 2007-06-28 09:46:26 UTC (rev 1361)
@@ -1,13 +1,19 @@
package org.richfaces.demo.datagrid.bean;
import java.util.ArrayList;
+import java.util.HashMap;
public class TestGridDataModelBuilder{
private ArrayList model1 = new ArrayList();
private ArrayList model2 = new ArrayList();
private ArrayList model3 = new ArrayList();
+ private HashMap grids = new HashMap();
+ private String grid = "grid1.xhtml";
public TestGridDataModelBuilder() {
+ grids.put("grid1", "grid1.xhtml");
+ grids.put("grid2", "grid2.xhtml");
+ grids.put("grid3", "grid3.xhtml");
for (int i = 0; i < 1000; i++) {
model1.add(new Row("model1 - " + i));
model2.add(new Row("model2 - " + i));
@@ -38,4 +44,20 @@
public void setModel3(ArrayList model3) {
this.model3 = model3;
}
+
+ public HashMap getGrids() {
+ return grids;
+ }
+
+ public void setGrids(HashMap grids) {
+ this.grids = grids;
+ }
+
+ public String getGrid() {
+ return grid;
+ }
+
+ public void setGrid(String grid) {
+ this.grid = grid;
+ }
}
\ No newline at end of file
Added: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/columns.xhtml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/columns.xhtml (rev 0)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/columns.xhtml 2007-06-28 09:46:26 UTC (rev 1361)
@@ -0,0 +1,172 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
+ 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:sg="http://richfaces.ajax4jsf.org/scrollable-grid">
+
+ <ui:composition>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell1}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell2}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell3}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell4}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell5}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell6}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell7}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell8}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell9}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell10}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell11}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell12}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell13}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell14}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell15}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell16}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell17}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ <sg:column width="200px">
+ <f:facet name="header">
+ <h:outputText value="header"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{issues.cell18}"></h:outputText>
+ <f:facet name="footer">
+ <h:outputText value="footer"></h:outputText>
+ </f:facet>
+ </sg:column>
+ </ui:composition>
+</jsp:root>
Modified: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid1.xhtml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid1.xhtml 2007-06-28 09:25:15 UTC (rev 1360)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid1.xhtml 2007-06-28 09:46:26 UTC (rev 1361)
@@ -8,78 +8,9 @@
<ui:composition>
<sg:scrollable-grid value="#{modelBuilder.model1}" var="issues"
frozenColCount="3" first="0" rows="40" width="800px" height="500px">
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell1}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell2}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell3}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell4}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell5}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell6}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell7}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell8}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
+ <ui:include src="columns.xhtml">
+ <ui:param name="issues" value="#{issues}" />
+ </ui:include>
</sg:scrollable-grid>
</ui:composition>
</jsp:root>
Modified: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid2.xhtml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid2.xhtml 2007-06-28 09:25:15 UTC (rev 1360)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid2.xhtml 2007-06-28 09:46:26 UTC (rev 1361)
@@ -8,78 +8,9 @@
<ui:composition>
<sg:scrollable-grid value="#{modelBuilder.model2}" var="issues"
frozenColCount="3" first="0" rows="40" width="800px" height="500px">
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell1}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell2}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell3}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell4}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell5}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell6}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell7}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell8}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
+ <ui:include src="columns.xhtml">
+ <ui:param name="issues" value="#{issues}" />
+ </ui:include>
</sg:scrollable-grid>
</ui:composition>
</jsp:root>
Modified: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid3.xhtml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid3.xhtml 2007-06-28 09:25:15 UTC (rev 1360)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/grid3.xhtml 2007-06-28 09:46:26 UTC (rev 1361)
@@ -8,78 +8,9 @@
<ui:composition>
<sg:scrollable-grid value="#{modelBuilder.model3}" var="issues"
frozenColCount="3" first="0" rows="40" width="800px" height="500px">
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell1}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell2}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell3}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell4}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell5}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell6}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell7}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
- <sg:column width="100px">
- <f:facet name="header">
- <h:outputText value="header"></h:outputText>
- </f:facet>
- <h:outputText value="#{issues.cell8}"></h:outputText>
- <f:facet name="footer">
- <h:outputText value="footer"></h:outputText>
- </f:facet>
- </sg:column>
+ <ui:include src="columns.xhtml">
+ <ui:param name="issues" value="#{issues}" />
+ </ui:include>
</sg:scrollable-grid>
</ui:composition>
</jsp:root>
Modified: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/test.xhtml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/test.xhtml 2007-06-28 09:25:15 UTC (rev 1360)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/test.xhtml 2007-06-28 09:46:26 UTC (rev 1361)
@@ -8,9 +8,14 @@
<body>
<f:view>
<h:form>
- <h:panelGroup>
- <ui:include src="grid1.xhtml" />
+ <h:selectOneMenu value="#{modelBuilder.grid}">
+ <f:selectItems value="#{modelBuilder.grids}" />
+ </h:selectOneMenu>
+ <a4j:support event="onchange" reRender="panelGroup" />
+ <h:panelGroup id="panelGroup">
+ <ui:include src="#{modelBuilder.grid}" />
</h:panelGroup>
+ <input type="submit" />
</h:form>
</f:view>
</body>
16 years, 10 months
JBoss Rich Faces SVN: r1360 - trunk/sandbox/panelmenu/design/funcspec.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-06-28 05:25:15 -0400 (Thu, 28 Jun 2007)
New Revision: 1360
Modified:
trunk/sandbox/panelmenu/design/funcspec/FuncSpec - RF Panel Menu Component.doc
Log:
Modified: trunk/sandbox/panelmenu/design/funcspec/FuncSpec - RF Panel Menu Component.doc
===================================================================
(Binary files differ)
16 years, 10 months