Wednesday, February 22, 2012

How to avoid namespace using JAXB

After banging several times to eliminate namespace from the generated XML found this useful URL. Gives a detail explanation to understand JAXB namespaces.

Friday, February 17, 2012

Vaadin for Rapid Application Development with cool UI

  • Stunning Web ApplicationsThe look and feel makes a difference. Vaadin comes with great-looking components and many customizable themes.
  • Browser Independent Web ApplicationsBuilt on GWT-based widgets, Vaadin applications provide rich user experience, and they support all Ajax-capable browsers, with no plugins.
  • Rapid Application DevelopmentWith Vaadin, you create web applications in minutes. A few lines of Java code and Vaadin takes care of the rest. No complex XML configurations, no JavaScript, no RPC.
  • Secure Web ApplicationsThe proven server-side architecture ensures that your application code is hidden from the world.
  • Maintainable ApplicationsPure Java gives you the power to build applications that can be easily extended and maintained for years to come.
After trying out few samples, Vaadin looks very promising if you are looking for quick web application development with cool UI. Additionally it has plugins for eclipse supporting drag and drop widgets.

Monday, July 18, 2011

Hate JSP?

Here is Thymeleaf

Thymeleaf is a Java library. It is an XML / XHTML / HTML5 template engine that can work both in web and non-web environments. It is better suited for serving XHTML/HTML5 at the view layer of web applications, but it can process any XML file even in offline environments.

It provides an optional module for integration with Spring MVC, so that you can use it as a complete substitute of JSP in your applications made with this technology, even with HTML5.

The main goal of Thymeleaf is to provide an elegant and well-formed way of creating templates. Its Standard and SpringStandard dialects allow you to create powerful natural templates, that can be correctly displayed by browsers and therefore work also as static prototypes. You can also extend Thymeleaf by developing your own dialects.

Get started here

Friday, January 21, 2011

HTML is a roller coaster

Yesterday, one of my colleague was struggling to bring his menus and submenus to the correct look. Struts was used for the presentation layer.

He approached me for help after spending hours on the problem, when I looked into the code he was using

His code was looking like

<li<logic:equal name="xxx" value="0">class="on"</logic:equal>

adding a space before the logic:equal tag did the fix. HTML could be the simplest, sometimes the TOUGHEST. :-)