JBoss Rich Faces SVN: r2785 - trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-09-05 13:46:02 -0400 (Wed, 05 Sep 2007)
New Revision: 2785
Added:
trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererStateTest.java
Log:
JUnit test for ScrollableDataTableRendererState
Added: trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererStateTest.java
===================================================================
--- trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererStateTest.java (rev 0)
+++ trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererStateTest.java 2007-09-05 17:46:02 UTC (rev 2785)
@@ -0,0 +1,206 @@
+package org.richfaces.renderkit.html;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import javax.faces.context.ResponseWriter;
+
+import org.ajax4jsf.context.AjaxContext;
+import org.ajax4jsf.context.AjaxContextImpl;
+import org.ajax4jsf.tests.AbstractAjax4JsfTestCase;
+import org.richfaces.component.UIScrollableDataTable;
+
+public class ScrollableDataTableRendererStateTest extends
+ AbstractAjax4JsfTestCase {
+
+ private UIScrollableDataTable component;
+ private ScrollableDataTableRendererState state;
+
+ public ScrollableDataTableRendererStateTest(String name) {
+ super(name);
+ }
+
+ public void setUp() throws Exception {
+ super.setUp();
+ component = (UIScrollableDataTable) application.createComponent(UIScrollableDataTable.COMPONENT_TYPE);
+ state = new ScrollableDataTableRendererState(facesContext, null, component);
+ }
+
+ public void tearDown() throws Exception {
+ super.tearDown();
+ state = null;
+ component = null;
+ }
+
+ public void testGetRendererState() {
+ facesContext.getExternalContext().getRequestMap().put(ScrollableDataTableRendererState.DATA_GRID_RENDERER_STATE,state);
+ assertEquals(state, ScrollableDataTableRendererState.getRendererState(facesContext));
+ }
+
+ public void testCreateState() {
+ assertNotNull(ScrollableDataTableRendererState.createState(facesContext, component));
+ }
+
+ public void testRestoreState() {
+ facesContext.getExternalContext().getRequestMap().put(ScrollableDataTableRendererState.DATA_GRID_RENDERER_STATE,state);
+ ScrollableDataTableRendererState.restoreState(facesContext);
+ assertNull(facesContext.getExternalContext().getRequestMap().get(ScrollableDataTableRendererState.DATA_GRID_RENDERER_STATE));
+ }
+
+ public void testGetCurrentCellId() {
+ assertNotNull(state.getCurrentCellId(facesContext));
+ }
+
+ public void testCellIndex() {
+ int i = 1;
+ state.setCellIndex(i);
+ assertEquals(i, state.getCellIndex());
+ }
+
+ public void testNextCell() {
+ int i = state.getCellIndex() + 1;
+ assertEquals(i, state.nextCell());
+ }
+
+ public void testColumns() {
+ int i = 1;
+ state.setColumns(i);
+ assertEquals(i, state.getColumns());
+ }
+
+ public void testGrid() {
+ state.setGrid(component);
+ assertEquals(component, state.getGrid());
+ }
+
+ public void testPreviousState() {
+ ScrollableDataTableRendererState rendererState = new ScrollableDataTableRendererState(facesContext, null, component);
+ state.setPreviousState(rendererState);
+ assertEquals(rendererState, state.getPreviousState());
+ }
+
+ public void testRowIndex() {
+ int i = 1;
+ state.setRowIndex(i);
+ assertEquals(i, state.getRowIndex());
+ }
+
+ public void testNextRow() {
+ int i = state.getRowIndex() + 1;
+ assertEquals(i, state.nextRow());
+ }
+
+ public void testGetCachedClientId() {
+ assertNotNull(state.getCachedClientId());
+ }
+
+ public void testGetBuffer() {
+ assertNotNull(state.getBuffer());
+ }
+
+ public void testRowKey() {
+ Object rowKey = new Object();
+ state.setRowKey(rowKey);
+ assertEquals(rowKey, state.getRowKey());
+ }
+
+ public void testFrozenColumnCount() {
+ int i = 1;
+ state.setFrozenColumnCount(i);
+ assertTrue(state.isFrozenColumn());
+ assertEquals(i, state.getFrozenColumnCount());
+ }
+
+ public void testFrozenPart() {
+ boolean frozenPart = true;
+ state.setFrozenPart(frozenPart);
+ assertEquals(frozenPart, state.isFrozenPart());
+ }
+
+ public void testCellIdPrefix() {
+ String prefix = "str";
+ state.setCellIdPrefix(prefix);
+ assertEquals(prefix, state.getCellIdPrefix());
+ }
+
+ public void testColumnType() {
+ String prefix = "str";
+ state.setColumType(prefix);
+ assertEquals(prefix, state.getColumnType());
+ }
+
+ public void testAjaxContext() {
+ state.setAjaxContext(ajaxContext);
+ assertEquals(ajaxContext, state.getAjaxContext());
+ }
+
+ public void testWriter() {
+ ResponseWriter writer = facesContext.getResponseWriter();
+ state.setWriter(writer);
+ assertEquals(writer, state.getWriter());
+ }
+
+ public void testClientId() {
+ String id = "id";
+ state.setClientId(id);
+ assertEquals(id, state.getClientId());
+ }
+
+ public void testHeader() {
+ boolean header = true;
+ state.setHeader(header);
+ assertEquals(header, state.isHeader());
+ }
+
+ public void testPart() {
+ String part = "part";
+ state.setPart(part);
+ assertEquals(part, state.getPart());
+ }
+
+ public void testGetSumWidth() {
+ int i = 1;
+ state.setSumWidth(i);
+ assertEquals(i, state.getSumWidth());
+ }
+
+ public void testSepOffset() {
+ Integer i = new Integer(1);
+ state.setSepOffset(i);
+ assertEquals(i, state.getSepOffset());
+ }
+
+ public void testGetCollection() {
+ Collection collection = new ArrayList();
+ state.setCollection(collection);
+ assertEquals(collection, state.getCollection());
+ }
+
+ public void testIsFake() {
+ boolean fake = true;
+ state.setFake(fake);
+ assertEquals(fake, state.isFake());
+ }
+
+ public void testGetColumnHeaderClass() {
+ assertEquals("", state.getColumnHeaderClass());
+ }
+
+ public void testColumnClass() {
+ String columnClasses = "1,2,3";
+ state.setColumnClasses(columnClasses);
+ state.setCellIndex(1);
+ assertEquals("2", state.getColumnClass());
+ }
+
+ public void testRowClass() {
+ String rowClasses = "1,2,3";
+ state.setRowClasses(rowClasses);
+ assertEquals("2", state.getRowClass(1));
+ }
+
+ public void testIds() {
+ state.addId("1");
+ assertEquals(1, state.getIds().size());
+ }
+}
18 years, 8 months
JBoss Rich Faces SVN: r2784 - trunk/ui/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-09-05 13:38:16 -0400 (Wed, 05 Sep 2007)
New Revision: 2784
Modified:
trunk/ui/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/css/dataFilterSlider.xcss
Log:
http://jira.jboss.com/jira/browse/RF-831
Modified: trunk/ui/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/css/dataFilterSlider.xcss
===================================================================
--- trunk/ui/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/css/dataFilterSlider.xcss 2007-09-05 17:27:09 UTC (rev 2783)
+++ trunk/ui/dataFilterSlider/src/main/resources/org/richfaces/renderkit/html/css/dataFilterSlider.xcss 2007-09-05 17:38:16 UTC (rev 2784)
@@ -46,6 +46,8 @@
width: 10px;
height: 8px;
background-color:transparent;
+ line-height: 1px;
+ font-size: 1px;
}
.slider-input-field{
18 years, 8 months
JBoss Rich Faces SVN: r2783 - trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2007-09-05 13:27:09 -0400 (Wed, 05 Sep 2007)
New Revision: 2783
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java
Log:
small fix
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java 2007-09-05 17:14:04 UTC (rev 2782)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java 2007-09-05 17:27:09 UTC (rev 2783)
@@ -148,10 +148,6 @@
_cachedClientId = grid.getClientId(context);
clientId = _cachedClientId;
_previousState = previsiosState;
- if(AjaxRendererUtils.isAjaxRequest(context)){
- }
-
- Map attrs = grid.getAttributes();
}
public String getCurrentCellId(FacesContext context){
@@ -285,7 +281,7 @@
}
public boolean isFrozenColumn() {
- return _frozenColumnCount <= 0 ? false:true;
+ return !(_frozenColumnCount <= 0);
}
public void setFrozenColumnCount(int columnCount) {
18 years, 8 months
JBoss Rich Faces SVN: r2782 - trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-09-05 13:14:04 -0400 (Wed, 05 Sep 2007)
New Revision: 2782
Modified:
trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss
Log:
http://jira.jboss.com/jira/browse/RF-836
Modified: trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss
===================================================================
--- trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss 2007-09-05 17:05:54 UTC (rev 2781)
+++ trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss 2007-09-05 17:14:04 UTC (rev 2782)
@@ -203,11 +203,11 @@
box-sizing: border-box;
-moz-box-sizing: border-box;
}
-
+ /*
.dr-sdt-row-active {
- background-color: #C6D6EA; /* //TODO Which skin parameter must be here? */
+ font-weight:bold; //TODO Which skin parameter must be here?
}
-
+ */
.dr-sdt-bcbody {
cursor: default;
font-weight: normal;
@@ -301,6 +301,9 @@
<u:selector name=".dr-sdt-row-selected">
<u:style name="background-color" skin="additionalBackgroundColor" />
</u:selector>
+ <u:selector name=".dr-sdt-row-active">
+ <u:style name="color" skin="tabDisabledTextColor" />
+ </u:selector>
<u:selector name=".dr-sdt-bcbody">
<u:style name="font-family" skin="generalFamilyFont" />
<u:style name="font-size" skin="generalSizeFont" />
18 years, 8 months
JBoss Rich Faces SVN: r2781 - trunk/ui/calendar/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-09-05 13:05:54 -0400 (Wed, 05 Sep 2007)
New Revision: 2781
Modified:
trunk/ui/calendar/src/main/config/component/calendar.xml
Log:
http://jira.jboss.com/jira/browse/RF-838
Modified: trunk/ui/calendar/src/main/config/component/calendar.xml
===================================================================
--- trunk/ui/calendar/src/main/config/component/calendar.xml 2007-09-05 16:48:49 UTC (rev 2780)
+++ trunk/ui/calendar/src/main/config/component/calendar.xml 2007-09-05 17:05:54 UTC (rev 2781)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "https://ajax4jsf.dev.java.net/nonav/dtds/component-config.dtd"
[
<!ENTITY listeners SYSTEM "listener.ent">
@@ -443,6 +443,10 @@
<defaultvalue>true</defaultvalue>
</property>
+ <property hidden="true">
+ <name>data</name>
+ <classname>java.lang.Object</classname>
+ </property>
</component>
&listeners;
</components>
18 years, 8 months
JBoss Rich Faces SVN: r2780 - trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-09-05 12:48:49 -0400 (Wed, 05 Sep 2007)
New Revision: 2780
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js
Log:
RF-834
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js
===================================================================
--- trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js 2007-09-05 16:39:51 UTC (rev 2779)
+++ trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/common/utils/Utils.js 2007-09-05 16:48:49 UTC (rev 2780)
@@ -57,37 +57,19 @@
target.parentNode.replaceChild(imported, target);;
return imported;
- } else {
+ } else if (ClientUILib.isGecko){
+ //Mozill family
var theDoc = document;
Utils.DOM._clearAttributes(target);
Utils.DOM.copyAttributes(target, src);
-
- /*var tdSrc, tdNode, subNode;
- var childs = src.childNodes;
- var ccount = childs.length;
- var tcount = target.childNodes.length;
- var innerHTML = [];
- var k;
- for(k=0, l=0; k<tcount; k++, l++) {
-
- if(childs[l]){
- if(!childs[l].tagName) {
- l++;
- }
- }
-
-
- tdSrc = l<ccount ? childs[l] : null;
- innerHTML.push("<td class='");
- innerHTML.push(target.childNodes[k].className);
- innerHTML.push("'>");
- innerHTML.push(tdSrc?tdSrc.innerHTML:"");
- innerHTML.push("</td>");
- }
- */
+
target.innerHTML = src.innerHTML;//nnerHTML.join("");
return target;
+ } else {
+ //Fall back to DOM, and cross the fingers
+ src = document.importNode(src, true);
+ target.parentNode.replaceChild(src, target);
}
}
else {
18 years, 8 months
JBoss Rich Faces SVN: r2779 - in trunk/test-applications/facelets/src/main: java/dataScroller and 6 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-09-05 12:39:51 -0400 (Wed, 05 Sep 2007)
New Revision: 2779
Added:
trunk/test-applications/facelets/src/main/java/scrollableDataTable/
trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java
trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/
trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ScrollableDataTable.xml
Modified:
trunk/test-applications/facelets/src/main/java/dataScroller/Data.java
trunk/test-applications/facelets/src/main/java/sb/Data.java
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/web.xml
trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml
Log:
add scrollableDataTable
Modified: trunk/test-applications/facelets/src/main/java/dataScroller/Data.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataScroller/Data.java 2007-09-05 16:34:48 UTC (rev 2778)
+++ trunk/test-applications/facelets/src/main/java/dataScroller/Data.java 2007-09-05 16:39:51 UTC (rev 2779)
@@ -6,11 +6,18 @@
public String data0;
public int data1;
+ public String data2;
+ public String data3;
- Data(String str,int a) {
- this.data0 = str+"_"+a;
- this.data1 = a;
+ public Data(String data0, int data1) {
+ this.data0 = data0;
+ this.data1 = data1;
+ }
+ public Data(String data0, int data1, String data2, String data3) {
+ this(data0, data1);
+ this.data2 = data2;
+ this.data3 = data3;
}
public String getData0() {
@@ -25,6 +32,22 @@
return data1;
}
+ public String getData2() {
+ return data2;
+ }
+
+ public void setData2(String data2) {
+ this.data2 = data2;
+ }
+
+ public String getData3() {
+ return data3;
+ }
+
+ public void setData3(String data3) {
+ this.data3 = data3;
+ }
+
public void setData1(int data1) {
this.data1 = data1;
}
Modified: trunk/test-applications/facelets/src/main/java/sb/Data.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/sb/Data.java 2007-09-05 16:34:48 UTC (rev 2778)
+++ trunk/test-applications/facelets/src/main/java/sb/Data.java 2007-09-05 16:39:51 UTC (rev 2779)
@@ -7,10 +7,10 @@
private String flag;
- public Data(String text, String label){
+ public Data(String text, String alabelbel){
this.text = text;
- this.label = label;
- this.flag = "/images/flag.png";
+ this.label = alabelbel;
+ this.flag="/pics/header.png";
}
public String getLabel() {
Added: trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java 2007-09-05 16:39:51 UTC (rev 2779)
@@ -0,0 +1,30 @@
+package scrollableDataTable;
+
+import java.util.ArrayList;
+import java.util.Random;
+
+import dataScroller.Data;
+
+public class ScrollableDataTable
+{
+ private ArrayList<Data> data;
+ private String [] priority = {"blocker", "critical", "major", "minor", "trivial"};
+ private String [] priorityIcon = {"priority_blocker.gif", "priority_critical.gif", "priority_major.gif", "priority_minor.gif", "priority_trivial.gif"};
+
+ public ScrollableDataTable() {
+
+ data = new ArrayList<Data>();
+
+ for(int i = 0; i < 10000; i++) {
+ data.add(new Data("Bug " + new Random().nextInt(10 + i), i,priority[new Random().nextInt(5)], "fds"));
+ }
+ }
+
+ public ArrayList<Data> getData() {
+ return data;
+ }
+
+ public void setData(ArrayList<Data> data) {
+ this.data = data;
+ }
+}
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml 2007-09-05 16:39:51 UTC (rev 2779)
@@ -0,0 +1,44 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich">
+<f:view>
+ <head></head>
+ <body>
+ <h:form>
+
+ <rich:scrollableDataTable var="sdt" value="#{scrollableDT.data}" rows="30" width="400px">
+ <rich:column width="100px" sortable="false">
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{sdt.data1}" />
+ </rich:column>
+
+ <rich:column width="100px" sortable="false">
+ <f:facet name="header">
+ <h:outputText value="Name" />
+ </f:facet>
+ <h:outputText value="#{sdt.data0}" />
+ </rich:column>
+
+ <rich:column width="100px" sortable="false">
+ <f:facet name="header">
+ <h:outputText value="Priority" />
+ </f:facet>
+ <h:outputText value="#{sdt.data2}" />
+ </rich:column>
+
+ <rich:column width="100px" sortable="false">
+ <f:facet name="header">
+ <h:outputText value="Name" />
+ </f:facet>
+ <h:outputText value="#{sdt.data3}" />
+ </rich:column>
+ </rich:scrollableDataTable>
+ </h:form>
+ </body>
+</f:view>
+</html>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ScrollableDataTable.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ScrollableDataTable.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ScrollableDataTable.xml 2007-09-05 16:39:51 UTC (rev 2779)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>scrollableDT</managed-bean-name>
+ <managed-bean-class>scrollableDataTable.ScrollableDataTable</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Modified: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml 2007-09-05 16:34:48 UTC (rev 2778)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config.xml 2007-09-05 16:39:51 UTC (rev 2779)
@@ -112,6 +112,10 @@
<from-outcome>TestDiv</from-outcome>
<to-view-id>/Div/Div.xhtml</to-view-id>
</navigation-case>
+ <navigation-case>
+ <from-outcome>SDT</from-outcome>
+ <to-view-id>/ScrollableDataTable/ScrollableDataTable.xhtml</to-view-id>
+ </navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/Panel/Panel.xhtml</from-view-id>
Modified: trunk/test-applications/facelets/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/web.xml 2007-09-05 16:34:48 UTC (rev 2778)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/web.xml 2007-09-05 16:39:51 UTC (rev 2779)
@@ -33,7 +33,7 @@
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
- <param-value>/WEB-INF/faces-config-SimpleTogglePanel.xml,/WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,/WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,/WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,/WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,/WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,/WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,/WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,/WEB-INF/faces-config-DradAbdDrop.xml,/WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,/WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xm!
l,/WEB-INF/faces-config-Insert.xml,/WEB-INF/faces-config-Div.xml</param-value>
+ <param-value>/WEB-INF/faces-config-SimpleTogglePanel.xml,/WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,/WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,/WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,/WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-ModalPanel.xml,/WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,/WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,/WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,/WEB-INF/faces-config-DradAbdDrop.xml,/WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,/WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xm!
l,/WEB-INF/faces-config-Insert.xml,/WEB-INF/faces-config-Div.xml,/WEB-INF/faces-config-ScrollableDataTable.xml</param-value>
</context-param>
<filter>
<display-name>Ajax4jsf Filter</display-name>
Modified: trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml 2007-09-05 16:34:48 UTC (rev 2778)
+++ trunk/test-applications/facelets/src/main/webapp/pages/main.xhtml 2007-09-05 16:39:51 UTC (rev 2779)
@@ -46,6 +46,7 @@
<h:commandLink value="Effect" action="Effect"></h:commandLink>
<h:commandLink value="Insert" action="Insert"></h:commandLink>
<h:commandLink value="Test Div" action="TestDiv"></h:commandLink>
+ <h:commandLink value="ScrollableDataTable" action="SDT"></h:commandLink>
</h:panelGrid>
</rich:panel>
</h:form>
18 years, 8 months
JBoss Rich Faces SVN: r2778 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/snippets.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-09-05 12:34:48 -0400 (Wed, 05 Sep 2007)
New Revision: 2778
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/snippets/commandLinkProblem.xhtml
Log:
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/snippets/commandLinkProblem.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/snippets/commandLinkProblem.xhtml 2007-09-05 16:30:16 UTC (rev 2777)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/snippets/commandLinkProblem.xhtml 2007-09-05 16:34:48 UTC (rev 2778)
@@ -1,6 +1,5 @@
....
<-- This code does not work correctly after the link is re-rendered -->
- <-- Parameter will not be encoded correctly in this case -->
<h:form>
....
<a4j:commandButton value="Update Non-Ajax Link" reRender="panel" />
@@ -8,7 +7,6 @@
<h:panelGrid id="panel">
....
<h:commandLink value="Non-Ajax Submit" action="foo" >
- <f:param name="param1" value="foo"/>
...
</h:commandLink>
....
18 years, 8 months
JBoss Rich Faces SVN: r2777 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink: snippets and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2007-09-05 12:30:16 -0400 (Wed, 05 Sep 2007)
New Revision: 2777
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/snippets/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/snippets/commandLinkProblem.xhtml
Log:
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/snippets/commandLinkProblem.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/snippets/commandLinkProblem.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/htmlCommandLink/snippets/commandLinkProblem.xhtml 2007-09-05 16:30:16 UTC (rev 2777)
@@ -0,0 +1,17 @@
+ ....
+ <-- This code does not work correctly after the link is re-rendered -->
+ <-- Parameter will not be encoded correctly in this case -->
+ <h:form>
+ ....
+ <a4j:commandButton value="Update Non-Ajax Link" reRender="panel" />
+ ....
+ <h:panelGrid id="panel">
+ ....
+ <h:commandLink value="Non-Ajax Submit" action="foo" >
+ <f:param name="param1" value="foo"/>
+ ...
+ </h:commandLink>
+ ....
+ </h:panelGrid>
+ ....
+ </h:form>
\ No newline at end of file
18 years, 8 months
JBoss Rich Faces SVN: r2776 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: afedosik
Date: 2007-09-05 11:46:21 -0400 (Wed, 05 Sep 2007)
New Revision: 2776
Modified:
trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
Log:
http://jira.jboss.com/jira/browse/RF-839 "Skin parameters redefinition" table for rich:scrollableDataTable is added
Modified: trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2007-09-05 15:36:04 UTC (rev 2775)
+++ trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2007-09-05 15:46:21 UTC (rev 2776)
@@ -175,9 +175,169 @@
</itemizedlist>
</section>
- <!--section>
- <title> Skin parameters redefinition</title>
- </section-->
+ <section>
+ <title>Skin parameters redefinition</title>
+ <table>
+ <title>Skin parameters for all table</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>tableBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>tableBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>tableBorderWidth</entry>
+ <entry>border-width</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters for header element</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>headerBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+
+ <row>
+ <entry>headerTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>tableBorderWidth</entry>
+ <entry>border-bottom-width</entry>
+ </row>
+ <row>
+ <entry>tableBorderColor</entry>
+ <entry>border-bottom-color</entry>
+ </row>
+ <row>
+ <entry>tableBorderWidth</entry>
+ <entry>border-right-width</entry>
+ </row>
+ <row>
+ <entry>tableBorderColor</entry>
+ <entry>border-right-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters for footer element</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>tableSubfooterBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+
+ <row>
+ <entry>tableBorderColor</entry>
+ <entry>border-right-color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters for row and cells</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>tableBorderColor</entry>
+ <entry>border-right-color</entry>
+ </row>
+ <row>
+ <entry>tableBorderColor</entry>
+ <entry>border-bottom-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Skin parameters for selected row and cells</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Skin parameters</entry>
+ <entry>CSS properties</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>additionalBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ </section>
<section>
<title>Definition of Custom Style Classes</title>
18 years, 8 months