click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r909207 - in /click/trunk/click/examples: src/org/apache/click/examples/control/exporter/ExcelTableExporter.java webapp/general/excel-table-export.htm
Date Fri, 12 Feb 2010 02:26:27 GMT
Author: sabob
Date: Fri Feb 12 02:26:26 2010
New Revision: 909207

URL: http://svn.apache.org/viewvc?rev=909207&view=rev
Log:
exporter throws exception if country is missing from locale

Modified:
    click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java
    click/trunk/click/examples/webapp/general/excel-table-export.htm

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java?rev=909207&r1=909206&r2=909207&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java
Fri Feb 12 02:26:26 2010
@@ -90,7 +90,11 @@
         wb = createWorkbook();
         cellFormat = wb.createDataFormat();
         locale = context.getLocale();
-        currency = Currency.getInstance(locale);
+        try {
+            currency = Currency.getInstance(locale);
+        } catch (IllegalArgumentException e) {
+            // locale doesn't specify a country
+        }
 
         currentRow = 0;
 

Modified: click/trunk/click/examples/webapp/general/excel-table-export.htm
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/webapp/general/excel-table-export.htm?rev=909207&r1=909206&r2=909207&view=diff
==============================================================================
--- click/trunk/click/examples/webapp/general/excel-table-export.htm (original)
+++ click/trunk/click/examples/webapp/general/excel-table-export.htm Fri Feb 12 02:26:26 2010
@@ -33,7 +33,7 @@
 
 <p><b>Please</b> note how the exporter is detached from the table above.</p>
 
-<blockquote>$table2.exporter</blockquote>
+<blockquote>$table2.exportContainer</blockquote>
 
 
 <h4 style="margin-top:2em;">Inline Exporter</h4>



Mime
View raw message