JBoss Rich Faces SVN: r3775 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2007-11-06 04:24:37 -0500 (Tue, 06 Nov 2007)
New Revision: 3775
Modified:
trunk/docs/userguide/en/src/main/docbook/included/tab.xml
trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml
Log:
http://jira.jboss.com/jira/browse/RF-920 - adding skin parameters
Modified: trunk/docs/userguide/en/src/main/docbook/included/tab.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tab.xml 2007-11-06 08:40:44 UTC (rev 3774)
+++ trunk/docs/userguide/en/src/main/docbook/included/tab.xml 2007-11-06 09:24:37 UTC (rev 3775)
@@ -183,7 +183,110 @@
</emphasis> component</para>
</listitem>
</itemizedlist>
-</section>
+ </section>
+
+ <section>
+ <title>Skin Parameters Redefinition</title>
+ <table>
+ <title>Skin parameters redefinition for a tab header</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>generalTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <table>
+ <title>Skin parameters redefinition for an active tab</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>generalTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>subBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>generalBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters redefinition for a inactive tab</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>tabBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>subBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters redefinition for a disabled tab</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>tabBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>subBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>tabDisabledTextColor</entry>
+ <entry>color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
<section>
<title>Definition of Custom Style Classes</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml 2007-11-06 08:40:44 UTC (rev 3774)
+++ trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml 2007-11-06 09:24:37 UTC (rev 3775)
@@ -179,7 +179,71 @@
</itemizedlist>
</section>
+
<section>
+ <title>Skin Parameters Redefinition</title>
+ <table>
+ <title>Skin parameters redefinition for a header</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-top-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters redefinition for an internal contant</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>generalBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>generalTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-bottom-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-right-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-left-color</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
+ <section>
<title>Definition of Custom Style Classes</title>
<para>On the screenshot there are classes names that define styles for component elements.</para>
18 years, 6 months
JBoss Rich Faces SVN: r3774 - branches/3.1.x/test-applications/facelets/src/main/java/calendar.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-11-06 03:40:44 -0500 (Tue, 06 Nov 2007)
New Revision: 3774
Modified:
branches/3.1.x/test-applications/facelets/src/main/java/calendar/CalendarBean.java
Log:
Modified: branches/3.1.x/test-applications/facelets/src/main/java/calendar/CalendarBean.java
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/java/calendar/CalendarBean.java 2007-11-05 22:55:02 UTC (rev 3773)
+++ branches/3.1.x/test-applications/facelets/src/main/java/calendar/CalendarBean.java 2007-11-06 08:40:44 UTC (rev 3774)
@@ -419,9 +419,9 @@
return mode;
}
public void bTest1() {
-// setCurrentDate(new Date());
+ setCurrentDate(new Date());
// setTimeZone();
-// setSelectedDate();
+ setSelectedDate(new Date());
changeIcons();
setHeaderFacet("Test 1");
setLocale(new Locale("de","DE",""));
18 years, 6 months
JBoss Rich Faces SVN: r3773 - trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-05 17:55:02 -0500 (Mon, 05 Nov 2007)
New Revision: 3773
Modified:
trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/FaceletsTaglibGenerator.java
Log:
Tag handler records for listeners generated by default: fixed
Modified: trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/FaceletsTaglibGenerator.java
===================================================================
--- trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/FaceletsTaglibGenerator.java 2007-11-05 18:48:53 UTC (rev 3772)
+++ trunk/cdk/generator/src/main/java/org/ajax4jsf/builder/generator/FaceletsTaglibGenerator.java 2007-11-05 22:55:02 UTC (rev 3773)
@@ -30,9 +30,9 @@
import java.util.List;
import org.ajax4jsf.builder.config.BuilderConfig;
+import org.ajax4jsf.builder.config.ComponentBaseBean;
import org.ajax4jsf.builder.config.ComponentBean;
import org.ajax4jsf.builder.config.ConverterBean;
-import org.ajax4jsf.builder.config.ComponentBaseBean;
import org.ajax4jsf.builder.config.ListenerBean;
import org.ajax4jsf.builder.config.ValidatorBean;
import org.apache.velocity.Template;
@@ -123,7 +123,7 @@
List<ListenerBean> listeners = new ArrayList<ListenerBean>();
for (ListenerBean bean : config.getListeners()) {
for (ComponentBaseBean componentBean : bean.getSuitableComponents()) {
- if (components.contains(componentBean)) {
+ if (components.contains(componentBean) && bean.getTaghandler() != null) {
listeners.add(bean);
break;
}
18 years, 6 months
JBoss Rich Faces SVN: r3772 - trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-11-05 13:48:53 -0500 (Mon, 05 Nov 2007)
New Revision: 3772
Modified:
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
Log:
RF-786
Modified: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js 2007-11-05 18:35:17 UTC (rev 3771)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js 2007-11-05 18:48:53 UTC (rev 3772)
@@ -152,7 +152,7 @@
this.endDragListener = new DnD.DragEndListener(function(localEvent) {
Event.stopObserving(document, "mousemove", this.dragTrigger);
- this.endDrag(localEvent, window.drag);
+ DnD.endDrag(localEvent, window.drag);
}.bind(this));
}
18 years, 6 months
JBoss Rich Faces SVN: r3771 - trunk/sandbox/samples/orderingListDemo/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-11-05 13:35:17 -0500 (Mon, 05 Nov 2007)
New Revision: 3771
Modified:
trunk/sandbox/samples/orderingListDemo/src/main/webapp/pages/index.jsp
Log:
Demo application for ordering list component.
Modified: trunk/sandbox/samples/orderingListDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/orderingListDemo/src/main/webapp/pages/index.jsp 2007-11-05 17:37:13 UTC (rev 3770)
+++ trunk/sandbox/samples/orderingListDemo/src/main/webapp/pages/index.jsp 2007-11-05 18:35:17 UTC (rev 3771)
@@ -33,7 +33,7 @@
<f:facet name="header">
<h:outputText value="Name" />
</f:facet>
- <h:outputText value="#{item.name}" />
+ <h:inputText value="#{item.name}" />
</h:column>
<h:column>
<f:facet name="header">
18 years, 6 months
JBoss Rich Faces SVN: r3768 - in trunk/sandbox/ui/orderingList/src/main: resources/org/richfaces/renderkit/html/scripts and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2007-11-05 12:13:01 -0500 (Mon, 05 Nov 2007)
New Revision: 3768
Modified:
trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js
trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx
Log:
Correction of component loading
Modified: trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-11-05 17:00:17 UTC (rev 3767)
+++ trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-11-05 17:13:01 UTC (rev 3768)
@@ -67,11 +67,11 @@
padding : 2px 0px 0px 2px;
}
-#internal_header_tab {
+.ol_internal_header_tab {
width : 100%;
}
-#internal_header_tab th {
+.ol_internal_header_tab th {
background : #4A75B5;
color : #FFFFFF;
@@ -84,21 +84,21 @@
white-space: nowrap;
}
-#internal_header_tab .ol_endcol {
+.ol_internal_header_tab .ol_endcol {
border-right : 0px;
white-space: nowrap;
}
-#internal_tab {
+.ol_internal_tab {
width : 100%;
}
-#internal_tab .ol_endcol {
+.ol_internal_tab .ol_endcol {
border-right : 0px;
white-space: nowrap;
}
-#internal_tab td {
+.ol_internal_tab td {
color : #000000;
font-family : Arial;
font-size :11px;
@@ -109,15 +109,15 @@
}
-#internal_tab tr.ol_select {
+.ol_internal_tab tr.ol_select {
background : #EAF0F8;
}
-#internal_tab tr.ol_active {
+.ol_internal_tab tr.ol_active {
background : #C6D6EA;
}
-#internal_tab tr.ol_normal {
+.ol_internal_tab tr.ol_normal {
}
.body {
Modified: trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js 2007-11-05 17:00:17 UTC (rev 3767)
+++ trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js 2007-11-05 17:13:01 UTC (rev 3768)
@@ -1,4 +1,5 @@
LayoutManager = function(headerId, contentId) {
+ alert('');
this.headerTable = document.getElementById(headerId);
this.contentTable = document.getElementById(contentId);
this.headerDiv = this.headerTable.parentNode;
Modified: trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2007-11-05 17:00:17 UTC (rev 3767)
+++ trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2007-11-05 17:13:01 UTC (rev 3768)
@@ -8,9 +8,10 @@
}
}
-Shuttle = function(containerId, tableId, focusKeeperId, valueKeeperId) {
+Shuttle = function(containerId, contentTableId, headerTableId, focusKeeperId, valueKeeperId,
+ upControlId, downControlId, firstControlId, lastControlId, onclickControlId) {
this.container = document.getElementById(containerId);
- this.shuttleTable = document.getElementById(tableId);
+ this.shuttleTable = document.getElementById(contentTableId);
this.shuttleTbody = this.shuttleTable.tBodies[0];
this.items = null;
@@ -29,10 +30,7 @@
this.focusKeeper.onkeydown = function(e) {
obj.onkeydownHandler(window.event || e);
}
-
- //FIXME
- var layoutManager = new LayoutManager('internal_header_tab', 'internal_tab');
- layoutManager.widthSynchronization();
+ this.init(contentTableId, headerTableId, upControlId, downControlId, firstControlId, lastControlId, onclickControlId, focusKeeperId);
}
Shuttle.ASC = "acs";
@@ -53,6 +51,18 @@
Shuttle.SELECTION_MARKER = "s";
Shuttle.ITEM_SEPARATOR = ",";
+Shuttle.prototype.init = function(contentTableId, headerTableId, upControlId, downControlId, firstControlId, lastControlId, onclickControlId, focusKeeperId) {
+ var obj = this;
+ Shuttle.setFocus(focusKeeperId);
+ var layoutManager = new LayoutManager(headerTableId, contentTableId);
+ layoutManager.widthSynchronization();
+ document.getElementById(upControlId).onclick = function() {obj.moveSelectedItems('up');};
+ document.getElementById(downControlId).onclick = function() {obj.moveSelectedItems('down');};
+ document.getElementById(firstControlId).onclick = function() {obj.moveSelectedItems('first');};
+ document.getElementById(lastControlId).onclick = function() {obj.moveSelectedItems('last');};
+ document.getElementById(contentTableId).onclick = function(e) {obj.onclickHandler(window.event || e);};
+}
+
Shuttle.prototype.retrieveShuttleItems = function() {
var rows = this.shuttleTbody.rows;
this.shuttleItems = new Array();
@@ -175,14 +185,23 @@
}
}
+ var key = event.keyCode || event.which;
+
if (event.ctrlKey) {
- this.addSelectedItem(activeElem);
- this.activeItem = activeElem;
+ if (key == 65) {
+ //Ctrl + A
+ this.selectAll();
+ } else {
+ this.addSelectedItem(activeElem);
+ this.activeItem = activeElem;
+ }
} else if (event.shiftKey) {
- this.selectionItemGroup(activeElem);
+ this.selectItemGroup(activeElem);
+ } else if (key == 13) {
+ //space
} else {
this.selectionItem(activeElem);
- this.activeItem = activeElem;
+ this.activeItem = activeElem;
}
this.activeItem.className = Shuttle.ACTIVE_ITEM_CLASS;
@@ -197,6 +216,11 @@
case 40 : this.moveSelectedItems('down'); break; //down arrow
}
}
+
+Shuttle.prototype.selectAll = function() {
+ this.selectItemRange(startIndex, endIndex);
+}
+
/**
* Click handler
*/
@@ -240,7 +264,7 @@
/**
* Shift+Click handler
*/
-Shuttle.prototype.selectionItemGroup = function(currentItem) {
+Shuttle.prototype.selectItemGroup = function(currentItem) {
//FIXME
var activeItemIndex = this.activeItem.rowIndex;
var startIndex;
@@ -256,12 +280,16 @@
this.resetMarked();
+ this.selectItemRange(startIndex, endIndex);
+}
+
+Shuttle.prototype.selectItemRange = function(startIndex, endIndex) {
var rows = this.shuttleTbody.rows;
for (var i = startIndex; i <= endIndex; i++) {
rows[i].className = Shuttle.SELECTED_ITEM_CLASS;
this.selectedItems.push(rows[i]);
this.getSelectItemByNode(rows[i])._selected = true;
- }
+ }
}
Shuttle.prototype.resetMarked = function() {
Modified: trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx
===================================================================
--- trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx 2007-11-05 17:00:17 UTC (rev 3767)
+++ trunk/sandbox/ui/orderingList/src/main/templates/org/richfaces/htmlOrderingList.jspx 2007-11-05 17:13:01 UTC (rev 3768)
@@ -15,19 +15,7 @@
scripts/SelectItem.js,scripts/OrderingList.js,scripts/LayoutManager.js
</h:scripts>
- <f:clientid var="clientId"/>
- <script type="text/javascript">
- function init() {
- var shuttle = new Shuttle('#{clientId}', 'internal_tab', '#{clientId}focusKeeper', '#{clientId}valueKeeper');
- Shuttle.setFocus('#{clientId}focusKeeper');
- document.getElementById('up').onclick = function() {shuttle.moveSelectedItems('up');};
- document.getElementById('down').onclick = function() {shuttle.moveSelectedItems('down');};
- document.getElementById('first').onclick = function() {shuttle.moveSelectedItems('first');};
- document.getElementById('last').onclick = function() {shuttle.moveSelectedItems('last');};
- document.getElementById('#{clientId}table').onclick = function(e) {shuttle.onclickHandler(window.event || e);};
- }
- </script>
-
+ <f:clientId var="clientId"/>
<div id="#{clientId}" onclick="Shuttle.setFocus('#{clientId}focusKeeper')">
<input id="#{clientId}focusKeeper" type="button" value="" style="position: absolute; left: -32767;" name="focusKeeper"/>
<input id="#{clientId}valueKeeper" type="hidden" name="#{clientId}" value=""/>
@@ -35,14 +23,14 @@
<table id="#{clientId}table" cellpadding="0" cellspacing="0" class="ol_body">
<tr>
<td>
- <div class="ol_list">
+ <div id="#{clientId}headerBox" class="ol_list">
<div class="ol_list_header">
- <table id="internal_header_tab" cellpadding="0" cellspacing="0">
+ <table id="#{clientId}internal_header_tab" class="ol_internal_header_tab" cellpadding="0" cellspacing="0">
<f:call name="encodeOrderingListStructure"/>
</table>
</div>
- <div class="ol_list_content">
- <table id="internal_tab" cellpadding="0" cellspacing="0">
+ <div id="#{clientId}contentBox" class="ol_list_content">
+ <table id="#{clientId}internal_tab" class="ol_internal_tab" cellpadding="0" cellspacing="0">
<tbody id="#{clientId}tbody">
<vcp:body>
<f:call name="renderChildren" />
@@ -54,17 +42,19 @@
</td>
</tr>
</table>
-
- <a id="sortLabel" href="#">Header</a><br/>
- <a id="up" href="#" >up</a><br/>
- <a id="down" href="#" >down</a><br/>
- <a id="first" href="#" >first</a><br/>
- <a id="last" href="#" >last</a>
+ <f:clientId var="clientId"/>
+ <a id="#{clientId}sortLabel" href="#">Header</a><br/>
+ <a id="#{clientId}up" href="#" >up</a><br/>
+ <a id="#{clientId}down" href="#" >down</a><br/>
+ <a id="#{clientId}first" href="#" >first</a><br/>
+ <a id="#{clientId}last" href="#" >last</a>
</div>
- <script type="text/javascript">
- //document.body.onselectstart = function() {return false;};
+ <f:clientId var="cId"/>
+ <script type="text/javascript">'#{cId}'
+ document.body.onselectstart = function() {return false;};
document.body.className = "body";
- if(LayoutManager.isIE()) document.body.onload = init;
- else document.body.onload = init();
+ var shuttle = new Shuttle('#{cId}', '#{cId}internal_tab', '#{cId}internal_header_tab',
+ '#{cId}focusKeeper', '#{cId}valueKeeper','#{cId}up', '#{cId}down', '#{cId}first',
+ '#{cId}last', '#{cId}sortLabel');
</script>
</f:root>
\ No newline at end of file
18 years, 6 months
JBoss Rich Faces SVN: r3767 - branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-11-05 12:00:17 -0500 (Mon, 05 Nov 2007)
New Revision: 3767
Modified:
branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
Log:
RF-953
Modified: branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
===================================================================
--- branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-11-05 16:57:06 UTC (rev 3766)
+++ branches/3.1.x/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-11-05 17:00:17 UTC (rev 3767)
@@ -106,13 +106,15 @@
int cols = isCleanable ? columns.intValue():1;
rest = tableHolder.getRowCounter()-tableHolder.getGridRowCounter()*cols;
- for(int i = rest;i<columns.intValue();i++){
- writer.startElement(HTML.td_ELEM, table);
- String columnClass = tableHolder.getColumnClass(i);
- encodeStyleClass(writer, null, "dr-table-cell rich-table-cell", null, columnClass);
- writer.writeText("\u00A0", null);//
- writer.endElement(HTML.td_ELEM);
- }
+ if(rest != 0){
+ for(int i = rest;i<columns.intValue();i++){
+ writer.startElement(HTML.td_ELEM, table);
+ String columnClass = tableHolder.getColumnClass(i);
+ encodeStyleClass(writer, null, "dr-table-cell rich-table-cell", null, columnClass);
+ writer.writeText("\u00A0", null);//
+ writer.endElement(HTML.td_ELEM);
+ }
+ }
if(rest != 0){
writer.endElement(HTML.TR_ELEMENT);
18 years, 6 months
JBoss Rich Faces SVN: r3766 - trunk/ui/dataTable/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-11-05 11:57:06 -0500 (Mon, 05 Nov 2007)
New Revision: 3766
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
Log:
RF-953
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-11-05 16:08:26 UTC (rev 3765)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractGridRenderer.java 2007-11-05 16:57:06 UTC (rev 3766)
@@ -106,13 +106,15 @@
int cols = isCleanable ? columns.intValue():1;
rest = tableHolder.getRowCounter()-tableHolder.getGridRowCounter()*cols;
- for(int i = rest;i<columns.intValue();i++){
- writer.startElement(HTML.td_ELEM, table);
- String columnClass = tableHolder.getColumnClass(i);
- encodeStyleClass(writer, null, "dr-table-cell rich-table-cell", null, columnClass);
- writer.writeText("\u00A0", null);//
- writer.endElement(HTML.td_ELEM);
- }
+ if(rest != 0){
+ for(int i = rest;i<columns.intValue();i++){
+ writer.startElement(HTML.td_ELEM, table);
+ String columnClass = tableHolder.getColumnClass(i);
+ encodeStyleClass(writer, null, "dr-table-cell rich-table-cell", null, columnClass);
+ writer.writeText("\u00A0", null);//
+ writer.endElement(HTML.td_ELEM);
+ }
+ }
if(rest != 0){
writer.endElement(HTML.TR_ELEMENT);
18 years, 6 months