Friday, April 23, 2010

Server State what replaces Visit object?

This one is easy. T5 includes an annotation called @SessionState.

Just declare:

@SessionState
private Visit visit;


And you can use your old visit class from Tapestry 3 without modification. You won't have to do anything like Visit visit = (Visit) getVisit(); to instantiate it. It'll just be there.

No comments:

Post a Comment