online-glom:gwt-glom.git
12 years agoDon't display hidden tables in the combo box.
Ben Konrath [Wed, 2 Mar 2011 09:25:20 +0000 (10:25 +0100)]
Don't display hidden tables in the combo box.

* src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
ArrayLists.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
code to ignore hidden tables using ArrayLists for the table names and
titles.
* src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
tableNames to use ArrayLists instead of String[]. Update getter and setter
methods.

12 years agoAdd support of Date and Time number types.
Ben Konrath [Tue, 1 Mar 2011 17:54:19 +0000 (18:54 +0100)]
Add support of Date and Time number types.

* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
Implement formatting for Date and Time values. Change the default glom
file to small business example.

12 years agoAdd support for formatting glom types as specified in the glom file.
Ben Konrath [Tue, 1 Mar 2011 15:13:36 +0000 (16:13 +0100)]
Add support for formatting glom types as specified in the glom file.

Formatting isn't finished yet - I still need to add support for Date
and Time values.

* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
checks for null values in JDBC cleanup code and catch all exceptions
instead of just SQLExceptions.
* src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
method name.

12 years agoUse GWT 2.2.0 instead of 2.1.1.
Ben Konrath [Tue, 1 Mar 2011 13:32:54 +0000 (14:32 +0100)]
Use GWT 2.2.0 instead of 2.1.1.

* pom.xml: Change GWT version numbers.

12 years agoA few small code cleanups.
Ben Konrath [Tue, 1 Mar 2011 10:48:16 +0000 (11:48 +0100)]
A few small code cleanups.

* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
duplicate for loop.
* src/main/java/org/glom/web/shared/GlomDocument.java: Remove
unnecessary object creation in constructor.
* src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
unnecessary object creation in constructor.

12 years agoAdd file for TODO list.
Ben Konrath [Mon, 28 Feb 2011 12:58:53 +0000 (13:58 +0100)]
Add file for TODO list.

* TODO: New file.

12 years agoEnable the CellTable Pager when more than 20 rows need to be viewed.
Ben Konrath [Fri, 18 Feb 2011 15:02:34 +0000 (16:02 +0100)]
Enable the CellTable Pager when more than 20 rows need to be viewed.

The Pager will automatically become active when the results are larger
than the CellTable size which is currently set to 20 lines.

* src/main/java/org/glom/web/client/LayoutListView.java: Correct class
name on debug statment in RPC call in LayoutListDataProvider, add
numRows parameter to LayoutListView constructor, propperly set rowCount
in CellTable.
* src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
name on debug statment in RPC call, use LayoutListTable object in RPC
calls, pass rowCount to LayoutListView.
* src/main/java/org/glom/web/client/OnlineGlomService.java: Change
getLayoutListHeaders to getLayoutListTable and return LayoutListTable
object.
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
interface for changes in OnlineGlomService.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
getLayoutListHeaders() to getLayoutListTable() and return
LayoutListTable. Using this object allows me to pass other information
about the LayoutList like the expected number of rows in the result set.
The Connection object from the connection pool is now propperly closed.
Only the requested number of lines are returned to the client in
getTableData().
* src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
GlomTable and add columnTitles and numRows.

12 years agoUse String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
Ben Konrath [Fri, 18 Feb 2011 12:00:38 +0000 (13:00 +0100)]
Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.

This is a small performance boost. I'll use GlomTable to get the required
layoutlist information.

* src/main/java/org/glom/web/client/OnlineGlom.java:
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
* src/main/java/org/glom/web/shared/GlomDocument.java:

12 years agoAdd option to turn off formatting in JDT formatter preferences.
Ben Konrath [Fri, 18 Feb 2011 11:34:44 +0000 (12:34 +0100)]
Add option to turn off formatting in JDT formatter preferences.

* .settings/org.eclipse.jdt.core.prefs:

12 years agoRename LayoutList to LayoutListView.
Ben Konrath [Fri, 18 Feb 2011 09:36:04 +0000 (10:36 +0100)]
Rename LayoutList to LayoutListView.

I'm working towards setting things up to easily use MVP when the time
comes.

* src/main/java/org/glom/web/client/LayoutListView.java: Rename from
LayoutList.java.
* src/main/java/org/glom/web/client/OnlineGlom.java: Update
references.

12 years agoMove LayoutListDataProvider class into LayoutList.java.
Ben Konrath [Thu, 17 Feb 2011 20:02:37 +0000 (21:02 +0100)]
Move LayoutListDataProvider class into LayoutList.java.

* src/main/java/org/glom/web/client/LayoutList.java:

12 years agoRename RPC service classes from LibGlomService* to OnlineGlomService*.
Ben Konrath [Thu, 17 Feb 2011 16:58:16 +0000 (17:58 +0100)]
Rename RPC service classes from LibGlomService* to OnlineGlomService*.

* src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
references.
* src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
* src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
from LibGlomServer.java.
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
Rename from LibGlomServiceAsync.java.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
Rename from LibGlomServiceImpl.java.
* src/main/webapp/WEB-INF/web.xml: Update configuration.

12 years agoUpdate JDT settings.
Ben Konrath [Thu, 17 Feb 2011 16:44:05 +0000 (17:44 +0100)]
Update JDT settings.

* .settings/org.eclipse.jdt.core.prefs:

12 years agoMove GWT-RPC objects to shared package (where they should be).
Ben Konrath [Thu, 17 Feb 2011 16:42:22 +0000 (17:42 +0100)]
Move GWT-RPC objects to shared package (where they should be).

* src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
* src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
* src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
* src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
* src/main/java/org/glom/web/shared/GlomDocument.java: Move to
org.glom.web.shared package.
* src/main/java/org/glom/web/shared/GlomTable.java: Move to
org.glom.web.shared package.
* src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
directory in compilation to javascript.

12 years agoAdd sort clause to the sql query that grabs table information.
Ben Konrath [Wed, 16 Feb 2011 10:15:23 +0000 (11:15 +0100)]
Add sort clause to the sql query that grabs table information.

* src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
if one of the columns is a primary key.

12 years agoDisable generateAsync feature of gwt-maven.
Ben Konrath [Wed, 16 Feb 2011 10:09:24 +0000 (11:09 +0100)]
Disable generateAsync feature of gwt-maven.

The generated interface does not correctly match the methods in LibGlomService
and the generated singleton Util inner-class doesn't respect the servlet
mappings.

* pom.xml: Turn off generateAsync feature.
* src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
with singleton Util inner-class.

12 years agoAdd LGPL v3 licence notices.
Ben Konrath [Mon, 14 Feb 2011 14:34:12 +0000 (15:34 +0100)]
Add LGPL v3 licence notices.

Followed directions listed here:
http://www.gnu.org/licenses/gpl-howto.html

* COPYING: This file is a copy of the GPL v3.
* COPYING.LESSER: This file is a copy of the LGPL v3.
* src/main/java/org/glom/web/client/GlomDocument.java: Add licence
notice.
* src/main/java/org/glom/web/client/GlomTable.java: Add licence
notice.
* src/main/java/org/glom/web/client/LayoutList.java: Add licence
notice.
* src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
licence notice.
* src/main/java/org/glom/web/client/LibGlomService.java: Add licence
notice.
* src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
notice.
* src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
licence notice.

12 years agoUse ArrayList instead of Array in GWT-RPC calls.
Ben Konrath [Mon, 14 Feb 2011 10:59:11 +0000 (11:59 +0100)]
Use ArrayList instead of Array in GWT-RPC calls.

Apparently this gives a slight performance boost to the compiled
java script.

* src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
instead of Array.
* src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
of Array.

12 years agoAccess data from a postgres db rather than the example glom file.
Ben Konrath [Mon, 14 Feb 2011 10:54:17 +0000 (11:54 +0100)]
Access data from a postgres db rather than the example glom file.

* .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
compile down to obfuscated javascript.
* pom.xml: Add c3p0 and postgres JDBC libraries.
* src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
using a postgres db accessed through the c3p0 connection pooling library.

12 years agoUpdate Java formatter settings.
Ben Konrath [Mon, 14 Feb 2011 09:35:36 +0000 (10:35 +0100)]
Update Java formatter settings.

* .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.

12 years ago Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
Ben Konrath [Wed, 2 Feb 2011 19:47:07 +0000 (20:47 +0100)]
 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.

 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
 using Maven.
 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
 the compiled webapp directory that Eclipse uses as we're using Maven now.
 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
 to 1.6.
 * pom.xml: Format file, change target Java version to 1.6.

12 years agoAdd information about a deployment related issue.
Ben Konrath [Wed, 2 Feb 2011 19:27:07 +0000 (20:27 +0100)]
Add information about a deployment related issue.

* README: Add Notes section with the problem outlined.

12 years agoCall Glom.libglom_deinit() when the servlet is shutdown.
Ben Konrath [Wed, 2 Feb 2011 12:40:05 +0000 (13:40 +0100)]
Call Glom.libglom_deinit() when the servlet is shutdown.

* src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
Glom.libglom_deinit() to destroy() method.

12 years agoUse generated Util class to get the RPC Async interface.
Ben Konrath [Fri, 28 Jan 2011 11:36:23 +0000 (12:36 +0100)]
Use generated Util class to get the RPC Async interface.

* .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
file.
* src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
getInstance() method to get a reference to the RPC Async interface.
* src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
getInstance() method to get a reference to the RPC Async interface, remove
the now unused getLibGlomServiceProxy() method.

12 years agoCleanup ChangeLog entry from previous commit.
Ben Konrath [Thu, 27 Jan 2011 21:24:38 +0000 (22:24 +0100)]
Cleanup ChangeLog entry from previous commit.

* ChangeLog: Group logical changes together and add comments.

12 years agoConvert to gwt-maven project.
Ben Konrath [Tue, 25 Jan 2011 18:44:47 +0000 (19:44 +0100)]
Convert to gwt-maven project.

* .classpath:
* .gitignore:
* .project:
* .settings/.jsdtscope:
* .settings/com.google.gdt.eclipse.core.prefs:
* .settings/com.google.gwt.eclipse.core.prefs:
* .settings/org.eclipse.jdt.core.prefs:
* .settings/org.eclipse.wst.common.component:
* .settings/org.eclipse.wst.common.project.facet.core.xml:
* .settings/org.eclipse.wst.jsdt.ui.superType.container:
* .settings/org.maven.ide.eclipse.prefs:
* OnlineGlomTest-dev.launch:
* OnlineGlomTest-prod.launch:
* README:
* pom.xml:
* src/main/java/org/glom/web/client/GlomDocument.java:
* src/main/java/org/glom/web/client/GlomTable.java:
* src/main/java/org/glom/web/client/LayoutList.java:
* src/main/java/org/glom/web/client/LayoutListDataProvider.java:
* src/main/java/org/glom/web/client/LibGlomService.java:
* src/main/java/org/glom/web/client/OnlineGlom.java:
* src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
* src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
* src/main/resources/org/glom/web/client/Messages.properties:
* src/main/webapp/OnlineGlom.css:
* src/main/webapp/OnlineGlom.html:
* src/main/webapp/WEB-INF/web.xml:
* src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
* src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:

12 years agoRemove unused println.
Ben Konrath [Tue, 25 Jan 2011 10:59:03 +0000 (11:59 +0100)]
Remove unused println.

* src/org/glom/web/server/LibGlomServiceImpl.java:

12 years agoAdd project specific JDT settings.
Ben Konrath [Tue, 25 Jan 2011 09:18:14 +0000 (10:18 +0100)]
Add project specific JDT settings.

* .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
* .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.

12 years agoPopulate celltable with example data.
Ben Konrath [Tue, 25 Jan 2011 09:15:45 +0000 (10:15 +0100)]
Populate celltable with example data.

* src/org/glom/web/client/GlomDocument.java: Correct formatting.
* src/org/glom/web/client/GlomTable.java: Correct formatting.
* src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
* src/org/glom/web/client/LayoutListDataProvider.java: New file,
asynchronously gets the example data.
* src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
* src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
* src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
curently selected table to be retrieved by other widgets.
* src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
implement getTableData() in a hacky way. This method needs to be updated
to grab information from the database when database creating is
implemented.

12 years ago Set table headers when table dropBox changes.
Ben Konrath [Thu, 20 Jan 2011 11:12:58 +0000 (12:12 +0100)]
 Set table headers when table dropBox changes.

 * src/org/glom/web/client/GlomDocument.java: Correct some method
 names.
 * src/org/glom/web/client/LibGlomService.java: Add method
 to get list layout field names.
 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
 to get list layout field names.
 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
 widget for list layout table.
 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
 the table drop box and add new updateTable() method to asynchronously
 get the layout list field names for the currently selected table.
 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
 implementation of getLayoutListHeaders() method.
 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.

12 years agoMake a listBox with table titles instead of the flexTable demo.
Ben Konrath [Tue, 18 Jan 2011 13:12:19 +0000 (14:12 +0100)]
Make a listBox with table titles instead of the flexTable demo.

This is the start of something more useful.

* .classpath: Exclude a bunch of packages from the JVM that are
getting in the way of the Eclipse content assist.
* src/org/glom/web/client/GlomDocument.java:
* src/org/glom/web/client/GlomTable.java:
* src/org/glom/web/client/LibGlomService.java:
* src/org/glom/web/client/LibGlomServiceAsync.java:
* src/org/glom/web/client/OnlineGlom.java:
* src/org/glom/web/server/LibGlomServiceImpl.java:
* war/OnlineGlom.html:
* war/WEB-INF/web.xml:

12 years agoUpdate to new java-libglom API.
Ben Konrath [Thu, 13 Jan 2011 13:47:34 +0000 (14:47 +0100)]
Update to new java-libglom API.

* .gitignore: Ignore OnlineGlom.war.
* src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.

12 years agoAdd some basic style to the table listing.
Ben Konrath [Mon, 20 Dec 2010 13:58:51 +0000 (14:58 +0100)]
Add some basic style to the table listing.

* src/org/glom/web/client/OnlineGlom.java: Add style to the table
header, print useful error message on async callback failure.
* war/OnlineGlom.css: Add style for table header, remove defaults
provided by the Eclipse project wizard.

12 years agoLoad example file from installed glom dir.
Ben Konrath [Mon, 20 Dec 2010 13:54:00 +0000 (14:54 +0100)]
Load example file from installed glom dir.

* src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
provided by java-libglom to find the example file.

12 years agoUpdate Eclipse settings.
Ben Konrath [Mon, 20 Dec 2010 13:50:54 +0000 (14:50 +0100)]
Update Eclipse settings.

* .classpath:
* .settings/com.google.gdt.eclipse.core.prefs:
* .settings/com.google.gwt.eclipse.core.prefs:

12 years agoInitial commit.
Ben Konrath [Fri, 17 Dec 2010 07:32:27 +0000 (08:32 +0100)]
Initial commit.

* .classpath: New file.
* .gitignore: New file.
* .project: New file.
* .settings/com.google.gdt.eclipse.core.prefs: New file.
* .settings/com.google.gwt.eclipse.core.prefs: New file.
* src/org/glom/web/OnlineGlom.gwt.xml: New file.
* src/org/glom/web/client/GlomTable.java: New file.
* src/org/glom/web/client/OnlineGlom.java: New file.
* src/org/glom/web/client/TableNameService.java: New file.
* src/org/glom/web/client/TableNameServiceAsync.java: New file.
* src/org/glom/web/server/TableNamesServiceImpl.java: New file.
* war/OnlineGlom.css: New file.
* war/OnlineGlom.html: New file.
* war/WEB-INF/web.xml: New file.
* war/images/glom.png: New file.