Re: Render large page

2010-03-05 Thread Henry Chen
The variables are valid. The problem is both Confirm and RoundCornerContainer components use prototype to manipulate the html. I ended up replacing those component with some simple js functions and problem solved. -- View this message in context: http://n2.nabble.com/Render-large-page-tp4677583p

Re: Render large page

2010-03-05 Thread Dmitry Gusev
May this be because of invalid js variable name (src-...)? 2010/3/6, Henry Chen : > > Sorry, I edited it later but looks like it only saved on Nabble. Here is the > complete post. > > > I got this error. > > Client exception processing response: SyntaxError: missing ; before > statement > > Below

Re: Date Field Component - Disable

2010-03-05 Thread sandeep learning tapestry
Thanks for your reply. We have finally decided to have our ownDatefield component. Temporarily we do with changes with javascript as u suggested regards, sandeep - Thanks, Sandeep "Learning Tapestry" -- View this message in context: http://n2.nabble.com/Date-Field-Component-Disable-tp4030

Re: Grid Sorting images changed - One of the approaches provided

2010-03-05 Thread sandeep learning tapestry
We finally used method advice whereby we advised assetSource service and changed the parameter to point to my images. - Thanks, Sandeep "Learning Tapestry" -- View this message in context: http://n2.nabble.com/Grid-Sorting-images-changed-One-of-the-approaches-provided-tp4104570p4685175.html

[T5.2.0] two problems when extending Autocomplete

2010-03-05 Thread Joost Schouten (ml)
Hi, I have found another problem when extending the Autocomplete Mixin which has been introduced by recent changes on the 5.2.0-SNAPSHOT version. - The @Override methods (eg. generateResponseMarkup(MarkupWriter writer, List matches)) are no longer called on the extending class On the dev li

Re: Render large page

2010-03-05 Thread Howard Lewis Ship
Looks like some of the ChenilleKit code is unhappy to run inside an Ajax update; I'm not sure why. On Fri, Mar 5, 2010 at 6:20 PM, Henry Chen wrote: > > Sorry, I edited it later but looks like it only saved on Nabble. Here is the > complete post. > > > I got this error. > > Client exception proce

Re: Render large page

2010-03-05 Thread Henry Chen
Sorry, I edited it later but looks like it only saved on Nabble. Here is the complete post. I got this error. Client exception processing response: SyntaxError: missing ; before statement Below is the "script" section from one of the ajax response.

Re: Render large page

2010-03-05 Thread Howard Lewis Ship
http://www.catb.org/esr/faqs/smart-questions.html On Fri, Mar 5, 2010 at 3:48 PM, Henry Chen wrote: > > I got this error. > > Client exception processing response: SyntaxError: missing ; before > statement > -- > View this message in context: > http://n2.nabble.com/Render-large-page-tp4677583p46

Re: Why does nesting break my Ajax?

2010-03-05 Thread Howard Lewis Ship
Often what happens is that some invaild JS on the client causes an exception, and (for whatever reason) that results in the original event continuing as a full-page (non-Ajax) request. This is where FireBug is your friend. I know it should just work ... what's your browser? On Fri, Mar 5, 2010 at

Re: Why does nesting break my Ajax?

2010-03-05 Thread Pierce T. Wetter III
Ok, so I've figured out I get the error because request.isXHR is false. So why does wrapping the Layout.tml component from the quickstart cause the Ajax request turn into a non-XHR request? > So I'm building a custom component that's a combination of a Grid component, > with a zone that

Re: Render large page

2010-03-05 Thread Henry Chen
I got this error. Client exception processing response: SyntaxError: missing ; before statement -- View this message in context: http://n2.nabble.com/Render-large-page-tp4677583p4684254.html Sent from the Tapestry Users mailing list archive at Nabble.com. --

Why does nesting break my Ajax?

2010-03-05 Thread Pierce T. Wetter III
So I'm building a custom component that's a combination of a Grid component, with a zone that updates so that if you click on one of the items in the grid, it uses a second component that uses the beandisplay component to display more detail. It works fine when I have the structure: Pag

Re: Render large page

2010-03-05 Thread Howard Lewis Ship
That should work; what errors are you seeing on the client side? On Fri, Mar 5, 2010 at 1:17 PM, Henry Chen wrote: > > Thanks. The contents are now ajax loaded as expected :) except one small > thing. I used RoundCornerContainer component and "confirm" mixin inside the > ProgressDisplay component

Re: Render large page

2010-03-05 Thread Henry Chen
Thanks. The contents are now ajax loaded as expected :) except one small thing. I used RoundCornerContainer component and "confirm" mixin inside the ProgressDisplay component. Both of them inject javascripts. It looks like the javascripts are generated correctly in the response but was not handle

Re: Render large page

2010-03-05 Thread Howard Lewis Ship
Close. The ProgressiveDisplay will send a series of Ajax requests to the application to render, in your case, each subtopic. The issue is that one server side, you have to know which subtopic to actually render. Much like an ActionLink, you can pass a context value (or values) to the PD; it fire

Re: Render large page

2010-03-05 Thread Henry Chen
I just figured it out. The error was caused by a nested loop component in the ProgressiveDisplay and was not set to persist. -- View this message in context: http://n2.nabble.com/Render-large-page-tp4677583p4682975.html Sent from the Tapestry Users mailing list archive at Nabble.com. --

Re: Render large page

2010-03-05 Thread Henry Chen
OK. I've upgraded to 5.1.0.5 and wrapped each topic with ProgressiveDisplay component. When the page is loaded, it shows all the "Loading..." text but now I have another problem. The ProgressiveDisplay is inside a loop component like below. detail of this subtopic ...

Re: Render large page

2010-03-05 Thread Henry Chen
This is great! I'm going to upgrade to 5.1 first and then try this ProgressDisplay component. Thank you. -- View this message in context: http://n2.nabble.com/Render-large-page-tp4677583p4681697.html Sent from the Tapestry Users mailing list archive at Nabble.com. --

Re: offtopic: javaassist for injecting annotations?

2010-03-05 Thread Thiago H. de Paula Figueiredo
On Fri, 05 Mar 2010 11:55:02 -0300, Jim O'Callaghan wrote: Alfonso , Thiago, thanks for the feedback - those classes are precisely the ones I want to manipulate - it's page classes I'm trying to play around with - I'm hoping there is some public api mechanism for doing this without intro

Re: T5: replace prototype.js with latest version

2010-03-05 Thread Ulrich Stärk
IIRC I updated prototype to 1.6.1 in the 5.0.x as well in order to fix the compatibility issues with IE8. So just grab the latest SNAPSHOT release of 5.0 if you can. It should be available from http://repository.apache.org/snapshots/ HTH, Uli On 05.03.2010 13:20, Alexander Rosemann wrote: Tr

RE: offtopic: javaassist for injecting annotations?

2010-03-05 Thread Jim O'Callaghan
Alfonso , Thiago, thanks for the feedback - those classes are precisely the ones I want to manipulate - it's page classes I'm trying to play around with - I'm hoping there is some public api mechanism for doing this without introducing another javaassist type library? Regards, Jim. -Origin

Re: Any problems with Advice and Match("*") ?

2010-03-05 Thread Robin Komiwes
Done. https://issues.apache.org/jira/browse/TAP5-1045 Thanx for your help and time. On Fri, Mar 5, 2010 at 3:38 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 05 Mar 2010

Re: Any problems with Advice and Match("*") ?

2010-03-05 Thread Thiago H. de Paula Figueiredo
On Fri, 05 Mar 2010 11:37:17 -0300, Robin Komiwes wrote: Via ServiceBinder public static void bind(ServiceBinder binder) { binder.bind(Dummy.class, DummyImpl.class).preventDecoration(); } Well, it looks like your situation is a bug in Tapestry-IoC. Could you file a JIRA for tha

Re: Any problems with Advice and Match("*") ?

2010-03-05 Thread Robin Komiwes
Via ServiceBinder public static void bind(ServiceBinder binder) { binder.bind(Dummy.class, DummyImpl.class).preventDecoration(); } On Fri, Mar 5, 2010 at 3:35 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 05 Mar 2010 11:33:49 -0300, Robin Komiwes > wrote: >

Re: Any problems with Advice and Match("*") ?

2010-03-05 Thread Thiago H. de Paula Figueiredo
On Fri, 05 Mar 2010 11:33:49 -0300, Robin Komiwes wrote: I use @PreventServiceDecoration to avoid that. Are you building the Dummy service with a builder method? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner

Re: Any problems with Advice and Match("*") ?

2010-03-05 Thread Robin Komiwes
I use @PreventServiceDecoration to avoid that. The error is still happening without @Local annotation. On Fri, Mar 5, 2010 at 3:25 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 05 Mar 2010 11:22:03 -0300, Robin Komiwes > wrote: > > Maybe you should have a look to >> h

Re: Any problems with Advice and Match("*") ?

2010-03-05 Thread Thiago H. de Paula Figueiredo
On Fri, 05 Mar 2010 11:22:03 -0300, Robin Komiwes wrote: Maybe you should have a look to http://tapestry.apache.org/tapestry5.1/tapestry-ioc/advice.html . As the LoggingAdvisor explained in this documentation make sense, and as I'm making a LoggingAdvisor-like, you may understand me better th

Re: Any problems with Advice and Match("*") ?

2010-03-05 Thread Robin Komiwes
Maybe you should have a look to http://tapestry.apache.org/tapestry5.1/tapestry-ioc/advice.html . As the LoggingAdvisor explained in this documentation make sense, and as I'm making a LoggingAdvisor-like, you may understand me better then. On Fri, Mar 5, 2010 at 3:13 PM, Thiago H. de Paula Figuei

Re: Any problems with Advice and Match("*") ?

2010-03-05 Thread Thiago H. de Paula Figueiredo
On Fri, 05 Mar 2010 10:54:15 -0300, Robin Komiwes wrote: I wasn't trying to inject the service I wanted to advise. ;) I'm making some kind of LoggingAdvisor. I'm sorry, I'm not following you. It doesn't make sense to me to use a service to decorate or advise itself. -- Thiago H. de Pau

Re: Any problems with Advice and Match("*") ?

2010-03-05 Thread Robin Komiwes
I must have miss expressed myself. I really want to advise all services. I used Match("*") to achieve that. To realize what I wanted to do, I needed to inject a service in my advisor declaration in order to make it to work. This is exactly what it has been made for the LoggingAdvisor (see the off

Re: Any problems with Advice and Match("*") ?

2010-03-05 Thread Alfonso Quiroga
I don't understand this: >I guess I'm lucky to only need a service defined in the same module. Why lucky? with @Match you can have 100 services, and only advise the "portion" you need. You only need to have easy and well formed services-ids. Regard, Alfonso On Fri, Mar 5, 2010 at 10:54 AM, Robin

Re: Any problems with Advice and Match("*") ?

2010-03-05 Thread Robin Komiwes
I wasn't trying to inject the service I wanted to advise. ;) I'm making some kind of LoggingAdvisor. On Fri, Mar 5, 2010 at 2:43 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 05 Mar 2010 07:27:08 -0300, Robin Komiwes > wrote: > > Hi there, >> > > Hi! > > > Whenever

Re: Any problems with Advice and Match("*") ?

2010-03-05 Thread Thiago H. de Paula Figueiredo
On Fri, 05 Mar 2010 07:27:08 -0300, Robin Komiwes wrote: Hi there, Hi! Whenever I try to inject a service (cf following code), I've got several errors : @Match("*") public static void adviseDummy(@Inject Dummy dummy, MethodAdviceReceiver receiver) { }; Why you're tryin

Re: Any problems with Advice and Match("*") ?

2010-03-05 Thread Robin Komiwes
Ok, found the solution, had to inject the service with @Local annotation. Now it's working. But I guess I'm lucky to only need a service defined in the same module. On Fri, Mar 5, 2010 at 11:27 AM, Robin Komiwes wrote: > Hi there, > > I'm trying to advise all my services method with some kind o

Re: offtopic: javaassist for injecting annotations?

2010-03-05 Thread Thiago H. de Paula Figueiredo
On Fri, 05 Mar 2010 10:18:45 -0300, Alfonso Quiroga wrote: I think T5 adding methods (etc) capability works only in classes controlled by the T5-classloader, I mean, pages and components. I don't think it will work on standard "model" classes. Regards, Alfonso Absolutely right. -- Thiag

RE: T5: replace prototype.js with latest version

2010-03-05 Thread Jim O'Callaghan
A possibly similar issue is raised and a suggested solution in this thread http://markmail.org/message/fsu22hjz4bxvpczb?q=list:org%2Eapache%2Etapestry% 2Eusers+MyClientInfrastructure The original workaround is based on an issue with the version of blackbird.js that ships with Tap 5.1.0.5 but you

Re: offtopic: javaassist for injecting annotations?

2010-03-05 Thread Alfonso Quiroga
I think T5 adding methods (etc) capability works only in classes controlled by the T5-classloader, I mean, pages and components. I don't think it will work on standard "model" classes. Regards, Alfonso On Fri, Mar 5, 2010 at 7:21 AM, Jim O'Callaghan wrote: > Thiago, > > With regard to accessing t

Re: T5: replace prototype.js with latest version

2010-03-05 Thread Alexander Rosemann
Tried that and failed. Tapx-prototype seems to be for 5.1.x and above only. The only option I can think of is to rebuild tapestry with the latest version of prototype. An option I try to avoid for various reasons. Upgrading to a later version of Tapestry is not possible either at the minute. It's o

Any problems with Advice and Match("*") ?

2010-03-05 Thread Robin Komiwes
Hi there, I'm trying to advise all my services method with some kind of Logging. I can't manage to achieve that. Based on http://tapestry.apache.org/tapestry5.1/tapestry-ioc/advice.html I declared my advisor. Whenever I try to inject a service (cf following code), I've got several errors :

RE: offtopic: javaassist for injecting annotations?

2010-03-05 Thread Jim O'Callaghan
Thiago, With regard to accessing the Tapestry API to dynamically add fields / methods / annotations to classes at runtime - would you be able to give some advice on where to start / where to look to perform these ops on classes Tapestry controls? I see from some of Howard's recent blogs that h

New ZoneUpdater

2010-03-05 Thread Inge Solvoll
Hi! http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html This week I needed more from the ZoneUpdater than it was able to deliver. So I decided to rewrite it to support the new feature, cleaning it up in the process. Please review my changes and tell me what you think :) Anyone i