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.
Friday, April 23, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment