-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to RWT 2.0 M3. Update documentation. First 0.1 release.
- Loading branch information
Showing
21 changed files
with
154 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
grails-rwt | ||
========== | ||
|
||
The first alpha release is there! It works, but I'm still finishing the documentation before I'll | ||
release the plugin into the official Grails plugin repository. | ||
This plugin integrates RWT - the web-ported Standard Widget Toolkit (SWT) - into your Grails | ||
application. It enables you to build your RWT and JFace powered user interfaces using Groovy and the | ||
complete Grails framework stack with all its powerful features and syntactic DSL sugar. | ||
|
||
Stay tuned!! | ||
The RWT plugin is available here: http://grails.org/plugin/rwt | ||
|
||
The documentation is available here: http://bwolff.github.com/grails-rwt/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
Configuration... | ||
The RWT application goes into a special configuration block in the @Config.groovy@ file. | ||
|
||
{code} | ||
rwt { | ||
// RWT configuration goes here. | ||
} | ||
{code} | ||
|
||
There are two aspects that can be configured, the global RWT settings, and the settings | ||
specific to the single entry points. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Application configuration... | ||
Options to configure global aspects of the RWT application will come in future versions of this plugin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,37 @@ | ||
EntryPoint configuration... | ||
An RWT application can consist of one or more entry points. Each entry point is configured as a | ||
configuration block within the @rwt@ section. | ||
|
||
{code} | ||
rwt { | ||
hello { | ||
bean = 'entryPointBean' | ||
pageTitle = 'Hello RWT World!' | ||
} | ||
} | ||
{code} | ||
|
||
The given example configures an entry point with the name @hello@. By default, this entry point will | ||
be mapped to the relative URL path '/hello'. The following settings need to be provided for an | ||
entry point configuration: | ||
|
||
* *bean* - The name (string) of the bean that implements the IEntryPoint interface (mandatory). | ||
* *pageTitle* - The title (string) that will be displayed as the browser's title (optional). | ||
|
||
A Grails-RWT application can contain an arbitrary number of entry points, which usually refer to | ||
different entry point beans. | ||
|
||
{code} | ||
rwt { | ||
hello { | ||
bean = 'helloEntryPoint' | ||
pageTitle = 'Hello RWT World!' | ||
} | ||
|
||
helloAgain { | ||
bean = 'helloAgainEntryPoint' | ||
pageTitle = 'Hello again, RWT World!' | ||
} | ||
} | ||
{code} | ||
|
||
In this example there will be two entry points accessible under '/hello' and '/helloAgain'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
Getting started... | ||
This short guide will get you started with all you need to know to create your first Grails-RWT | ||
application. You should be familiar with how to [create a Grails application|http://grails.org/doc/latest/guide/gettingStarted.html#creatingAnApplication] | ||
and artifacts like [domain classes|http://grails.org/doc/latest/guide/GORM.html#quickStartGuide] and | ||
[services|http://grails.org/doc/latest/guide/services.html]. | ||
|
||
This plugin requires at least Grails version 2.0. | ||
The RWT setup process is based on the [standalone guide|http://eclipse.org/rap/developers-guide/devguide.php?topic=advanced/rwt-standalone.html]. | ||
However, the Grails-RWT plugin does most of the setup for you, as you will see in this guide. | ||
|
||
Start with creating an example Grails application and then follow the instructions below. The next | ||
sections assume that the applications is called @grails-rwt-example@. Replace the occurences in the example | ||
URLs with the actual name of your example application. | ||
|
||
h3. Example Code | ||
|
||
There is an example project available on GitHub that can be used as a kickstart. It contains the | ||
example code shown in this guide and is properly configured to get started immediately. | ||
|
||
{code} | ||
git clone https://github.com/bwolff/grails-rwt-example | ||
{code} | ||
|
||
After you checked out the project you can inspect the code and start the application as described | ||
in the [Running the Application|guide:runApplication] section below. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
Configure entry point ... | ||
The only thing that is missing now is the configuration of our new RWT entry point. This is done | ||
in an own [configuration|http://grails.org/doc/latest/guide/conf.html#config] block in the | ||
@Config.groovy@ file. | ||
|
||
{code} | ||
// The RWT configuration block | ||
// RWT configuration | ||
rwt { | ||
|
||
// Entry Point configuration block | ||
// Entry points configuration | ||
entrypoints { | ||
// Configuration of an entry point named 'hello' | ||
|
||
// Configuration of an entry point named 'hello', the relative URL path will be '/hello'. | ||
hello { | ||
bean = 'helloEntryPointService' | ||
pageTitle = 'Hello RWT!' | ||
bean = 'helloEntryPointService' // The name of the entry point bean (required) | ||
pageTitle = 'Hello RWT!' // The browser title that will be displayed (optional) | ||
} | ||
} | ||
} | ||
{code} | ||
{code} | ||
|
||
Here we simply specify our entry point as a block under @entrypoints@ and provide the name of the | ||
entry point bean, which is described above. We can also specify a string that will be displayed as | ||
the browser's page title. | ||
|
||
More information about the configuration of an RWT application and the entry points is available | ||
[here|guide:configuration]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
You can now package your first Grails/RWT application into a WAR file and deploy to the servlet | ||
You can now package your application into a WAR file and deploy it to the [servlet container|http://grails.org/Deployment] | ||
of your choice. The [deployment procedure|http://grails.org/doc/latest/guide/deployment.html] is the | ||
same as for any other Grails application, by simply issuing the following command in the command | ||
same as for a default Grails application, by simply issuing the following command in the command | ||
line: | ||
|
||
{code} | ||
grails war | ||
{code} | ||
|
||
The resulting WAR file is created in the @target/@ folder and can now be deployed to e.g. a [Tomcat|http://tomcat.apache.org/] | ||
container. All necessary jar files for RWT/JFace will be contained and the web.xml is also properly | ||
set up. | ||
The resulting WAR file is created in the @target/@ sub-folder and can now be deployed to e.g. a | ||
[Tomcat|http://tomcat.apache.org/] container. All necessary jar files for RWT/JFace will be | ||
packaged and the web.xml will also be properly set up. | ||
|
||
Congratulations! You should now be able to create a more sophisticated Grails-RWT applications and | ||
explore the features that RWT provides. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
The plugin is installed using the default [Grails plugin installation mechanism|http://grails.org/doc/latest/guide/conf.html#pluginDependencies]. | ||
Simply add the following lines to the plugin dependency section in the @BuildConfig.groovy@ file: | ||
Simply add/modify the following lines to the plugin dependency section in the @BuildConfig.groovy@ file: | ||
|
||
{code} | ||
grails.project.dependency.resolution = { | ||
... | ||
|
||
plugins { | ||
compile ':rwt:0.1' | ||
} | ||
... | ||
} | ||
{code} | ||
{code} | ||
|
||
The plugin will be installed automatically on the next invocation of a Grails command. Your IDE | ||
(e.g. [STS/GGTS|http://grails.org/products/ggts]) should also pick up the new installed plugin and should make the contained jar | ||
libraries available in your Grails project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
Known and open issues... | ||
This section sums up a few issues that will be tackled/resolved in upcoming versions of this plugin. | ||
|
||
* *Theming & Branding* | ||
** Support the RWT custom CSS and theming options. | ||
* *Use Maven for the RWT dependencies* | ||
** Unfortunately there is no maven repository available that can server the required RWT dependency jar files. Currently, the required jars are bundled with the plugin. This is no ideal, as it doesn't allow to switch the RWT version. This situation can be improved if the jar files will become available in a public Maven repository. | ||
|
||
Please file any issues/requests/ideas in the [GitHub issue tracker|http://github.com/bwolff/grails-rwt/issues]. |