Skip to main content

Posts

Showing posts from March, 2013

Facebook4j definitely!

I think that the best library to connect to and interact with Facebook from a Java web application is Facebook4j ( http://facebook4j.org/en/index.html ). I am not a big fan of Facebook, but I needed to interact with the most popular social network and had to search for a solution to this requirement. Facebook4j is an high level Java library for the Facebook Graph API. It doesn't require additional dependencies, it's Open Source and released under the Apache License 2.0 and it has built-in OAuth support. The learning curve is very low and you need just few lines of code to perform any kind of interaction with Facebook. Before moving to Facebook4j I tried also other APIs (among them RestFB and the now deprecated java-facebook-api) and Spring Social. At the end Facebook4j was the best, the most well documented and the easiest to use. I had to discard Spring Social because the application I am working on is not Spring based. This application is hosted on Google App Engine and I eas

Localization in GWT UiBinder howto

In GWT the localization process is more complex using the UiBinder declarative layout than the Java layout and the official documentation is lacking. In this post I will shortly describe the steps to follow to localize your UiBinder views. First of all you have to add the local properties to your GWT XML module file: <inherits name="com.google.gwt.i18n.I18N"/> <extend-property name="locale" values="en"/> <extend-property name="locale" values="it"/> In this example I am considering English and Italian as possible languages. Then you have to add the locale namespaces to any of the *.ui.xml file of your project: <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui"  ui:generateFormat="com.google.gwt.i18n.rebind.format.PropertiesFormat"        ui:generateKeys="com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator"  

New article about Axon framework

It's on line now the March issue of Mokabyte magazine ( www.mokabyte.it ). It contains a new article ( http://www2.mokabyte.it/cms/article.run?articleId=8NU-7JY-S5U-KM4_7f000001_26089272_3efb3042 ) wrote by me about the Axon framework ( http://www.axonframework.org/ ), a Java implementation of the CQRS (Command Query Responsibility Segregation) pattern. This article is the third of four. The column on the right shows you the links to read my other articles about Axon and CQRS. The article is in Italian language only, but please feel free to ask me any kind of info in English about it. I'd like to know also your impressions about CQRS or Axon if you already had applied them to any of your projects.