JBoss Rich Faces SVN: r17428 - root/ui/iteration/trunk/tables/ui/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2010-05-31 12:26:03 -0400 (Mon, 31 May 2010)
New Revision: 17428
Modified:
root/ui/iteration/trunk/tables/ui/src/main/java/org/richfaces/component/UIDataTableBase.java
Log:
fix issue with empty footer cell if subTable has footer facet
Modified: root/ui/iteration/trunk/tables/ui/src/main/java/org/richfaces/component/UIDataTableBase.java
===================================================================
--- root/ui/iteration/trunk/tables/ui/src/main/java/org/richfaces/component/UIDataTableBase.java 2010-05-31 16:12:01 UTC (rev 17427)
+++ root/ui/iteration/trunk/tables/ui/src/main/java/org/richfaces/component/UIDataTableBase.java 2010-05-31 16:26:03 UTC (rev 17428)
@@ -116,10 +116,12 @@
boolean result = false;
while (columns.hasNext() && !result) {
UIComponent component = columns.next();
- if (component.isRendered()) {
- UIComponent facet = component.getFacet(facetName);
- result = facet != null && facet.isRendered();
- }
+ if(component instanceof javax.faces.component.UIColumn){
+ if (component.isRendered()) {
+ UIComponent facet = component.getFacet(facetName);
+ result = facet != null && facet.isRendered();
+ }
+ }
}
return result;
}
14 years, 7 months
JBoss Rich Faces SVN: r17427 - root/ui/iteration/trunk/tables/ui/src/main/resources/META-INF/resources.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2010-05-31 12:12:01 -0400 (Mon, 31 May 2010)
New Revision: 17427
Modified:
root/ui/iteration/trunk/tables/ui/src/main/resources/META-INF/resources/extendedDataTable.ecss
Log:
RF-7887
Modified: root/ui/iteration/trunk/tables/ui/src/main/resources/META-INF/resources/extendedDataTable.ecss
===================================================================
--- root/ui/iteration/trunk/tables/ui/src/main/resources/META-INF/resources/extendedDataTable.ecss 2010-05-31 15:44:28 UTC (rev 17426)
+++ root/ui/iteration/trunk/tables/ui/src/main/resources/META-INF/resources/extendedDataTable.ecss 2010-05-31 16:12:01 UTC (rev 17427)
@@ -27,7 +27,7 @@
}
.rf-edt-h, .rf-edt-th {
- background-color: '#{richSkin.tableHeaderBackgroundColor}';
+ background-image : "url(#{resource['org.richfaces.renderkit.html.images.ColumnHeaderGradientImage']})";
}
.rf-edt-th {
@@ -130,17 +130,16 @@
font-size: '#{richSkin.generalSizeFont}';
}
-.rf-edt-hcc, .rf-edt-th {
+.rf-edt-hcc, .rf-edt-th, .rf-edt-fcc, .rf-edt-tf {
font-weight: bold;
- color: '#{richSkin.tableHeaderTextColor}';
+ text-align: center;
}
-.rf-edt-fcc, .rf-edt-tf {
- font-weight: bold;
- color: '#{richSkin.generalTextColor}';
+.rf-edt-hcc, .rf-edt-th {
+ color: '#{richSkin.tableHeaderTextColor}';
}
-.rf-edt-cc {
+.rf-edt-cc, .rf-edt-fcc, .rf-edt-tf {
color: '#{richSkin.generalTextColor}';
}
14 years, 7 months
JBoss Rich Faces SVN: r17426 - root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/standardSkinning.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-05-31 11:44:28 -0400 (Mon, 31 May 2010)
New Revision: 17426
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/standardSkinning/standardSkinning.xhtml
Log:
Moved controls into form on standard skinning page
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/standardSkinning/standardSkinning.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/standardSkinning/standardSkinning.xhtml 2010-05-31 15:37:43 UTC (rev 17425)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/standardSkinning/standardSkinning.xhtml 2010-05-31 15:44:28 UTC (rev 17426)
@@ -63,10 +63,10 @@
<f:selectItem itemLabel="White" itemValue="3" />
</h:selectOneMenu>
</h:panelGrid>
+ <hr />
+ <h:commandButton value="Action Button" />
+ <h:commandLink value="Action Link" />
</h:form>
- <hr />
- <h:commandButton value="Action Button" />
- <h:commandLink value="Action Link" />
</rich:panel>
<p>There three ways of applying skinning to application:</p>
14 years, 7 months
JBoss Rich Faces SVN: r17425 - root/ui/iteration/trunk/tables/ui/src/main/resources/META-INF/resources.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2010-05-31 11:37:43 -0400 (Mon, 31 May 2010)
New Revision: 17425
Modified:
root/ui/iteration/trunk/tables/ui/src/main/resources/META-INF/resources/datatable.ecss
Log:
subFooter bold
Modified: root/ui/iteration/trunk/tables/ui/src/main/resources/META-INF/resources/datatable.ecss
===================================================================
--- root/ui/iteration/trunk/tables/ui/src/main/resources/META-INF/resources/datatable.ecss 2010-05-31 15:34:56 UTC (rev 17424)
+++ root/ui/iteration/trunk/tables/ui/src/main/resources/META-INF/resources/datatable.ecss 2010-05-31 15:37:43 UTC (rev 17425)
@@ -110,10 +110,11 @@
color:'#{richSkin.generalTextColor}';
font-family:'#{richSkin.generalFamilyFont}';
font-size:'#{richSkin.generalSizeFont}';
- font-weight:normal;
+ font-weight:bold;
padding:4px;
text-align:center;
+
}
.rf-dt-th{
14 years, 7 months
JBoss Rich Faces SVN: r17424 - in root/examples/richfaces-showcase/trunk/src/main: webapp/richfaces/dataScroller and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-05-31 11:34:56 -0400 (Mon, 31 May 2010)
New Revision: 17424
Modified:
root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataScroller/dataScrollerAPI.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/repeat/simpleGrid.xhtml
Log:
syntax/stylein corrections
Modified: root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-05-31 15:18:09 UTC (rev 17423)
+++ root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-05-31 15:34:56 UTC (rev 17424)
@@ -170,10 +170,6 @@
<id>imgUsage</id>
<name>mediaOutput for image output</name>
</sample>
- <sample>
- <id>imgUsage</id>
- <name>mediaOutput for flash output</name>
- </sample>
</samples>
</demo>
<demo>
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataScroller/dataScrollerAPI.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataScroller/dataScrollerAPI.xhtml 2010-05-31 15:18:09 UTC (rev 17423)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataScroller/dataScrollerAPI.xhtml 2010-05-31 15:34:56 UTC (rev 17424)
@@ -34,7 +34,7 @@
<h:graphicImage value="/images/icons/scroller/arr_right.png"
onclick="#{fn:component('ds')}.next()" />
</h:panelGrid>
- <it:dataScroller for="pics" id="ds" render="repeat" stepControls="false" boundaryControls="false" fastControls="false" maxPages="10"/>
+ <it:dataScroller for="pics" id="ds" render="repeat" stepControls="none" boundaryControls="none" fastControls="none" maxPages="10"/>
</h:panelGrid>
</h:form>
</ui:composition>
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/repeat/simpleGrid.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/repeat/simpleGrid.xhtml 2010-05-31 15:18:09 UTC (rev 17423)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/repeat/simpleGrid.xhtml 2010-05-31 15:34:56 UTC (rev 17424)
@@ -8,11 +8,13 @@
xmlns:it="http://richfaces.org/iteration">
<ui:composition>
-<p>a4j:repeat is a base iteration component of RichFaces. It allows to create any markups based
-on iterative data. This sample shows simple grid from capitals list.</p>
+ <p>a4j:repeat is a base iteration component of RichFaces. It allows
+ to create any markups based on iterative data. This sample shows simple
+ grid from capitals list.</p>
<h:form>
- <a4j:outputPanel id="panel">
- <a4j:repeat value="#{capitalsBean.capitals}" var="cap" rows="20" id="repeat">
+ <a4j:outputPanel id="panel" layout="block">
+ <a4j:repeat value="#{capitalsBean.capitals}" var="cap" rows="20"
+ id="repeat">
<rich:panel style="float:left; width:200px; padding:5px;">
<f:facet name="header">
<h:panelGroup>
@@ -29,7 +31,9 @@
</rich:panel>
</a4j:repeat>
</a4j:outputPanel>
- <it:dataScroller for="repeat" render="panel" />
+ <a4j:outputPanel layout="block">
+ <it:dataScroller for="repeat" render="panel" />
+ </a4j:outputPanel>
</h:form>
</ui:composition>
</html>
\ No newline at end of file
14 years, 7 months
JBoss Rich Faces SVN: r17423 - root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/region.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-05-31 11:18:09 -0400 (Mon, 31 May 2010)
New Revision: 17423
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/region/region.xhtml
Log:
Typo in demo fixed
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/region/region.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/region/region.xhtml 2010-05-31 15:12:07 UTC (rev 17422)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/region/region.xhtml 2010-05-31 15:18:09 UTC (rev 17423)
@@ -18,7 +18,7 @@
to JSF 2 specifications. But if the <b>controls wrapped with
a4j:region</b> component and has no execute definitions - them uses<b>
execute="@region"</b></p>
- <p>Look to the simple example bellow. There are two similar user
+ <p>Look to the simple example below. There are two similar user
info panels. But the ajax behaviors inside the first panel uses execute
declarations and pointed to panelGrid id. And the second panel inputs
just wrapped to region without any additional execute definitions.</p>
14 years, 7 months
JBoss Rich Faces SVN: r17422 - root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/queue.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-05-31 11:12:07 -0400 (Mon, 31 May 2010)
New Revision: 17422
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/queue/queue.xhtml
Log:
"keypress" event changed to "keyup"
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/queue/queue.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/queue/queue.xhtml 2010-05-31 15:11:36 UTC (rev 17421)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/queue/queue.xhtml 2010-05-31 15:12:07 UTC (rev 17422)
@@ -30,8 +30,8 @@
<h:panelGrid columns="2">
<h:outputText value="Type here:" />
<h:inputText id="myinput" value="#{queueBean.text}"
- onkeypress="addEvent();" disabled="#{not (facesContext.maximumSeverity==null)}">
- <a4j:ajax onbegin="addRequest();" event="keypress" render="outtext"
+ onkeyup="addEvent();" disabled="#{not (facesContext.maximumSeverity==null)}">
+ <a4j:ajax onbegin="addRequest();" event="keyup" render="outtext"
oncomplete="printCounts()" onbeforedomupdate="addUpdate()" />
</h:inputText>
<h:outputText value="Repeated text:" />
14 years, 7 months
JBoss Rich Faces SVN: r17421 - in root/examples/richfaces-showcase/trunk/src/main/webapp: richfaces/dataTable and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-05-31 11:11:36 -0400 (Mon, 31 May 2010)
New Revision: 17421
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/componentControl/tableFilteringAPI.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/tableSorting.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml
Log:
descriptions
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/componentControl/tableFilteringAPI.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/componentControl/tableFilteringAPI.xhtml 2010-05-31 15:09:50 UTC (rev 17420)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/componentControl/tableFilteringAPI.xhtml 2010-05-31 15:11:36 UTC (rev 17421)
@@ -10,9 +10,15 @@
xmlns:rfn="http://richfaces.org/misc">
<ui:composition>
-
+ <style>
+ .atop{
+ vertical-align:top;
+ }
+ </style>
+ <p>ComponentControl allows to call JS api on any component. It supports parameters passing using f:param, a4j:param and a4j:hasParam tags. </p>
+ <p>Currently target component should be defined by using clientId, but we planning to add lookup by short id in nearest versions.</p>
<h:form id="form">
- <h:panelGrid columns="2">
+ <h:panelGrid columns="2" columnClasses="atop">
<rich:panel>
<f:facet name="header">
<h:outputText value="Quick Filter Panel" />
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/tableSorting.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/tableSorting.xhtml 2010-05-31 15:09:50 UTC (rev 17420)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/dataTable/tableSorting.xhtml 2010-05-31 15:11:36 UTC (rev 17421)
@@ -11,6 +11,9 @@
<p>
Here is simple example of sorting feature of RichFaces Table component.
</p>
+<p>Object property which should be used for sorting should be defined in sortBy attribute.</p>
+<p>Currently you could only control sortOrder in your actions, and in near versions we're planning to add special sort controls</p>
+<p>Also you could use # {rich:component('tableId')}.sort('columnId', ['sortOrder']) JS api</p>
<h:form>
<it:dataTable value="#{capitalsBean.capitals}" var="cap" id="table">
<it:column>
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml 2010-05-31 15:09:50 UTC (rev 17420)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml 2010-05-31 15:11:36 UTC (rev 17421)
@@ -3,7 +3,8 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:rich="http://java.sun.com/jsf/composite/rich">
+ xmlns:rich="http://java.sun.com/jsf/composite/rich"
+ xmlns:a4j="http://richfaces.org/a4j">
<f:view>
<ui:insert name="demoSampleParameters"/>
14 years, 7 months
JBoss Rich Faces SVN: r17420 - root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/region.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-05-31 11:09:50 -0400 (Mon, 31 May 2010)
New Revision: 17420
Modified:
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/region/region.xhtml
Log:
"blur" event changed to "keyup"
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/region/region.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/region/region.xhtml 2010-05-31 15:00:48 UTC (rev 17419)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/region/region.xhtml 2010-05-31 15:09:50 UTC (rev 17420)
@@ -31,12 +31,12 @@
<h:panelGrid columns="2" id="userInfoPanel1">
<h:outputText value="User Name: " />
<h:inputText value="#{regionBean.user1.name}">
- <a4j:ajax render="echopanel1" event="blur"
+ <a4j:ajax render="echopanel1" event="keyup"
execute="userInfoPanel1" />
</h:inputText>
<h:outputText value="User email: " />
<h:inputText value="#{regionBean.user1.email}">
- <a4j:ajax render="echopanel1" event="blur"
+ <a4j:ajax render="echopanel1" event="keyup"
execute="userInfoPanel1" />
</h:inputText>
</h:panelGrid>
@@ -62,11 +62,11 @@
<h:panelGrid columns="2">
<h:outputText value="User Name: " />
<h:inputText value="#{regionBean.user2.name}">
- <a4j:ajax render="echopanel2" event="blur" />
+ <a4j:ajax render="echopanel2" event="keyup" />
</h:inputText>
<h:outputText value="User email: " />
<h:inputText value="#{regionBean.user2.email}">
- <a4j:ajax render="echopanel2" event="blur" />
+ <a4j:ajax render="echopanel2" event="keyup" />
</h:inputText>
</h:panelGrid>
</a4j:region>
14 years, 7 months
JBoss Rich Faces SVN: r17419 - root/ui/iteration/trunk/tables/ui/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2010-05-31 11:00:48 -0400 (Mon, 31 May 2010)
New Revision: 17419
Modified:
root/ui/iteration/trunk/tables/ui/src/main/java/org/richfaces/renderkit/ExtendedDataTableRenderer.java
Log:
RF-8708
Modified: root/ui/iteration/trunk/tables/ui/src/main/java/org/richfaces/renderkit/ExtendedDataTableRenderer.java
===================================================================
--- root/ui/iteration/trunk/tables/ui/src/main/java/org/richfaces/renderkit/ExtendedDataTableRenderer.java 2010-05-31 14:56:46 UTC (rev 17418)
+++ root/ui/iteration/trunk/tables/ui/src/main/java/org/richfaces/renderkit/ExtendedDataTableRenderer.java 2010-05-31 15:00:48 UTC (rev 17419)
@@ -308,6 +308,7 @@
}
}
writer.endElement(HTML.TR_ELEMENT);
+ writer.endElement(HTML.TBODY_ELEMENT);
writer.endElement(HTML.TABLE_ELEMENT);
writer.endElement(HTML.DIV_ELEM);
}
@@ -370,6 +371,7 @@
writer.startElement(HTML.TABLE_ELEMENT, table);
writer.writeAttribute(HTML.CELLPADDING_ATTRIBUTE, "0", null);
writer.writeAttribute(HTML.CELLSPACING_ATTRIBUTE, "0", null);
+ writer.startElement(HTML.TBODY_ELEMENT, table);
writer.startElement(HTML.TR_ELEMENT, table);
for (state.startIterate(); state.hasNextPart();) {
writer.startElement(HTML.TD_ELEM, table);
@@ -576,8 +578,8 @@
table.captureOrigValue(context);
table.setRowKey(context, null);
RendererState state = createRowHolder(context, table);
+ encodeStyle(state);
encodeHeader(state);
- encodeStyle(state);
encodeBody(state);
encodeFooter(state);
table.setRowKey(context, key);
14 years, 7 months