Posts Tagged Java

XStream – XStreamely easy way to work with XML data in Java

Tags: , , ,

From time to time there is a moment when we have to deal with XML data. And most of the time it is not the happiest day in our life. There is even a term “XML hell” describing situation when programmer has to deal with many XML configuration files that are hard to comprehend. But, like it or not, sometimes we have no choice, mostly because specification from client says something like “use configuration written in XML file” or something similar. And in such cases, XStream comes with its very cool features that make dealing with XML really less painful.

xstream

Overview

XStream is a small library to serialize data between Java objects and XML. It’s lightweight, small, has nice API and what is most important, it works with and without custom annotations that we might be not allowed to add when we are not the owner of Java classes.
Continue reading this post …


Be Sociable, Share!

Deploying Java Web Application on Jelastic

Tags: , , ,

Some time ago having your own full-fledged hosting with Java, Tomcat and any database wasn’t cheap, but luckily we live in a very interesting times and now there are many virtual hosting services in the Cloud providing an easy and affordable way to deploy your application and make it available to users.

And what is the best in such solutions, they grow with your application or startup. Services are free or almost free when your web application doesn’t need much memory and processors but when your web-app starts to gather more users’ attention and you have more and more concurrent sessions and visits each day, you could easily enhance your setup to match your needs. Everything is a matter of a few clicks, simple and fast.

To test how this deployment process look like, I’ve decided to put my Wicket tutorial web application online. It consist of three pages and two tables in database so I think it shouldn’t be a too complicated process to deploy it online. And as a Java hosting service I’ve chosen Jelastic, recent winner of 2012 Duke’s Choice Awards announced during JavaOne conference this year. Duke’s Choice Award is something like a Oscar in the Java world, so I thought that Jelastic might be a good choice to start with. Continue reading this post …


Be Sociable, Share!

Our short Wicket talk at Web frameworks shootout, 33rdDegree conference

Tags: , ,

If you, by any chance, are one of the 33rdDegree conference participants and you are interested in developing web applications using Java/JVM environment you should also be interested in one of the BOF sessions on Wednesday during the conference: Web frameworks shootout.

We (Paul Szulc with me as a support) will be presenting Wicket framework and its nice features which help Java Developers to build web applications easily and with a lot of fun! :) At this BOF session you will have an opportunity to see more short and concise presentations of the following new and cool web frameworks: Play, Lift, and Grails,  so a lot of new knowledge are waiting there for you :)

Of course if you want to talk with me about Wicket or anything else, don’t hesitate and catch me anytime during 33rdDegree.


Be Sociable, Share!

Wicket tutorial series – building web application from scratch

Tags: , ,

This post aggregates the  series of Wicket tutorial articles from this blog. But as this tutorial is still not finished and new posts will be published in the near future, please return here again to find new parts or (simpler) just add my RSS to your reader.

Wicket tutorial series

    1. Wicket Tutorial, part 1 – setting up project with Spring 3, JPA 2 and MySQL

    2. Wicket Tutorial, part 2 – adding common layout to the project

    3. Wicket Tutorial, part 3 – first form in our application

    4. Wicket Tutorial, part 4 – custom validator for unique entity name

    5. Wicket tutorial, part 5 – generic unique entity validator

    6. Wicket Tutorial, part 6 – listing locations in a simple manner

    7. Wicket Tutorial, part 7 – editing and removing item locations

 

 

You might also be interested in post Wicket – useful links with other good tutorials, presentations and tools I found useful while learning and using Wicket.


Be Sociable, Share!

Wicket Tutorial, part 6 – listing locations in a simple manner

Tags: , , ,

Today we will add simple listing view for locations added to the database in previous posts.  I said ‘simple’ as there are some more sophisticated ways to show many items using Wicket but probably we will not have many locations to show in our application so simple view without pagination should be ok. More complicated way (DataTable component) will be covered in the future when we will add ‘listing items’ feature’.

Continue reading this post …


Be Sociable, Share!

Wicket tutorial, part 5 – generic unique entity validator

Tags: , , ,

As I promised in the previous post, today we will focus on transforming our unique name validator in Wicket to generic one. So now, let’s simply list what we are going to achieve;

  • validator should validate any entity object in our project
  • validator should check unique value of any property from validated object
  • error message should be generic too but customization should be easy

Continue reading this post …


Be Sociable, Share!