• Home
  • RSS Feed
  • Log in

Author Archive

Google Guice and Multibinding
Posted by Mischa Dasberg around lunchtime: December 21st, 2009

Last week I started migrating an application that used Spring for DI to Google Guice when I stumbled on multibinding.

Since Google Guice 2.0 we can use Multibinding which allows us to bind multiple objects to a collection.
But the one thing I missed in the current release is the ability to bind objects with a specific annotation. So I thought, why not build it myself :)

(more...)

  • Share/Bookmark

Filed under Java | 7 Comments »

Testing Wicket AjaxBehavior
Posted by Mischa Dasberg at around evening time: August 25th, 2009

Last week I ran into a problem while testing AjaxBehavior in Wicket.

Consider the following scenario: we have a FormComponent which has an AjaxBehavior added to it. We want to test that behavior. Depending on the selected value of for instance a RadioChoice, the Ajaxbehavior should show one component and hide another.

You would think that this would be out of the box behavior when using WicketTester, but unfortunately this is not the case. Triggering an Ajaxbehavior is easy using WicketTester, but setting the selected value isn't. (more...)

  • Share/Bookmark

Filed under Ajax, Java, Testing, Wicket | 1 Comment »

Testing Wicket with Fitnesse
Posted by Mischa Dasberg at around evening time: July 6th, 2008

On our latest project, My colleague Tjeerd Kaastra and I, have been using Wicket.
Since our GUI was so complex, and we had to write 100s of unit tests (a lot of corner cases), we sat down with our testers to find out how we should approach this. Because Our testers use Fitnesse to test both functional acceptance as well as regression tests, they test a lot of the code as well. So we thought, why not integrate the two and that is what we did.

This blog describes how to test Wicket applications using Fitnesse. It is about stretching the limits of the Wicket test components to do so. We will try to explain this by using a small example project we have created to illustrate things. This example project has been inspired on the new user wizard example by Eelco Hillenius. We adapted this example so that it uses Spring, because most apps use a backend system.

(more...)

  • Share/Bookmark

Filed under Ajax, Java, Spring, Testing, Wicket | 7 Comments »

Wicket – Updating ListViews using an AjaxLink
Posted by Mischa Dasberg mid-morning: June 4th, 2008

Consider the following senario: we want to display some data in a table like manner, and we want it to update when we click on a link or button. We do not want to do a complete page refresh, we want it in an ajax way. Also we would like the modify the css for each cell.

In wicket you can use a ListView iterate over a List of Objects and display them in a table like manner.
This blog describes how you can update ListView data and modify the css for each cell.
(more...)

  • Share/Bookmark

Tags: Ajax, Java, Wicket
Filed under Ajax, Java, Wicket | 10 Comments »

JavaOne 2008 Day Four: That’s a wrap!
Posted by Mischa Dasberg in the early evening: May 10th, 2008

Today was the last day of the JavaOne Conference. We came to the point when a lot of OutOfMemoryErrors where thrown. We just managed to squeeze in the last sessions.

Today's keynote was all about toys. The guys from the Netbeans team showed some new features such as a JavaScript editor (which contains code completion), Sentilla showed there small sensor thingies, which you can program to gather information, such as acceleration, temperature etc.., LiveScribe showed there very cool pen and lots more.

Today's topic included:

  • User Experience
  • SOA
  • Semantic Web

(more...)

  • Share/Bookmark

Tags: Java, JavaOne, Semantic Web, SOA
Filed under Java, JavaOne, SOA, Usability | 1 Comment »

Wicket and List Choice Transfers
Posted by Mischa Dasberg in the late evening: March 25th, 2008

Consider the following scenario: we want to have two select boxes and we want to add options from one to the other and back.
Currently, this is not easily possible in Wicket, even though there are a lot of extensions available.
This blog describes an easy way to create a component which does just that!

  select transfer   select transfer

(more...)

  • Share/Bookmark

Filed under Ajax, Java | 3 Comments »

How to make Displaytag ajax enabled using DWR?
Posted by Mischa Dasberg late at night: December 10th, 2007

Displaytag is an open source suite of custom tags with which you can easily display a collection of Objects as a table including direct support for paging and sorting. Normally selecting a new page, or sorting the tables leads to a complete page-refresh. It is more user-friendly to refresh only the data in the table using Ajax technology, however Displaytag doesn't offer this out-of-the-box. But we can of course try to add support for this using one of the many Ajax frameworks that are currently available.

A non ajax enabled Displaytag would do a request to a controller for every action such as a sorting or selecting a next page. This would result in a complete page refresh (step 1-8 ). When we Ajax enable the Displaytag we skip the page refresh and only refresh a specific piece of the page using an exposed service which provides the updated HTML fragment (step 1a-8a).
(more...)

  • Share/Bookmark

Filed under Ajax, Java | 16 Comments »

Deployment automation for Java application running on Websphere, WebLogic and JBoss

Archives

  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009

Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India

Categories

  • Java (282)
  • Agile (109)
  • General (50)
  • Testing (42)
  • Performance (42)
  • Hibernate (36)
  • Scrum (33)
  • Podcast (31)
  • Architecture (31)
  • Spring (28)
  • SOA (24)
  • Maven (22)
  • Project Management (22)
  • Middleware (23)
    • Deployment (14)
  • Flex (17)
  • JPA (17)
  • Eclipse (15)
  • Xebia Labs (15)
  • Quality Assurance (14)

Tag Cloud

    Hibernate Groovy Poppendieck Architecture Performance Grails Introduction to Agile Testing qcon Spring SOA Functional Programming Lean product owner Closures Java Agile Maven Scala fitnesse Semantic Web Seam Scrum Ajax IntelliJ JavaOne Xebia XML Agile Awareness Workshop esb