There is always room for improvement in programming world. After my initial post about configuring Vaadin in 6 simple steps, one of my friends indicated that we could have used annotation based configuration to get rid of web.xml in our Vaadin configuration. Yes, he is right. It is possible to configure Vaadin with annotations without […]
Tag: javaee
How to Start Working with Vaadin
We are highly satisfied with Vaadin UI Framework in our enterprise Java projects. I recommend it to anyone who are asking advice about what UI framework to use in their enterprise web applications. This article, however, is not about why we like Vaadin. It might be a topic for another article. I will try to […]
Styling HTML Input File Elements
It is almost impossible to make html input file elements look the same as the other parts of web applications. Browsers provide few possibilites to style them or nothing at all. However, within the newer versions of browsers, you might apply some tricks to alleviate this common styling problem, and one neat way, explaining how […]
Switching Application Required System Properties According to Deployment Environment
Any serious application depends on a number of configuration properties, such as JDBC connection properties, caching properties etc. They should change according to target deployment environment. People employ different methods to take those properties outside their web applications. Among them, one commonly used method is to create a properties file and collect any property, whose […]
Managing Dependencies With Ant
Every non-trivial java application have many dependencies on other resources, especially jar files. We have to keep track of which jars we are making use of, and their versions as the project develops. Systems may have several releases during their development life cycle, and among those releases, dependency lists may change, new jars may be […]
Cactus XOR Mocks or Cactus AND Mocks?
We employ both Spring and Hibernate to implement business and data access layers in our current project. Our aim is to bring clear separation between those two layers. Beans in business layer act as service entry points. They simply realize our use case scenarios. They are also good candidates as start and end points for […]
Why to use absolute paths to reference resources in login and error web pages
I think, it is a well known practice to use absolute names to access resources in login and global error pages, but the reason behind it might not be so clear for some of us. Servlet specification states that when a protected resource accessed, should the request directed first to login page unless user is […]
Uncaught Exception Handling in Java Server Faces
First comes a little flashback on how we can deal with uncaught exceptions in web applications. As you probably know, there exists a general exception/error trapping mechanism for servlet/jsp based web applications. We simply add error-page definitions in web.xml file for uncaught exceptions or http status codes to show users custom error pages instead of […]
Extending XDoclet Spring Module
XDoclet is a wonderful tool, and we extensively make use of it in our current project to generate Hibernate and Spring configuration files. Our aim is to maintain no configuration file apart from our source code. XDoclet’s help is great in achieving this, but sometimes it requires modifications to keep up with that mission. We […]
Experiences with Audit Logging through Hibernate Interceptor
In our current project, we make use of Hibernate Interceptor in order to perform auditing to track operations performed with our domain objects. We at first simply followed instructions in Hibernate In Action book. Basically, steps are as follows; Declare an Auditable interface, and methods in it for what kind of information you want to […]