[seam-commits] Seam SVN: r9367 - in trunk/src/excel/org/jboss/seam/excel: jxl and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Oct 20 14:54:38 EDT 2008


Author: nickarls
Date: 2008-10-20 14:54:38 -0400 (Mon, 20 Oct 2008)
New Revision: 9367

Modified:
   trunk/src/excel/org/jboss/seam/excel/css/Parser.java
   trunk/src/excel/org/jboss/seam/excel/jxl/JXLExcelWorkbook.java
Log:
minor, check for rendered attribute when adding cells and remove dot in css names.

Modified: trunk/src/excel/org/jboss/seam/excel/css/Parser.java
===================================================================
--- trunk/src/excel/org/jboss/seam/excel/css/Parser.java	2008-10-20 16:37:25 UTC (rev 9366)
+++ trunk/src/excel/org/jboss/seam/excel/css/Parser.java	2008-10-20 18:54:38 UTC (rev 9367)
@@ -193,6 +193,9 @@
          if (firstBrace >= 0 && secondBrace >= 0 && firstBrace != secondBrace)
          {
             String styleName = css.substring(0, firstBrace).trim();
+            if (styleName.startsWith(".")) {
+                styleName = styleName.substring(1);
+            }
             String styleString = css.substring(firstBrace + 1, secondBrace).trim();
             StyleMap styleMap = parseStyleString(styleString);
             styleClasses.put(styleName, styleMap);

Modified: trunk/src/excel/org/jboss/seam/excel/jxl/JXLExcelWorkbook.java
===================================================================
--- trunk/src/excel/org/jboss/seam/excel/jxl/JXLExcelWorkbook.java	2008-10-20 16:37:25 UTC (rev 9366)
+++ trunk/src/excel/org/jboss/seam/excel/jxl/JXLExcelWorkbook.java	2008-10-20 18:54:38 UTC (rev 9367)
@@ -9,6 +9,7 @@
 import java.net.URL;
 import java.util.List;
 
+import javax.faces.component.UIComponent;
 import javax.imageio.ImageIO;
 
 import jxl.CellView;
@@ -504,6 +505,9 @@
     */
    public void addItem(WorksheetItem item)
    {
+       if (!((UIComponent)item).isRendered()) {
+           return;
+       }
       switch (item.getItemType())
       {
       case cell:




More information about the seam-commits mailing list