Author: ayanul
Date: 2007-10-04 03:50:21 -0400 (Thu, 04 Oct 2007)
New Revision: 3248
Modified:
trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java
trunk/test-applications/facelets/src/main/webapp/DataTable/DT.xhtml
Log:
bgcolor fix
Modified: trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java 2007-10-04
07:49:42 UTC (rev 3247)
+++ trunk/test-applications/facelets/src/main/java/dataTable/DataTable.java 2007-10-04
07:50:21 UTC (rev 3248)
@@ -13,7 +13,6 @@
private List mounths = new ArrayList();
private List numbers = new ArrayList();
private String align;
- private String bgcolor;
private String border;
private String width;
private String columnsWidth;
@@ -22,7 +21,6 @@
public DataTable() {
align = "center";
- bgcolor = "aqua";
border = "1";
width = "400px";
columnsWidth = "200px";
@@ -109,14 +107,6 @@
this.align = align;
}
- public String getBgcolor() {
- return bgcolor;
- }
-
- public void setBgcolor(String bgcolor) {
- this.bgcolor = bgcolor;
- }
-
public String getBorder() {
return border;
}
Modified: trunk/test-applications/facelets/src/main/webapp/DataTable/DT.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataTable/DT.xhtml 2007-10-04
07:49:42 UTC (rev 3247)
+++ trunk/test-applications/facelets/src/main/webapp/DataTable/DT.xhtml 2007-10-04
07:50:21 UTC (rev 3248)
@@ -8,8 +8,8 @@
<rich:dataTable id="dataTableID" var="dataTableID"
value="#{dataTable.mounths}" rowKeyVar="key"
styleClass="table"
captionClass="caption" rowClasses="rowa,rowb,rowc rowcc"
- headerClass="header" footerClass="footer"
- onRowClick="alert('row #{key}')"
rendered="#{dataTable.rendered}" align="#{dataTable.align}"
bgcolor="#{dataTable.bgcolor}"
+ headerClass="header" footerClass="footer"
cellpadding="" cellspacing=""
+ onRowClick="alert('row #{key}')"
rendered="#{dataTable.rendered}" align="#{dataTable.align}"
bgcolor="red"
border="#{dataTable.border}"
columnsWidth="#{dataTable.columnsWidth}" width="#{dataTable.width}"
title="DataTableTite">
<f:facet name="caption">
<h:outputText value="caption" />
@@ -93,23 +93,6 @@
<a4j:support event="onchange"
reRender="dataTableID"></a4j:support>
</h:inputText>
- <h:outputText value="Background Colour"></h:outputText>
- <h:selectOneMenu value="#{dataTable.bgcolor}">
- <f:selectItem itemLabel="aqua" itemValue="aqua" />
- <f:selectItem itemLabel="blue" itemValue="blue" />
- <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
- <f:selectItem itemLabel="gray" itemValue="gray" />
- <f:selectItem itemLabel="lime" itemValue="lime" />
- <f:selectItem itemLabel="maroon" itemValue="maroon" />
- <f:selectItem itemLabel="purple" itemValue="purple" />
- <f:selectItem itemLabel="red" itemValue="red" />
- <f:selectItem itemLabel="silver" itemValue="silver" />
- <f:selectItem itemLabel="teal" itemValue="teal" />
- <f:selectItem itemLabel="yellow" itemValue="yellow" />
- <f:selectItem itemLabel="white" itemValue="white" />
- <a4j:support event="onclick"
reRender="dataTableID"></a4j:support>
- </h:selectOneMenu>
-
<h:outputText value="rendered:" />
<h:selectBooleanCheckbox value="#{dataTable.rendered}"
onclick="submit();" />