Wicket Game

A Developers Notebook - Wicket Game

  • Homepage
  • Wicket-CRUDr
  • Imprint
  • About

SOTP (State of the Project) - January/February 2013

Sorry for posting this quite late or missing the January update (depenting on the point of view). The new year started with a high workload at the office so that there weren't many days were I wanted to continue working at home. So this is pretty short.

The Lister Annotation is gone and the Editor Annotation is about to follow. This reduced the codebase a little but produced Prototypes with a higher readability. Prototypes are the classes of entities that CRUDr displays. These classes have to be annotated using the Prototype Annotation.

I'm currently thinking about pre releasing an alpha version with the readonly components implemented.

Here's a short code sample of a Prototype. All that's really needed is the Prototype Annotations and getters for all properties you want to display. The Order Annotation isn't strictly needed but it's highly recommendet to use it. CRURr uses reflection to access and inspect the prototypes and if there is no Order Annotation present it uses the order as it's returned by Class.getMethods(), which is undefined.

@Prototype
public static class PetWrapper implements Serializable {

    private static final long serialVersionUID = 4972449001878482038L;
    private Pet pet;

    public PetWrapper(Pet pet) {
        this.pet = pet;
    }

    @Order(1)
    public String getHumanReadableId() {
        return pet.getName() + " (" + pet.getType().getName() + ")";
    }

    @Override
    public String toString() {
        return "Pet: " + getHumanReadableId() + " - Owner: " + pet.getOwner();
    }

}

This prototype will only display a human readable id of a Pet object. It's a reduced snipplet of the Owner-Display-Page of the PetClinic demoproject.

Posted by David Hendrix in Wicket-CRUDr Comments: (0) Trackbacks: (0)
Defined tags for this entry: apache wicket, sotp, wicket, wicket-crudr
Related entries by tags:
  • SOTP (State of the Project) - December 2012
  • SOTP (State of the Project) - November 2012
  • It's been a slow month
  • A slight case of over-engineering
  • Wrapping or Proxying Wicket Components - A story of failure in three acts

Trackbacks
Trackback specific URI for this entry

No Trackbacks

Comments
Display comments as (Linear | Threaded)

No comments


Add Comment

Standard emoticons like :-) and ;-) are converted to images.
Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
BBCode format allowed
 
Submitted comments will be subject to moderation before being displayed.
 

Archives

  • May 2013
  • April 2013
  • March 2013
  • Recent...
  • Older...

Categories

  • XML Books
  • XML Found and Linked
  • XML Software Development
  • XML Java
  • XML Apache Wicket
  • XML Wicket-CRUDr
  • XML Performance
  • XML Security


All categories

Other reads

Rebel Labs Report - "Pragmatic DevOps: Virtualization & Provisioning with Vagrant & Chef"

Wednesday, May 15. 2013
Automating a complex build process

Wednesday, May 8. 2013
Concurrent garbage collection in Java

Tuesday, May 7. 2013
The great Java app server debate with Tomcat/TomEE & JBoss

Tuesday, May 7. 2013
Fix memory leaks in Java production applications in 5 steps

Tuesday, May 7. 2013

Syndicate This Blog

  • XML RSS 0.91 feed
  • XML RSS 1.0 feed
  • XML RSS 2.0 feed
  • ATOM/XML ATOM 1.0 feed
  • XML RSS 2.0 Comments
  • Add to Google

Blog Administration

Open login screen

Show tagged entries

xml java enterprise
xml j2ee
xml rant
xml dependency injection
xml guildwars assistant
xml wicket
xml gwassist.de
xml wicket-crudr
xml apache
xml apache wicket
xml java
xml software development
 

Layout by David 'Nicktar' Hendrix