Re: Contributing New Render Phases

2008-07-14 Thread Howard Lewis Ship
The render phases are tied to a state machine coded within ComponentPageElementImpl and not designed for extension. I haven't started to optimize this code yet, there's a lot of room to shortcut operations: smaller memory foot-prints, fewer operations to render the output DOM. On Mon, Jul 14, 200

Re: Tapestry 4.1: dojo everywhere?

2008-07-14 Thread Andreas Andreou
I see them being returned with 304 not-modified status code (using friendly urls, but this shouldnt matter) On Tue, Jul 15, 2008 at 6:00 AM, Jeremy F. Kassis <[EMAIL PROTECTED]> wrote: > > Hmm. Just finished upgrade to 4.1.5 and the asset service clearly isn't > caching dojo .js resources. > > Usi

RE: Routing and REST

2008-07-14 Thread Henry Remigio C. Osorio II
Thanks for the response. Surely appreciate your comment. -Original Message- From: Filip S. Adamsen [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2008 7:45 PM To: Tapestry users Subject: Re: Routing and REST Hi, Please start a new thread to ask a new question. That said, Tapestry 3 i

Re: Tapestry 4.1: dojo everywhere?

2008-07-14 Thread Jeremy F. Kassis
Hmm. Just finished upgrade to 4.1.5 and the asset service clearly isn't caching dojo .js resources. Using firebug, I can see every request. There is no MD5 digest in any of the urls, and when I add a breakpoint to the asset service and step through the service() method, I can see it open the reso

Re: Tapestry 4.1.5 & tapestry-prop

2008-07-14 Thread Jeremy F. Kassis
I was using this with Tap 4.1.1, but when I upgraded to 4.1.5 today, I'm getting this javassit error... javassist.NotFoundException: $BaseComponent_4 at javassist.ClassPool.get(ClassPool.java:436) at org.apache.tapestry.enhance.CtClassSource.getCtClass(CtClassSource.java:50)

Re: Tapestry 4.1.5 & tapestry-prop

2008-07-14 Thread Jeremy F. Kassis
That is exciting! So what binding prefix do I use? ognl:? nothing? Many thanks! Jessek wrote: > > 4.1.5 no longer needs tapestry-prop. Expression jit compilation is > built in already. > -- View this message in context: http://www.nabble.com/Tapestry-4.1.5---tapestry-prop-tp18456522p18456

Re: Tapestry 4.1.5 & tapestry-prop

2008-07-14 Thread Jesse Kuhnert
4.1.5 no longer needs tapestry-prop. Expression jit compilation is built in already. On Mon, Jul 14, 2008 at 9:36 PM, Jeremy F. Kassis <[EMAIL PROTECTED]> wrote: > > tapestry-prop doesn't work with 4.1.5 right off the bat. Does 4.1.5 have > built-in support? > > What's the recommendation here? >

Re: Tapestry 4.1.5 & tapestry-prop

2008-07-14 Thread Andreas Andreou
there's a 1.0.0 version for tapestry-prop that works.. which one you're using? On Tue, Jul 15, 2008 at 4:36 AM, Jeremy F. Kassis <[EMAIL PROTECTED]> wrote: > > tapestry-prop doesn't work with 4.1.5 right off the bat. Does 4.1.5 have > built-in support? > > What's the recommendation here? > -- > Vi

Tapestry 4.1.5 & tapestry-prop

2008-07-14 Thread Jeremy F. Kassis
tapestry-prop doesn't work with 4.1.5 right off the bat. Does 4.1.5 have built-in support? What's the recommendation here? -- View this message in context: http://www.nabble.com/Tapestry-4.1.5---tapestry-prop-tp18456522p18456522.html Sent from the Tapestry - User mailing list archive at Nabble.

Re: Tapestry 4.1: dojo everywhere?

2008-07-14 Thread Jesse Kuhnert
You could try upgrading to a current release - 4.1.5 looks to be your best bet right now. http://tapestry.apache.org/download.html It handles all the caching stuff / reduced dojo footprint / other things already. I would definitely take the time to attempt an upgrade to 4.1.5 first if I were pu

Re: Tapestry 4.1: dojo everywhere?

2008-07-14 Thread Jeremy F. Kassis
I know this is an old thread, but I've been working on a T4.1.1 application for a long time and it's about to go live. Our recent live site testing shows that these huge .js files kill the initial page load and they aren't really getting cached by the browser, so they transfer on *every* page load

Re: Tapestry 4.1: dojo everywhere?

2008-07-14 Thread Jeremy F. Kassis
I know this is an old thread, but I've been working on a T4.1.1 application for a long time and it's about to go live. Our recent live site testing shows that these huge .js files kill the initial page load and they aren't really getting cached by the browser, so they transfer on *every* page load

T5 nested ajax partial replace

2008-07-14 Thread Toby Hobson
Hi Is it possible to use ajax partial replace to include a component which also uses ajax, as in this scenario: I create a custom component which uses zones to perform a partial update, I then use this custom component on a page: MyComponent.tml hello world click me MyComponent.java @I

Re: specify background color of "dialogUnderlay" div

2008-07-14 Thread Andreas Andreou
While tapestry's Dialog component allows you to set the backgroundColor ( http://tapestry.apache.org/tapestry4.1/components/dojo/dialog.html ), the dialog created for validation errors is contructed at tapestry.form.validation.summarizeErrors as var dialog=dojo.widget.createWidget(

RE: Contributing New Render Phases

2008-07-14 Thread Joe Hart
I am trying to assess the viability of a component level cache to improve the performance of some of our heavier pages (1500+ components). One of the ideas for doing this was to add additional render phases to stream html directly to the writer depending on the context of the request. Then the ren

Re: Contributing New Render Phases

2008-07-14 Thread Robert Zeigler
No suggestions on adding a new render phase. But I'm really curious to know why you want to. :) Robert On Jul 14, 2008, at 7/1412:06 PM , Joe Hart wrote: Hello, I have come across a situation where I would like to contribute an additional render phase to the ones built in. I would like to

Re: BeanEditForm and BeanDisplayForm in list widget

2008-07-14 Thread Robert Zeigler
BeanEditForm and BeanDisplay are already wrapped in divs that you can use for this purpose: BeanEditForm's class is t-beaneditor. Not sure about BeanDisplay. So you would have something like: div.t-beaneditor { max-height: 600px; overflow-y: auto; } Now anything in will be constrained to

Re: T5 nested components within t:block

2008-07-14 Thread Toby Hobson
It seems the problem is that I had wrapped my block inside a form, removing the form fixed it! Toby - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: tapestry Sent: Monday, 14 July, 2008 1:06:45 PM Subject: T5 nested components within t:block Hi I have been experimenting

T5 nested components within t:block

2008-07-14 Thread Toby Hobson
Hi I have been experimenting with T5's ajax support which looks really nice! One problem I have hit is when I use a nested component within a block, simple properties are displayed but the nested components don't render e.g. photo.tml name: ${photo.name} rating: ... show details photo.

Contributing New Render Phases

2008-07-14 Thread Joe Hart
Hello, I have come across a situation where I would like to contribute an additional render phase to the ones built in. I would like to contribute a render phase that comes before SetupRender and after CleanupRender. I tried following the configuration model found in TapestryModule.java -> co

Re: T5: how to catch Unable to decode multipart encoded request exception in Tapestry-Upload?

2008-07-14 Thread Josh Canfield
Look closely at the exception and I think you'll see that it happens before your page event methods are called while tapestry is decoding the file. This appears to happen in the MultipartServletRequestFilter. I don't have a good solution for intercepting errors at that level off the top of my head

Re: t5: exception when re visiting a page

2008-07-14 Thread Josh Canfield
My guess would be that you have something in the session and you are not guarding against the case where it is missing and then trying to return it as part of the context. You should add a null check and do the right thing for your app. Josh On Sun, Jul 13, 2008 at 6:28 AM, AngeloChen960 <[EMAIL

Re: Antwort: Re: TapestryFilter subclassing problem

2008-07-14 Thread Udo Abel
Hi Kris, thanks for your help. The stack trace is quite long, I hope this part conatins more clues: ERROR main org.mortbay.log - failed PostConERP java.lang.RuntimeException: Error building service proxy for service 'ServletApplicationInitializer' (at org.apache.tapestry5.services.TapestryModul

Re: T5: external POST link to spring security

2008-07-14 Thread Arve Klev
I have integrated Spring Security 2.0 with Tapestry5 - and it's easy to do and much less configuration than with formerly acegi. (I also use T5, Spring's latest version and "Tapestry-Spring" :-) ) I had the same problem as Pavla: override the default login-page (it works) from spring-security with

[T4] simple types and client side validation /overriding validation profiles

2008-07-14 Thread Nils Preusker
Hi all, I ran into a strange problem with client side validation in tapestry 4.1.1. When I use the number translator and enable client side validation in a form with an integer value and I enter a value larger than 999, I get the error message "SomeInt must be a numeric value.". After some debuggin

Antwort: Re: TapestryFilter subclassing problem

2008-07-14 Thread Kristian Marinkovic
hi, Udo, seems to be correct. i created an own filter for my testcases exactly as you described it. and everything works fine for me. can you post more of your stackstrace? g, kris "Udo Abel" <[EMAIL PROTECTED]> 14.07.2008 13:59 Bitte antworten an "Tapestry users" An "Tapestry users"

Re: TapestryFilter subclassing problem

2008-07-14 Thread Udo Abel
Hi Kris, maybe my understanding is wrong. To be clear: what I've tried is to implement this class: public class ErpTapestryFilter extends TapestryFilter { protected void init(Registry registry) { // .. do some initialization } } and replaced the "TapestryFilter" with my "E

Re: TapestryFilter subclassing problem

2008-07-14 Thread Kristian Marinkovic
Hi Udo, take a closer look at your code. the init() method you override is not the one from the Filter!! it is a method to add additional inits AFTER the Registry has been started. take a look at org.apache.tapestry5.TapestryFilter.java btw. you cannot override init() because it is marked fi

Re: T5: possible to get the 'real' object instead of a proxy?

2008-07-14 Thread Kristian Marinkovic
just inject the HibernateSessionSource service and call create(); this call will delgate to Hibernate's SessionFactory and call openSession() that returns a Hibernate Session. then you have a real Hibernate Session instance and you can do whatever you want with it. and it does not have any depen

Re: [T5] CSS

2008-07-14 Thread Andreas Andreou
Yes, setting useFileMappedBuffer to false helps with jetty locking files in windows See the webdefault.xml from the TimeTracker app: https://svn.apache.org/repos/asf/tapestry/tapestry4/trunk/tapestry-examples/TimeTracker/src/config/webdefault.xml On Mon, Jul 14, 2008 at 10:48 AM, Joe Trewin <[EM

Log error????

2008-07-14 Thread Donyee
I use the tapestry-spring, and org.apache.tapestry5.spring.TapestrySpringFilter, then my app get nothing log from tapestry, but the spring boot log and hibernate sql log. Is there any other config i miss? It seems my log4j file doesn't work! -- Yet Another Java EE Developer!

Re: specify background color of "dialogUnderlay" div

2008-07-14 Thread Nils Preusker
Thanks Andreas for the hint. I tried it but it doesn't work. This is because the style is hard coded in the div, so it can't be overwritten with a more specific css rule. I was hoping tapestry would offer some kind of configuration for client side validation (a config file or a mechanism to pass pa

RE: [T5] CSS

2008-07-14 Thread Joe Trewin
Hi, We had this problem too - it's because Jetty by default using NIO, and there's a problem with that under windows. The solution we use is (in development) to configure Jetty to use just plain old io: So instead of using: 8081 Try: 8081 However, in writing this reply I'v