Skip to main content

Posts

Showing posts from 2011

Sending Event Invitations With Seam

These days one of my colleagues had problems with sending event invitation using mail templates with seam (version 2.x). In basic this should not be a hard task, so I will in short explain what need to be done for sending event invitation using seam mail templates. When you send mail invitation you need to send an email with attachment which contains information about particular event. I will create simple template and sender class which will be used for sending invitation.

Swiping Slides On Mobile

These days working on our current project was very interesting. Creating a web page for mobile devices is not so easy task. Getting page to work on all platforms can be fun, interesting and in some moments a hard task.  It is like making page to works with IE 6 :). We already have templates which works in mobile, and support both (landscape and portrait) page orientation. But for the first time we were supposed to implement more complicated logic in our mobile sites. We got a task to create "coverflow". We were supposed to create slides and allow user to swipes them.

How to scroll on top of iframe on mobile

On my current project we had requirement to provide mechanism for include foreign content in web page (it can be page from same domain or page from foreign domain) for mobile devices. We already had solution for desktop browser and only we should to port it for mobile. For this purpose for the desktop browser we used iframes and we wanted to do same for mobile. Here stuff have become a little bit tricky.

Basics about Servlets

Through this tutorial i will try to get you closer to the Java Servlet Model. Before we start with examination of classes defined within the servlet specification, i will explain basic stuff needed to know before you start with developing web application.

Ubuntu problem with accessing to .local domain

At work we have configured network with .local domain. But default setting on my Ubuntu 10.04 prevent me to access any resource which is configured in our network eg: "something.company.local". On Ubunt wiki i found solution for my problem:   sudo stop avahi-daemon This will stop avahi deamon. More info about this problem you can find on: Ubuntu Wiki

Servlet API Listeners

Generally speaking Listener are objects which are used for performing some action when somethings is happened. They receive notification about some change and perform action registered for that event. Also in the web application from time to time some "interesting" changes happens, and it would be nice that we can be notified about them.  Because of that in the servlet api are defined some Listener interfaces which allow us to handle events which are interesting for us.

Restart ALSA driver on OpenSuse

From time to time it can happens that your sound driver stops to work completely or just for some application. In this case you need to restart your ALSA driver. Here you can see how you can do it on OpenSuse: start terminal and type  cd /etc/init.d/ sudo ./alsasound restart   After this your driver are restarted and you are ready to continue with your works ;).

Simple Workflow Engine With Spring

Few months ago, during working on one of the company project, we had need to developed  REST services which is used for sending an email depending on data sent by client application. During developing this service we decide to create simple workflow engine which will be charged for sending an email, but also this engine can be used for any kind of simple flows. In this article i will explain step by step how you can implement your simple workflow engine which can handle sequence flow.

Configure Seam Mail

From time to time we have need to send an e-mail from application. This task should not be so complicated, but if you do it for the first time you can get some troubles and it can take you some time. Because of that I will try to explain how you can configure it correctly.

Maven and seam project on tomcat

One of my first web projects with Java was a seam project running on the tomcat. At a time when we worked on this project (in 2009) there was not lots of advice how to properly configured seam to runs on tomcat using maven. Also manufacturer recommend using of JBoss and Tomcat is only recommend as testing platform. Some days ago I have chatted with my colleague about configuring seam framework on the JBoss, and of course on the net you can find a lot advices and instructions, what not surprise me, because this is recommended choice by manufacturer. But that encourage me to research a net one more time and check is situation with tomcat changed after two years. But on my surprise, the list of useful posts with this topic is not much increased by the time when we used tomcat and seam.