T5: t5Components Window seems not to support showEffect and other options

2008-06-23 Thread Martijn Brinkers (List)
I'm trying to change some options for the t5Components/Window component but I cannot get the showEffect correct. I extended Window and override the configure method: protected void configure(JSONObject options) { options.put("showEffect", "Element.show"); } What's generated th

Re: programmatic component rendering

2008-06-23 Thread Howard Lewis Ship
Actually, sounds like a large amount of what you want could be covered quite easily using the If and Unless components. On Mon, Jun 23, 2008 at 2:32 AM, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: > hi udo, > > there are different approaches to it... :) ... > > you can configure the view using

Re: T5: Parent before child clarification

2008-06-23 Thread Howard Lewis Ship
So the sub-class setupRender() overrides the base-class setupRender()? The method setupRender() is still invoked at the appropriate time. The difference is that it is not invoked twice, as it was before 5.0.13. In coding terms, what happens is that Tapestry provides an implementation of the metho

Re: T5: Passing values to JavaScript function

2008-06-23 Thread Sven Homburg
look for this small sample: http://pastebin.com/f3c9f5056 2008/6/23 SergeEby <[EMAIL PROTECTED]>: > > Hi, > > Passing a dynamic values from the Java page to a JavaScript function > embedded in the .tml file works fine. > However, I need to pass that values to an external (basic) JavaScript > func

T5: Passing values to JavaScript function

2008-06-23 Thread SergeEby
Hi, Passing a dynamic values from the Java page to a JavaScript function embedded in the .tml file works fine. However, I need to pass that values to an external (basic) JavaScript function. The external javacript files is attached to the page using the IncludeJavaScriptLibrary annotation: @In

Re: 5.0.13 IE javascript error

2008-06-23 Thread Sven Homburg
please read http://tapestry.apache.org/news.html#Tapestry%205.0.13 2008/6/23 Joachim Van der Auwera <[EMAIL PROTECTED]>: > Hi, > > after upgrade of my application to tapestry 5.0.13 I get a "unknown runtime > error" on loading the page in IE. > > This is reported at line 2403 of prototype.js on t

Re: T5 onActivate

2008-06-23 Thread Geoff Callender
Before 5.0.13, if onActivate() appeared in a subclass and its parent, Tapestry used to jump in and call both. From 5.0.13 it seems to follow the normal Java convention, ie. only the subclass method is called, so it is up to the subclass to call the parent if that's what you want. I ran a

5.0.13 IE javascript error

2008-06-23 Thread Joachim Van der Auwera
Hi, after upgrade of my application to tapestry 5.0.13 I get a "unknown runtime error" on loading the page in IE. This is reported at line 2403 of prototype.js on the line "else element.innerHTML = content.stripScripts()" Does anybody have any idea how this problem can be remedied? Kind rega

Re: [T5] how to add dojo in tapestry5?

2008-06-23 Thread Tan [EMAIL PROTECTED]
thank you. I will try it out first. On Mon, Jun 23, 2008 at 4:13 PM, Vladimir Solomenchuk <[EMAIL PROTECTED]> wrote: > > Hi, > > You have two ways to do this: > 1. simply include into your page/components dojo javascript libraries > 2. write your own PageRenderSupport (see public void > contribu

Re: Security of t:formdata

2008-06-23 Thread Martijn Brinkers (List)
Using ClientPersistentFieldStorage (t:state:client parameter) you can 'inject' arbitary serialiable objects so it would be easy to 'inject' a huge byte array that consumes all memory. Securing this with an HMAC would not be that hard because it only requires changes to Base64ObjectInputStream. I th

Re: Merge T4-Application with a T5-Page

2008-06-23 Thread Tommyboy66
I solved little problems with a temporary solution in the meantime. I created another application with T5 and switch beetween pages with hard-coded URLs. The problem is that it is not possible to pass parameters beetween the applications. For example i wrote a page with a grid component in T5 and

[ANN] JumpStart 3.8: for Tapestry 5.0.13

2008-06-23 Thread Geoff Callender
Hi all, JumpStart 3.8 is now available. It's for Tapestry 5.0.13. New in this release: * @ProtectedPage annotation - uses an annotation instead of a super class to protect pages against users who aren't logged in. * Provides a script that creates a fresh, working project with your app

[T4.1.5] RadioGroup EventListener doesn't work

2008-06-23 Thread Jerome Da Costa
Hi, When trying to you the onChange method on a RadioGroup component, we encountered the following error client side : [Exception... "'Error: bad srcObj for srcFunc: onChange' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" locati

Re: t5: t5.0.13 and DocumentHeadBuilder

2008-06-23 Thread Kristian Marinkovic
i think the RenderSupport service is what you are looking for. g, kris Angelo Chen <[EMAIL PROTECTED]> 23.06.2008 11:44 Bitte antworten an "Tapestry users" An users@tapestry.apache.org Kopie Thema t5: t5.0.13 and DocumentHeadBuilder Hi, I'm upgrading to 5.0.13, i use this interna

Re: Strange performance issue Tomcat/Jetty

2008-06-23 Thread Massimo Lusetti
On Mon, Jun 23, 2008 at 8:13 AM, Moritz Gmelin <[EMAIL PROTECTED]> wrote: > Hi again, > > I could nail this problem down to the hibernate level. > > Executing hibernate queries takes 2-5 times longer when an application is > hosted on tomcat than when it is hosted on jetty5.1.10. > > Does anyone h

t5: t5.0.13 and DocumentHeadBuilder

2008-06-23 Thread Angelo Chen
Hi, I'm upgrading to 5.0.13, i use this internal service:DocumentHeadBuilder.addScript, it's not in the 5.0.13 any more, what are the equivalents? Thanks, Angelo -- View this message in context: http://www.nabble.com/t5%3A-t5.0.13-and-DocumentHeadBuilder-tp18065869p18065869.html Sent from the

Re: programmatic component rendering

2008-06-23 Thread Kristian Marinkovic
hi udo, there are different approaches to it... :) ... you can configure the view using blocks ... i do it by defining some Blocks that are then composed using certain rules through my pimped BeanEditor component. eg. a new Dealer has at least one employee. Therefore when a new Dealer is c

programmatic component rendering

2008-06-23 Thread Udo Abel
Hi, we're planning a highly dynamic web app, where it is necessary to display certain components depending of the application state. E.g., in an address detail view there should be a paragraph which contains different details for a "customer" and a "supplier". Or if the balance of an account is

grid component exclude/inlcude has no effect (t5.0.10)

2008-06-23 Thread Udo Abel
Hi I have a grid component like this: which should have the same output as "reorder" but omit any further columns. I'm currently using t5.0.10 (due to tomcat startup problems with t5.0.13). Is that a known problem or am I doing something wrong? Thanks, Udo. -- Der GMX

Re: [T5] how to add dojo in tapestry5?

2008-06-23 Thread Vladimir Solomenchuk
Hi, You have two ways to do this: 1. simply include into your page/components dojo javascript libraries 2. write your own PageRenderSupport (see public void contributeMarkupRenderer(...) in TapestyModule) Tan [EMAIL PROTECTED] wrote: > > hi all, > hi i know tapestry5 come with scriptacul

Re: Security of t:formdata

2008-06-23 Thread Ivan Dubrov
Howard Lewis Ship wrote: Although you could use this technique (severe hacking of t:formdata) to control what ComponentAction was instantiated at what point in the form submission, the security effects of this are minimal; Tapestry includes only a finite set of ComponentAction classes and each ha