Unable to render exceptions thrown in AppModule

2012-01-10 Thread Stephan Windmüller
Hello! In the AppModule class we defined a custom component transaction filter. When this filter throws an exception, it is not rendered with the exception report page, instead we are getting this stacktrace: java.lang.NullPointerException org.apache.tapestry5.internal.services.as

Re: Unable to render exceptions thrown in AppModule

2012-01-10 Thread Stephan Windmüller
Am 10.01.2012 09:51, schrieb Stephan Windmüller: > In the AppModule class we defined a custom component transaction > filter. When this filter throws an exception, it is not rendered with > the exception report page, instead we are getting this stacktrace: Forgot to mention: We are using Tapestr

[ANN] Exanpe-t5-lib 1.2.0 available

2012-01-10 Thread Guerin Laurent
Hi all, We are proud to announce the availability of exanpe-t5-lib 1.2.0 release. Since the last two months (last release), we kept developing new components, mixins, and services to fill out the Tapestry core: Components : - Added ListSorter component: Sort a list of data using drag and

Re: [5.3] JSONArray Error while submitting forms

2012-01-10 Thread Gunnar Eketrapp
I have already answered to this. The clearing of the cache seems to have solved my problem as well. 2012/1/10 Muhammad Gelbana > Shouldn't Gunnar decide first if the issue should be closed or not ? > > On Tue, Jan 10, 2012 at 12:08 AM, Bob Harner wrote: > > > Is anyone still seeing this proble

Re: [5.3] JSONArray Error while submitting forms

2012-01-10 Thread Lenny Primak
I think clearing the cache is not the full answer to this problem. There aught to be a better answer. Perhaps versioning the formdata element? On Jan 10, 2012, at 10:13 AM, Gunnar Eketrapp wrote: > I have already answered to this. > > The clearing of the cache seems to have solved my problem a

PageTester with tapestry-security: No SecurityManager accessible to the calling code

2012-01-10 Thread Jonathan Barker
We are attempting to use PageTester with an application using tapestry-security, and are running into a problem on any secured pages, where there is no SecurityManager available. I think I understand the problem, but I suspect that someone has already put in the effort to move from understanding t

Re: PageTester with tapestry-security: No SecurityManager accessible to the calling code

2012-01-10 Thread Kalle Korhonen
On Tue, Jan 10, 2012 at 8:00 AM, Jonathan Barker wrote: > We are attempting to use PageTester with an application using > tapestry-security, and are running into a problem on any secured > pages, where there is no SecurityManager available.  I think I > understand the problem, but I suspect that s

Re: Unable to render exceptions thrown in AppModule

2012-01-10 Thread Howard Lewis Ship
Order counts; your filter needs to be ordered after Tapestry's "ErrorFilter" contribution; otherwise, there's nothing to catch the exception and report it. On Tue, Jan 10, 2012 at 1:10 AM, Stephan Windmüller wrote: > Am 10.01.2012 09:51, schrieb Stephan Windmüller: > >> In the  AppModule class we

Re: T5 progress bar in a grid

2012-01-10 Thread lebenski
Just wanted to say a big thanks for this Lance. I ran your code and used it extensively in my own project where I'm using a crawler to gather information. The UI is updated every second with the new total of saved crawled results. This taught me some stuff about threading and got me to finally u

[5.2] Programmatically set Zone attributes ?

2012-01-10 Thread ffred
Hello, I would like to programmatically (from java) set the 'show' and 'update' attribute of a zone. I found no way of doing this neither from the page with an injected Zone nor from simply extending the Zone components as the corresponding fields are private. After a quick look at the Zone source

Re: [5.2] Programmatically set Zone attributes ?

2012-01-10 Thread Dragan Sahpaski
Hi, Yes there is a rather simple solution. Just find the ZoneManager for the specific zone and update it's updateFunc member. Look at the the definition of Tapestry.ZoneManager [1]. [1] https://github.com/apache/tapestry5/blob/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.j

Re: [5.2] Programmatically set Zone attributes ?

2012-01-10 Thread Taha Hafeez Siddiqi
Hi If I understand correctly //Java public String getShow(){ return ...; } public String getUpdate(){ return ; } On Jan 10, 2012, at 4:41 PM, ffred wrote: > Hello, > > I would like to programmatically (from java) set the 'show' and 'update' > attribute of a zone. > I found no w

Novice user of Tapestry needs help with classpath issue

2012-01-10 Thread Julien Martin
Hello, I have an app with: -a web layer (Tapestry5) -a service layer (Spring) -a domain layer (Jpa) I have a mail template located a the root of the my-project-service.jar file (service layer) and it seems that Tapestry imposes its own classpath location which causes the velocity template resolu

Re: Novice user of Tapestry needs help with classpath issue

2012-01-10 Thread Thiago H. de Paula Figueiredo
On Tue, 10 Jan 2012 14:46:01 -0200, Julien Martin wrote: Hello, Hi! *org.apache.tapestry5.runtime.ComponentEventException: Unable to find resource 'request-childminder-confirmation-mail-template_fr.htm' [at classpath:com/bignibou/web/pages/InscriptionProfessionnelGardeEnfant.tml, line 20]*

Re: Disable Access denied Stack-trace

2012-01-10 Thread Paulo Ricardo Ribeiro
Hello, I know this is an old thread, but I'm facing the same problem. I'd like to ask if someone else has found an alternate solution to this problem, without having to use log4j filtering. Cheers, Paulo Ricardo -- View this message in context: http://tapestry.1045711.n5.nabble.com/Disable-Acces

Re: Is it possible to initialize a custom SymbolProvider with another symbol?

2012-01-10 Thread Muhammad Gelbana
If you remove the *@Inject* annotation and keep the *@Symbol* annotation, I think it should work as you would like it to. On Tue, Jan 3, 2012 at 8:00 PM, Howard Lewis Ship wrote: > It is not possible. > > However, you can initialize a symbol with another symbol's value: > > configuration.add("my

Re: Novice user of Tapestry needs help with classpath issue

2012-01-10 Thread Muhammad Gelbana
Also please state the code causing the exception. On Tue, Jan 10, 2012 at 7:59 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 10 Jan 2012 14:46:01 -0200, Julien Martin > wrote: > > Hello, >> > > Hi! > > > *org.apache.tapestry5.runtime.**ComponentEventException: Unable

Re: [5.3] JSONArray Error while submitting forms

2012-01-10 Thread Muhammad Gelbana
When I had this problem, clearing the cache didn't solve it. I had move all my classes\tml\resources manually from my old tapestry project to a new tapestry 5.3.1 skeleton project. On Tue, Jan 10, 2012 at 5:32 PM, Lenny Primak wrote: > I think clearing the cache is not the full answer to this pro

Re: Novice user of Tapestry needs help with classpath issue

2012-01-10 Thread Thiago H. de Paula Figueiredo
On Tue, 10 Jan 2012 16:09:07 -0200, Julien Martin wrote: Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'request-childminder-confirmation-mail-template_fr.htm' at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceMan

Re: Novice user of Tapestry needs help with classpath issue

2012-01-10 Thread Jonathan Barker
The Freemarker project gave me similar problems. They have a Configuration object where you can do configuration.setClassForTemplateLoading(Class clazz, String directory). Does Velocity have the same option? If it does, I just used getClass() within my service to supply that Class parameter. On

Re: Novice user of Tapestry needs help with classpath issue

2012-01-10 Thread Julien Martin
Thanks a lot for your reply Jonathan, Can you share some code sample (if you have it to hand) please? Also where does this code go? *configuration.setClassForTemplateLoading(Class clazz, String directory)* Regards, Julien. 2012/1/10 Jonathan Barker > The Freemarker project gave me similar proble

Re: Novice user of Tapestry needs help with classpath issue

2012-01-10 Thread Julien Martin
Hello and thanks for the reply Muhammar, Here is the relevant code: *String content = VelocityEngineUtils.mergeTemplateIntoString(velocityEngine, "request-childminder-confirmation-mail-template_fr.htm", "UTF-8", model);* * * * resource.loader=class class.resource.loader.class=org.apache.velocity

Re: Unable to render exceptions thrown in AppModule

2012-01-10 Thread Josh Canfield
The actual error reported is caused by what looks like a defect: java.lang.NullPointerException org.apache.tapestry5.internal.services.assets.CompressionAnalyzerImpl.isCompressable The code: public boolean isCompressable(String contentType) { assert contentType != null;

Re: Novice user of Tapestry needs help with classpath issue

2012-01-10 Thread Jonathan Barker
I was noticing that I hooked up that service using Spring, rather than in AppModule, but it shouldn't matter much. private void init() { _logger.debug("init() starting"); if (_configuration == null) { _configuration = new Configurati

Re: Novice user of Tapestry needs help with classpath issue

2012-01-10 Thread Julien Martin
Thanks Jonathan. I am realizing it is probably a basic mistake on my part on the Spring configuration side. The exception I got was misleading. Julien. 2012/1/10 Jonathan Barker > I was noticing that I hooked up that service using Spring, rather than > in AppModule, but it shouldn't matter much.

Re: Novice user of Tapestry needs help with classpath issue

2012-01-10 Thread Julien Martin
Yes it was just that. J. 2012/1/10 Julien Martin > Thanks Jonathan. > I am realizing it is probably a basic mistake on my part on the Spring > configuration side. > The exception I got was misleading. > Julien. > > 2012/1/10 Jonathan Barker > >> I was noticing that I hooked up that service usin

Event propagation

2012-01-10 Thread bhorvat
I have a component Header and in there I have a menu. What I want is that on the click in that menu I refresh two ajax zones one in the header (the ajax zone in which is the menu) and the other which is in the main page. How can I best propagate the event, or should I use another way like injecting

Re: Unable to render exceptions thrown in AppModule

2012-01-10 Thread Howard Lewis Ship
On Tue, Jan 10, 2012 at 11:59 AM, Josh Canfield wrote: > The actual error reported is caused by what looks like a defect: > > java.lang.NullPointerException >       > org.apache.tapestry5.internal.services.assets.CompressionAnalyzerImpl.isCompressable > > The code: > > public boolean isCompressab

Re: Is it possible to initialize a custom SymbolProvider with another symbol?

2012-01-10 Thread Paul Stanton
Borut, If you want to configure environments differently, I suggest looking into resource filtering via maven. see my thread titled 'configuration strategy' for more info. p. On 4/01/2012 2:59 AM, Borut Bolčina wrote: Hi, I would still like an advice on the approach on how to initialize cu

Re: Unable to render exceptions thrown in AppModule

2012-01-10 Thread Josh Canfield
In GZipEnabledResponse @Override public ServletOutputStream getOutputStream() throws IOException { if (contentLengthSet || isCompressionDisabled()) return super.getOutputStream(); String contentType = getContentType(); return new BufferedGZipOutputSt

Re: Event propagation

2012-01-10 Thread Taha Hafeez Siddiqi
Hi Use AjaxResponseRenderer http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/services/ajax/AjaxResponseRenderer.html http://tawus.wordpress.com/2011/10/01/tapestry-5-3-new-features-part-2/ regards Taha On Jan 11, 2012, at 4:53 AM, bhorvat wrote: > I have a component Header and in

Re: development with eclipse+tomcat

2012-01-10 Thread Paul Stanton
kalle, one other tip for your document which was a bit of a gotcha today (when adding a 2nd project): Make sure 'Automatically compute' is checked on the 'Source path' page of window>preferences>tomcat section. This tip could go between point 6.3 and 6.4. On 7/01/2012 3:24 PM, Kalle Korhonen

Re: Is it possible to initialize a custom SymbolProvider with another symbol?

2012-01-10 Thread Borut Bolcina
Lol, I was in that thread suggesting filtering with Maven, this problem is another beast. As Howard nailed it, one can not eat a cake before baking it. -borut Sent from my iPad On 11. jan. 2012, at 02:03, Paul Stanton wrote: > Borut, > > If you want to configure environments differently, I