Em Tue, 10 Mar 2009 21:20:01 -0300, Howard Lewis Ship <[email protected]> escreveu:

This very minute I'm refactoring: LinkFactory is going away, but
there's a single service, ComponentEventLinkEncoder that's responsible
for encoding and decoding component event and page render requests.

Awesome! Specially if some crucial method receives a Request. That will make the missing part of URL rewriting (the generated links) a piece of cake.

It's a public service, so it will be something people can override.

Override or decorate. :) The power of decorating services is something that I've been discovering lately. For Tapestry CRUD, I wrote a simple service (BeanModelCustomizerService) that decorates BeanModelSource and provides the ability of customizing BeanModels for a given type in a single place (a BeanModelCustomizer instance). Thus, if I have a listing page (Grid), an edition page (BeanEditForm/BeanEditor) and a view page (BeanDisplay), I don't need to copy the customizing of the BeanModel in the three pages nor use the model parameter of this components. Less code in the end, more magic. :)

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to