grails (11) vaadin (11) meteor (6) java (4) elasticsearch (3) apple (2) centos (1) cloudbees (1) google analytics (1) gradle (1) heroku (1) javafx (1) javascript (1) jdbc (1) jug (1) logback (1) logging (1) mac os (1) management (1) mongodb (1) mongolab (1) mysql (1) twitter (1) ubuntu (1)

Monday, June 3, 2013

Twitter buttons in Meteor

The following steps show how to add Twitter button into a Meteor application.
  1. Add the link which represents Twitter button into the template:
  2. Place the JavaScript provided by Twitter to the .js file for the template:
I took this code from http://templhub.com application.

Vaadin 7 and Grails: How to compile widget set

I have promised to publish a tutorial showing how to compile the widget set inside Grails project with Vaadin 7. Here you are.

  1. Create a new widget set definition file AppWidgetSet.gwt.xml in the grails-app/vaadin directory.
  2. Open VaadinConfig.groovy that is inside the grails-app/conf folder and add there a note about the new widgetset file.
    widgetset = "app.AppWidgetSet"
  3. Create a folder libs-widgetset (for example inside the project root folder) for libraries that are needed during the widget set compilation. Download all-in-one archive of Vaadin 7 from https://vaadin.com/download and move all the .jar files from the archive into libs-widgetset folder. Do not forgot to move also .jar files from lib folder from the archive.
  4. Create build.xml file with the following content.
  5. Open the console inside the project root and run the ant command. The widget set compilation will start. Before you run the ant command, remove all the content of vaadin-grails-addon/web-app/VAADIN folder. 
This is a short version of tutorial "Adding Vaadin Add-on into Grails project" taken from the Vaadin 7 Cookbook.
TextLab for Mac
Ultimate application to validate, clean and format JSON, XML, SQL, HTML.