2011-04-11 Ben Konrath Change 'Demo' naming convention to 'Document'. This is just a rename refactor with no functional changes to the code. * src/main/java/org/glom/web/client/ClientFactory.java: * src/main/java/org/glom/web/client/ClientFactoryImpl.java: * src/main/java/org/glom/web/client/OnlineGlom.java: * src/main/java/org/glom/web/client/OnlineGlomService.java: * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java: * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java: * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java: * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java: * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java: * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml: * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: 2011-04-08 Ben Konrath Remove FIXME from safeLongToInt() method. Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use this method. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: 2011-04-08 Ben Konrath Display an error if no glom documents are found in the specified directory. * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java: * src/main/java/org/glom/web/client/ui/DemoSelectionView.java: * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java: * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: 2011-04-08 Ben Konrath Add copyright header to one more file ... oops. * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: 2011-04-08 Ben Konrath Add copyright header to files without it. * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java: * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java: * src/main/java/org/glom/web/client/ui/DemoSelectionView.java: * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java: * src/main/java/org/glom/web/shared/ColumnInfo.java: * src/main/java/org/glom/web/shared/GlomField.java: 2011-04-08 Ben Konrath Add support for accessing multiple glom documents in the servlet. This completes the demo selection functionality. * src/main/java/org/glom/web/client/OnlineGlomService.java: Add document title to methods. * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add document title to methods. * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java: Set browser window title when the activity starts. Correct name of document title variable. * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java: Set browser window title when the activity starts. Set the table selector change handler after table selector has been set. Clear the OnlineGlomView when the activity has been stopped. * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the document title as the place token. Use "#Document:" instead of "#OnlineGlomPlace:" in the URL. * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml: Change heading to "Online Glom" * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use document title in RPC methods. * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove setDocumentTitle() method. Add clear() method. * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove setDocumentTitle() method. Implement clear() method which removes the change handler on the ListBox, clears the ListBox and clears the DataPanel. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Implement methods with document title. Keep track for the configured glom documents and their corresponding JDBC configurations in a hash table. This information is retrieved using the document title as the key in the hash table. * src/main/java/org/glom/web/shared/GlomDocument.java: Remove document title field as it's no longer needed. 2011-04-08 Ben Konrath Update the Eclipse JDT configuration. * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new methods. Automatically add the copyright header to new files. 2011-04-05 Ben Konrath Add new page for demo selection. This patch adds all the components required to view and start an OnlineGlom demo by clicking on the desired hyperlink. The user is able to return to the demo selection page with the browser's back button. I still need to modify the servlet to work with multiple documents so all demo links will load the file defined in the OnlineGlom.properties. * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler. This is only useful during development so we don't need to save it. * src/main/java/org/glom/web/client/ClientFactory.java: Add method to get a reference to the DemoSelectionView. * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement method to get a reference to the DemoSelectionView. * src/main/java/org/glom/web/client/OnlineGlom.java: Change the default view to DemoSelectionView. * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method to get glom document titles for glom files in a hard-coded directory. * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add method to get glom document titles for glom files in a hard-coded directory. * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java: Presenter for DemoSelectionView. * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update for DemoSelectionView. * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java: Update for DemoSelectionView. * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java: Basic 'Place' implementation for the DemoSelectionView. * src/main/java/org/glom/web/client/ui/DemoSelectionView.java: The interface for the DemoSelectionView. * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java: The implementation of the DemoSelectionView. * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml: The GWT UiBuilder xml file used in DemoSelectionViewImpl. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add implementation of method to get glom document titles for glom files in a hard-coded directory. * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's on longer being used. * src/main/webapp/glom.png: Glom logo. 2011-04-05 Ben Konrath Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity. This is the forth and final commit of a refactor that will allow OnlineGlom to be used with multiple documents. * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java: Move RPC code from OnlineGlomViewImpl to this class. * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods to inferface. * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move RPC code to the presenter class (the P in MVP). 2011-04-04 Ben Konrath Start moving the existing OnlineGlom code to MVP. This work is based on the GWT MVP framework that is documented here: https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html This is the third commit of a refactor that will allow OnlineGlom to be used with multiple documents. * src/main/java/org/glom/web/client/ClientFactory.java: New file. Interface for client factory which is used to get instances of various classes throughout the app. * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file. Implementation of client factory. * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to initialize the MVP framework. * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java: New file. Activity manager for the main container widget. This is the Presenter in MVP. * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file. Maps place (URL) to its corresponding activity. * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java: New file. This is just a place holder for a generated file. * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: New file. Represents the URL for the main Online Glom app. * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update for changes in LayoutListViewImpl. * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create interface for View. Move code to OnlineGlomViewImpl class. * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New file. Implementation of OnlineGlomView. * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and Place resources. Use ClientFactoryImpl by default. 2011-04-04 Ben Konrath Move View classes to their own package. This is the second commit of a refactor that will allow OnlineGlom to be used with multiple documents. * src/main/java/org/glom/web/client/OnlineGlom.java: * src/main/java/org/glom/web/client/ui/LayoutListView.java: * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: 2011-04-02 Ben Konrath Move UI code from the main module to its own class. This is the first commit of a refactor that will allow OnlineGlom to be used with multiple documents. * src/main/java/org/glom/web/client/LayoutListView.java: Update references to OnlineGlom to OnlineGlomView. * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to OnlineGlomView and instantiate it here. * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that represents the main OnlineGlomView with one document. 2011-04-01 Ben Konrath Fix formatting of gwt.xml and add DTD. * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: 2011-03-30 Ben Konrath Propperly convert gdkColor string to html colour string. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: 2011-03-28 Ben Konrath Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment(). This implementation matches OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more readable and is not tied to Swig. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: 2011-03-28 Ben Konrath Use read-only checkboxes for boolean field types. * src/main/java/org/glom/web/client/LayoutListView.java: Create columns in the CellTable based on the field type. It currently only distinguishes between boolean and text columns but I'll need to add support for more types. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the column type in the ColumnInfo object. Add method to convert between the glom field type enum in ColumnInfo and the glom field type in libglom. * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for field type. * src/main/java/org/glom/web/shared/GlomField.java: Add support for getting and setting booleans. 2011-03-25 Ben Konrath Don't get the Date twice from the ResultSet. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: 2011-03-25 Ben Konrath Cleanup code in the servlet. * TODO: Remove item about row count. Add item about testing row count query with large number of rows. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix spelling mistakes, change method parameter to be consistent with other methods. 2011-03-25 Ben Konrath Add server side logging with the gwt-log library. * .gitignore: Ignore the log file we're now producing. * TODO: Add a couple TODO item for logging. * pom.xml: Add gwt-log and log4j as a dependency. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add logging of errors, warnings and some important info. * src/main/resources/log4j.properties: New file to configure log4j. 2011-03-24 Ben Konrath Add a disable button for the Details view. * src/main/java/org/glom/web/client/LayoutListView.java: 2011-03-22 Ben Konrath Use a count query to get the number of rows for the list view pager. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: 2011-03-22 Ben Konrath Add more TODO information about CellTable pager positioning. * TODO: 2011-03-19 Ben Konrath Add TODO item about CellTable pager positioning. * TODO: 2011-03-18 Ben Konrath Remove unneeded GlomFieldColumn class. This is just a small code cleanup. * src/main/java/org/glom/web/client/LayoutListView.java: 2011-03-18 Ben Konrath Use cursor mode in the query that gets data for the list view. I still need to fix the potential memory problem when getting the row count for the list view. * TODO: Add note about testing memory usage with large data sets. Add item about fixing row counting with large data sets. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the PostgreSQL JDBC driver into cursor mode when getting data for the list view. 2011-03-15 Ben Konrath Remove the GWT Container from the Eclipse build classpath. The GWT dependencies are set by Maven so this isn't needed. * .classpath: 2011-03-15 Murray Cumming Added some earlier mockups to git, but not to the tarball dist. * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for Openismus. These hopefully show how we might structure the HTML so that it can be styled easily with CSS. However, we probably need to adapt them for the CSS structure that GWT dictates for common widgets. 2011-03-14 Ben Konrath Locate OnlineGlom.properties using the ServletContext. This is required to be able to locate the file in the deployed servlet. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Configure the database and glom document in in a helper method so that the ServletContext can be used to locate OnlineGlom.properties. * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from src/main/webapp. This is the proper location for .properites files. 2011-03-12 Ben Konrath Add note to README about why we're compiling down to obfuscated JavaScript. * README: 2011-03-11 Ben Konrath Use properties file to configure servlet. This allows people to change the glom file path, db username and db password without recompiling the code. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: * src/main/webapp/OnlineGlom.properties: 2011-03-11 Ben Konrath Use table fields in layout list view if the layout list is not defined. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Manually create a LayoutFieldVector for the query builder using the table fields when a layout list is not defined in the glom file. 2011-03-11 Ben Konrath Only show FIXME string for images when there's an image. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included in this change are some small code cleanups. 2011-03-11 Ben Konrath Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: 2011-03-11 Ben Konrath Correctly set the index of the default table. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Correctly set the index of the default table. Add commented out example file paths. 2011-03-10 Ben Konrath Add comment to pom.xml about the previous change. * pom.xml: Add comment about the deployment issue so that it's obvious why java-libglom is set to the provided scope. 2011-03-10 Ben Konrath Change java-libglom dependency from compile to provided in pom.xml. Since java-libglom uses jni it can only be loaded once and therefore must be placed in $CATALINA_HOME/lib and not included in each war. This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04. More information about this issue can be found in the Tomcat 6 release notes in the "JNI Based Applications" section: http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt * README: Remove note about this issue. Deployment info should really be on the wiki anyway so I'll add it right now. * pom.xml: Change java-libglom dependency from compile to provided so that it's copied in to the packaged war. 2011-03-09 Ben Konrath Change to using a neutral locale for currency, date and time formatting. This solves the problem of currency values being represented without a space between the currency code and the number (e.g. "EUR5.89" is now represented as "EUR 5.89"). More work is required when we implement a locale preference setting. * TODO: Add note about currency formatting issues with different locales. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change to using the neutral ROOT locale. 2011-03-09 Ben Konrath Add support for currency codes that are not ISO 4217 codes. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the currency code defined in the glom file when it's not 3 characters long or when Java doesn't recognize the string as an ISO 4217 code. 2011-03-08 Ben Konrath Remove test classes, launch configurations and configuration. The test stuff was getting in the way when creating the war. To make the war file you can now do 'mvn clean package'. The packaged war file will be in the target directory. * .classpath: Remove unused classpathentry for tests and i18n. * pom.xml: Remove junit.jar dependency. Properly use gwt.version property. Don't run test or i18n goals when packaging the war. * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct formatting. Removed files: * OnlineGlomTest-dev.launch: * OnlineGlomTest-prod.launch: * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: 2011-03-07 Ben Konrath Update gwt-maven plugin to 2.2.0 and fix other configuation problems. These fixes allow me to use 'mvn deploy' to create the war file. * .classpath: This generated config has been updated by Eclipse. This change was probably triggered by me updating from Eclipse 3.6.1 to 3.6.2. * .gitignore: Add entry to ignore the directory src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse. * .project: The generated config has been updated by Eclipse. This change was probably triggered by me updating from Eclipse 3.6.1 to 3.6.2. * .settings/com.google.appengine.eclipse.core.prefs: Add empty config so that Eclipse doesn't complain * pom.xml: Update to gwt-maven-plugin 2.2.0. * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from 'tests' directory to 'client' directory. This is the new gwt-maven-plugin convension. * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl. 2011-03-07 Ben Konrath Add support for horizontal alignment in the LayoutList columns. * TODO: Remove item about horizontal alignment. Add item about improvements to ColumnInfo. * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal alignment on the columns. Use ColumnInfo RPC object get the column title and horizontal alignment. * src/main/java/org/glom/web/client/OnlineGlom.java: Update LayoutListView creation with ColumnInfo RPC object. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create a ColumnInfo object for every LayoutList columnn. Convert the FieldFormatting.HorizontalAlignment to the correct ColumnnInfo.HorizontatlAlignment with the new getColumnInfoHorizontalAlignment helper method. * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object to encapsulate column information like alignment and title. This could be used to set the colour instead of on a per cell field basis. * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace column title storage and retrieval with ColumnInfo. 2011-03-04 Ben Konrath Add support for column sorting. * src/main/java/org/glom/web/client/LayoutListView.java: Change AsynDataProvider to be an anonymous inner class. Use new getSortedTableData RPC method when column sort is requested. Set all columns sortable and add an AsyncHandler to activate sorting in the AsyncDataProvider. * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new method getSortedTableData(). Cleanup other method signatures. * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add new method getSortedTableData(). Cleanup other method signatures. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Implement getSortedTableData() and getTableData() methods by using a private helper method with the appropriate parameters filled in. Use user supplied sort clause when supplied, otherwise fall back to sorting by the primary key. Move destroy() method to be underneath constructor for readability. Cleanup comments. 2011-03-03 Ben Konrath Add support for colour text and colour backgrounds to the layout list cells. Only the cell backgrounds are coloured which leaves a gap between the cells that isn't coloured. I need to figure out a way to set 'style=background-colour:' on the whole column rather than just the cell. * TODO: Add a note about colouring the background of the whole column. * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to render the coloured text and backgrounds. Use GlomField[] for the row type. * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[] for the row type. * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use GlomField[] for the row type. * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use GlomField[] for the row type. Set the text, text colour and background colour in the GlomField objects as specified in the glom document. Add method to convert from Gdk::Color to HTML colour string. Cleanup comments. * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate the glom field text, foreground colour and background colour. 2011-03-02 Ben Konrath 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. 2011-03-01 Ben Konrath Add support for 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. 2011-03-01 Ben Konrath 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. 2011-03-01 Ben Konrath Use GWT 2.2.0 instead of 2.1.1. * pom.xml: Change GWT version numbers. 2011-03-01 Ben Konrath 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. 2011-02-28 Ben Konrath Add file for TODO list. * TODO: New file. 2011-02-18 Ben Konrath 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. 2011-02-18 Ben Konrath 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: 2011-02-18 Ben Konrath Add option to turn off formatting in JDT formatter preferences. * .settings/org.eclipse.jdt.core.prefs: 2011-02-18 Ben Konrath 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. 2011-02-17 Ben Konrath Move LayoutListDataProvider class into LayoutList.java. * src/main/java/org/glom/web/client/LayoutList.java: 2011-02-17 Ben Konrath 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. 2011-02-17 Ben Konrath Update JDT settings. * .settings/org.eclipse.jdt.core.prefs: 2011-02-17 Ben Konrath 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. 2011-02-16 Ben Konrath 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. 2011-02-16 Ben Konrath 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. 2011-02-14 Ben Konrath 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. 2011-02-14 Ben Konrath 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. 2011-02-14 Ben Konrath 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. 2011-02-14 Ben Konrath Update Java formatter settings. * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120. 2011-02-02 Ben Konrath 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. 2011-02-02 Ben Konrath Add information about a deployment related issue. * README: Add Notes section with the problem outlined. 2011-02-02 Ben Konrath 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. 2011-01-28 Ben Konrath 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. 2011-01-27 Ben Konrath Cleanup ChangeLog entry from previous commit. * ChangeLog: Group logical changes together and add comments. 2011-01-25 Ben Konrath Convert to gwt-maven project. * .gitignore: Update for new project structure. * README: New file with a link to the online documentation. * pom.xml: The generated maven configuration file with some tweaks. Add / update Eclipse settings. These files are a merge of the files that were generated with the gwt-maven plugin and the files we were previously using. * .classpath: * .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: Java source files moved from the 'src' directory to the directory structure required by maven. * 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: Non-functional property file used for translations. I included this as reminder that it's something I need to sort out. * src/main/resources/org/glom/web/client/Messages.properties: The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory. * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: The servlet configuration files moved from the 'war' directory. * src/main/webapp/OnlineGlom.css: * src/main/webapp/OnlineGlom.html: * src/main/webapp/WEB-INF/web.xml: Generated test files with most of the code commented out. I included these so that it's easy to add tests when we're ready for them. * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java: * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: 2011-01-25 Ben Konrath Remove unused println. * src/org/glom/web/server/LibGlomServiceImpl.java: 2011-01-25 Ben Konrath Add project specific JDT settings. * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse. * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse. 2011-01-25 Ben Konrath 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. 2011-01-20 Ben Konrath 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. 2011-01-18 Ben Konrath 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: 211-01-13 Ben Konrath Update to new java-libglom API. * .gitignore: Ignore OnlineGlom.war. * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API. 2010-12-20 Ben Konrath 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. 2010-12-20 Ben Konrath 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. 2010-12-20 Ben Konrath Update Eclipse settings. * .classpath: * .settings/com.google.gdt.eclipse.core.prefs: * .settings/com.google.gwt.eclipse.core.prefs: 2010-12-17 Ben Konrath 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.