Re: Generic DAO

2012-08-31 Thread Miguel O. Carvajal
Or you can try to auto-bind them like described here: http://killertilapia.blogspot.com/2012/08/autobind-all-tapestry5-services .html On Fri, Aug 31, 2012 at 2:15 AM, Miguel O. Carvajal < tapes...@carvajalonline.com> wrote: Hey all, I am taking a look again at how we have implem

Re: Generic DAO

2012-08-30 Thread Miguel O. Carvajal
instance for each entity. Any other ideas? Obrigado, Miguel On 30.08.2012 18:27, Thiago H de Paula Figueiredo wrote: On Thu, 30 Aug 2012 19:15:11 -0300, Miguel O. Carvajal wrote: Hey all, Hi! I saw in the issue 2550 (https://issues.apache.org/jira/browse/TAPESTRY-2550) that

Generic DAO

2012-08-30 Thread Miguel O. Carvajal
Hey all, I am taking a look again at how we have implemented a generic DAO in our Tapestry application, since our currently implementation is a bit hackish. I was looking at the great article over at http://tawus.wordpress.com/2011/05/28/tapestry-magic-13-generic-data-access-objects/ And w

Re: Serialize Messages

2012-02-08 Thread Miguel O. Carvajal
A mixin would not work in my case. I need to generate JSON for the messages so that certain UI is updated on the client. I am just going to have to parse app.properties myself sadly. Thanks for your help, Omar -- View this message in context: http://tapestry.1045711.n5.nabble.com/Serialize-Me

Re: Serialize Messages

2012-02-08 Thread Miguel O. Carvajal
I tried doing this but could not get the "properties" field from the Messages service. I am doing the following: Messages messages = componentMessagesSource.getApplicationCatalog(locale); try { Field f = messages.getClass().getDeclaredField("properties"); //NoSu

Serialize Messages

2012-02-07 Thread Miguel O. Carvajal
Hey All, I have a situation where I have an application that requires that the application message catalog be serialized to JSON and processed by the browser. I have the basic code to do this but MessagesImpl.java has its "properties" map defined as private. Is there something I could do (