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]
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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,
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.
--
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,
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
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
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,
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,
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
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'/
25 matches
Mail list logo