Re: Grid with Scroll synchronization + Customization

2010-12-28 Thread Duruk_Kab
Thanks Thiago for pointing out logger issue. It was really very helpful. Now, the application takes around 5-6 seconds instead of 12-13 seconds it was taking before. But still have to figure out why it is taking 5-6 seconds in Tapestry. The log says: [2010-12-28 03:53:51.247]

Forms and Grid questions ....

2010-12-28 Thread Gunnar Eketrapp
Hi! I am using a grid inside a form to display a list of name + checkbox. The user can then select a number of names and press OK (or cancel). My questions are: 1) How do I disable the sorting functionality of the grid. 2) If I would like to suppport sorting and paging then I need some way to

Re: Grid with Scroll synchronization + Customization

2010-12-28 Thread Matheus Eduardo Machado Moreira
You could probably remove the TimingFilter that is present in your AppModule. This service is part of the app that is generated by the quickstart archetype and serve as an example of how to build and contribute services. Just comment out the methods buildTimingFilter() and

RE: Grid with Scroll synchronization + Customization

2010-12-28 Thread Jim O'Callaghan
Also, if your grid is displaying many entities and those entities contains many eager-loaded relations, you are retrieving a lot of data that may not be necessary. Perhaps you should consider a view-only entity that is restricted to the actual displayed columns, and retrieve those entities with

Re: Forms and Grid questions ....

2010-12-28 Thread Matheus Eduardo Machado Moreira
Hi, Gunnar! I think I know how to answer your first question. I assume your are using Tapestry 5.2.4 as I am. :-) You need to create an explicit BeanModel, customize its sorting funcionality and provide it to your Grid component. *Page class* @Inject private BeanModelSource

Re: Forms and Grid questions ....

2010-12-28 Thread Thiago H. de Paula Figueiredo
On Tue, 28 Dec 2010 07:09:36 -0200, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! Hi! My questions are: 1) How do I disable the sorting functionality of the grid. Matheus answered that. :) 2) If I would like to suppport sorting and paging then I need some way to first submit

Re: [5.2.4] Custom ValidationDecorator + Bean Validation integration

2010-12-28 Thread Matheus Eduardo Machado Moreira
https://issues.apache.org/jira/browse/TAP5-328 seems to be back. :-( Atenciosamente, Matheus Eduardo Machado Moreira matheus@gmail.com *Good cooking takes time. If you are made to wait, it is to serve you better, and to please you.* Menu do Restaurant Antoine, New Orleans

Re: tapestry-spring: injecting with multiple implementation.

2010-12-28 Thread Werner Keil
I very much hope, it finally supports JSR 330 then?;-/ 26. Dez 2010 6:02 nachm. schrieb am cablepuff cablep...@gmail.com: HI i have a problem in injecting multiple data source into different application. I have a.) selling service that uses one data source (via jee:jndi-lookup

[5.2.4] Bean Validation integration - possible bug

2010-12-28 Thread Matheus Eduardo Machado Moreira
Hello! Reading the org.apache.tapestry5.internal.beanvalidator.BeanFieldValidator class source I found that isRequired() always returns *false*. I think it is incorrect - maybe it should return a value based on the presence of @NotNull annotation on the field. Is it really a bug? If so, I

[5.2.4] Bean Validation integration - another possible bug

2010-12-28 Thread Matheus Eduardo Machado Moreira
Hello again. Just found another possible bug in the Bean Validation integration. See the error stack trace: 2010-12-28 13:18:40,983 [btpool0-1] ERROR tapestry.render.br.com.eteg.cromoup.pages.acesso.EditarPermissao - Render queue error in BeginRender[acesso/EditarPermissao:nome]: Class

Re: [5.2.4] Bean Validation integration - another possible bug

2010-12-28 Thread Thiago H. de Paula Figueiredo
On Tue, 28 Dec 2010 13:55:06 -0200, Matheus Eduardo Machado Moreira matheus@gmail.com wrote: Reading the Form component class (beginRender() method) I found that a BeanValidationContextImpl is pushed into the Environment before prepareForRender and prepare events are triggered. I could

Re: [5.2.4] Bean Validation integration - another possible bug

2010-12-28 Thread Matheus Eduardo Machado Moreira
Issue created: https://issues.apache.org/jira/browse/TAP5-1393. I'll provide some attachments that show a scenario where the bug happens (basically the same code that I put on the e-mail I previously sent to the list). Thanks for your time, Thiago. Atenciosamente, Matheus Eduardo

Problem injecting a Logger

2010-12-28 Thread Robert Hannebauer
I'm having problems with Tapestry 5.2.4 and injecting a Logger into a service and a component. My AppModule: public static void bind(ServiceBinder binder) { binder.bind(RandomNumberGenerator.class, SecureRandomNumberGenerator.class); binder.bind(UserService.class,

Re: Problem injecting a Logger

2010-12-28 Thread Josh Canfield
Services do constructor injection, not @Inject. So create a constructor that takes your your services as parameters and you're golden. public class UserServiceImpl implements UserService { private Logger logger; private RandomNumberGenerator randomNumber; public

Re: Problem injecting a Logger

2010-12-28 Thread Igor Drobiazko
Injection into services is not limited to constructors. It is absolutely ok to annotate fields with @Inject. The issue here is that Logger is not a typical service. For Logger one should use @InjectResource annotation. Same applies for configurations. So following should work: public class

Back Button in Ajax

2010-12-28 Thread raulmt
There are many JavaScript libraries for handling the back button problem with Ajax requests (the URL doesn't change, so a hit to the back button takes you to the real previous page instead of the previous section loaded by Ajax). Many of what I've found do this by appending # and parameters to

Re: Problem injecting a Logger

2010-12-28 Thread Robert Hannebauer
I'm missing the forest through the trees. Sometimes the solution is too simple. But why do injection in component classes works? This seems to set me on the wrong track. Both solutions (@InjectResource) and constructor injection works perfectly. Many thanks Robert Am 28.12.2010 22:31,

Re: Problem injecting a Logger

2010-12-28 Thread Thiago H. de Paula Figueiredo
On Tue, 28 Dec 2010 19:56:52 -0200, Robert Hannebauer rob...@hannebauer.org wrote: But why do injection in component classes works? This seems to set me on the wrong track. Because some kind of injections are implemented as class transformations, not just grabbing an IoC service. --

Re: Back Button in Ajax

2010-12-28 Thread Stefan
if you already use jQuery u should look at this nice toolbox: http://flowplayer.org/tools/toolbox/history.html another way is the one u already mentioned: with every ajax request append another value to the url. this should at least prevent the switch back to the real previous page. regards,

Re: Problem injecting a Logger

2010-12-28 Thread Josh Canfield
Weird. Has that always been true? For some reason I've had it in my head that services weren't available for field injection I'm also confused why @Inject would work with Logger in a Component, but not in a service. On Tue, Dec 28, 2010 at 1:31 PM, Igor Drobiazko

Re: Problem injecting a Logger

2010-12-28 Thread Thiago H. de Paula Figueiredo
On Tue, 28 Dec 2010 21:11:58 -0200, Josh Canfield joshcanfi...@gmail.com wrote: Weird. Has that always been true? No. I can't remember when, though. I'm also confused why @Inject would work with Logger in a Component, but not in a service. Injection of some object types are handled by

Re: Problem injecting a Logger

2010-12-28 Thread Howard Lewis Ship
You're seeing the evolution of the framework. Originally, there was only constructor injection for services. This is because we did not, originally, use a special class loader for service implementations and we were trying to avoid reflection. Components always used a special class loader,

Re: error when trying to use the components tapx

2010-12-28 Thread Pablo Borges
Howard , is there another way? how to download and use the tapx? 2010/12/23 Howard Lewis Ship hls...@gmail.com I don't know ... I just build from source :-) See my previous posting; I'm just too short on time to deal with those build issues this week. On Thu, Dec 23, 2010 at 12:58 PM,

Re: Grid with Scroll synchronization + Customization

2010-12-28 Thread Taha Hafeez
Hi, I think what Jim was also pointing out was Eager Loading which is really something to be taken very seriously. I remember we had a performance issue in one of our applications and after monitoring the generated SQL (we were using hibernate) we found a lot of eager loading in our grids.We

Tapestry5 Dynamics Parameter Binding

2010-12-28 Thread Taha Hafeez
Hi I have two components on a single page and I want a property of one component to be bound to parameter of another component. I can easy do that in a page but can I do that using ComponentClassTransformWorker. tml is like t:component1 t:parameterToBeBound='propertyFromComponent2'/