Switch AppModule to TestModule for testing

2009-08-24 Thread Mark W. Shead
I am doing testing using Selenium using classes that extend AbstractIntegrationTestSuite. When I bring up the testing environment I would like do different bindings in AppModule than when the app is normally running. I have created an alternative to AppModule called TestModule. Is there

Re: Create actionlinks in components with page context

2009-08-24 Thread DH
Since my action handler returns Void, so in my case T5 will return current page(with context) and redirects, here T5 will carry the context again without any work of mine. What about your action handler? DH http://www.gaonline.com.cn - Original Message - From: "Erik Putrycz" To: Sen

Re: Create actionlinks in components with page context

2009-08-24 Thread Erik Putrycz
DH-14 wrote: > > I don't quite understand your case. > The page activation context has been handled by Tapestry itself, we don't > need handle it in our action link. > I have finished something similar to your case. I just set the correct > locale to PersistentLocale and everything works perfec

Re: Create actionlinks in components with page context

2009-08-24 Thread DH
I don't quite understand your case. The page activation context has been handled by Tapestry itself, we don't need handle it in our action link. I have finished something similar to your case. I just set the correct locale to PersistentLocale and everything works perfectly. Like: public void onAc

Re: Debugging Segmentation Fault whenever Inject PageRenderLinkSource

2009-08-24 Thread ownedthx
Or a library that instruments the bytecode, like Javassist, not doing as well in a debug scenario... that's why I was curious if that line of code is using Javassist classes. It's kinda hard for me to tell. Seth Thiago H. de Paula Figueiredo wrote: > > Em Mon, 24 Aug 2009 21:52:42 -0300, own

Re: Debugging Segmentation Fault whenever Inject PageRenderLinkSource

2009-08-24 Thread Thiago H. de Paula Figueiredo
Em Mon, 24 Aug 2009 21:52:42 -0300, ownedthx escreveu: And again, an interesting tidbit: I only get this when I attach a debugger to my web container (Jetty). I'm using the Intellij IDEA. A segfault that only happens during a debug session looks like a JVM or IDEA bug to me, not a Tapestr

Re: Debugging Segmentation Fault whenever Inject PageRenderLinkSource

2009-08-24 Thread ownedthx
And again, an interesting tidbit: I only get this when I attach a debugger to my web container (Jetty). I'm using the Intellij IDEA. It's still very vexing... making it obviously much harder to debug. Just wish I knew where to even look. ownedthx wrote: > > I got hit with a segfault again

Re: Debugging Segmentation Fault whenever Inject PageRenderLinkSource

2009-08-24 Thread ownedthx
I got hit with a segfault again; started debugging again. This time, though, I know the exact line causing the segfault! In PropBinding.java, line 58: public Object get() { try { return conduit.get(root); /** LINE 58 */ } catch (Exception ex)

Re: Google Web Toolkit Version 1.7.0

2009-08-24 Thread Andreas Andreou
AFAIK, the credits to Tapestry are due to some code they borrowed relating to loading localized property files. On Tue, Aug 25, 2009 at 12:33 AM, Robert, Brice wrote: > Hi, > > Using Eclipse, I downloaded the latest Google App Engine SDK 1.2.2 along > with the GWT 1.7.0. > By creating a GWT templa

Re: Component LinkSubmit doesn't work

2009-08-24 Thread Sergey Didenko
http://tapestry.apache.org/tapestry5.0/ http://tapestry.apache.org/tapestry5.0/apidocs/ On Wed, Aug 19, 2009 at 2:55 PM, Borut Bolčina wrote: > By the way, what is the url of T 5.0.18 and its API? - To unsubscribe, e-mail: users

Re: Zones and blocks inside components

2009-08-24 Thread Sergey Didenko
Alternatively you can use the outside loop index value instead of "generateRandomUniqueString()" On Tue, Aug 18, 2009 at 2:15 PM, Juan E. Maya wrote: > > Yes that did the trick. Somehow i didn't think about it :S > > Thanks! > > On Tue, Aug 18, 2009 at 8:36 AM, Inge Solvoll wrote: > > You're righ

Re: Separating request handler between T5 and spring 2.0.6's DispatcherServlet

2009-08-24 Thread wesleywj2
hello Ulrich, thanks so much for the pointer; it's working good now. regards, wesley -- View this message in context: http://www.nabble.com/Separating-request-handler-between-T5-and-spring-2.0.6%27s-DispatcherServlet-tp25114168p25123675.html Sent from the Tapestry - User mailing list archive at

Google Web Toolkit Version 1.7.0

2009-08-24 Thread Robert, Brice
Hi, Using Eclipse, I downloaded the latest Google App Engine SDK 1.2.2 along with the GWT 1.7.0. By creating a GWT template project and running it, there's a server poping up in a new window. The Info button gives the below Credits. Tapestry is clearly stated, I thought I would be able to use all

Create actionlinks in components with page context

2009-08-24 Thread Erik Putrycz
I started an app based on trails and T5.1. On my layout component, I want to have a button to toggle the locale from french to english for any page. This works fine, however if the page has a context, that context is lost for the action link. Is there any way to access the page context, or create

Re: Render Page to file, etc

2009-08-24 Thread Andreas Andreou
The process should be: 1) render the page to a String, perhaps http://www.behindthesite.com/blog/C1931765677/E2094832857/index.html can help 2) convert the html String to pdf, see http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html and/or http://codedeliver.blogspot.com/2009/07/convert

Re: Render Page to file, etc

2009-08-24 Thread Andreas Andreou
The process should be: 1 On Fri, Aug 14, 2009 at 10:48 PM, Nathan Beemer wrote: > I have a need to make my Tapestry 4.1 Pages available in pdf format but > having no luck to-date on my own. > My apologies if soliciting this list is inappropriate here, but I do have a > consulting budget available

Re: T5 Pluggable Pages

2009-08-24 Thread Thiago H. de Paula Figueiredo
Em Mon, 24 Aug 2009 11:47:47 -0300, Scyta1e escreveu: Specifically the application has 100+ pluggable modules. Each module has it's own jar containing its specific classes and related Tapestry config class/template. A custom class loader loads the modules once at startup (it's not actually dyna

T5 Pluggable Pages

2009-08-24 Thread Scyta1e
I'm currently in the process of porting an application from T4->T5 and have run into a problem. Specifically the application has 100+ pluggable modules. Each module has it's own jar containing its specific classes and related Tapestry config class/template. A custom class loader loads the modules

Re: BeanEditForm recorderror for a field

2009-08-24 Thread Kalle Korhonen
Yes, that's what I thought, thanks for confirming. Kalle On Mon, Aug 24, 2009 at 12:26 AM, Ulrich Stärk wrote: > On 22.08.2009 19:38 schrieb Kalle Korhonen: >> >> Oh that - you need tell the bean editor that you want the field to be >> used in your form. See Property Editor Overrides at >> http:

Re: Bean models?

2009-08-24 Thread Thiago H. de Paula Figueiredo
${messageTimestamp} In your component class or template: public String getMessageTimestamp() { return dateFormat.format(message.getMessageTimestamp()); } -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://ww

Re: Bean models?

2009-08-24 Thread Scot Mcphee
2009/8/24 Thiago H. de Paula Figueiredo : > > One solution is to provide a new view block for your class dates. You'll > need to implement a DataTypeAnalyzer, return a "formatteddate" type for your > class dats, contribute it to the DataTypeAnalyzer service, then provide a > view and an edit block

Re: Bean models?

2009-08-24 Thread Thiago H. de Paula Figueiredo
Em Mon, 24 Aug 2009 08:10:37 -0300, Scot Mcphee escreveu: I've got a class, that is ever only display-only. I need to show the date in the class in a specific format. What I cannot see how to do, is specify the format for the date of this class. The format used by Grid and BeanDisplay to fo

Re: Separating request handler between T5 and spring 2.0.6's DispatcherServlet

2009-08-24 Thread Ulrich Stärk
see "Ignored Paths" in http://tapestry.apache.org/tapestry5/guide/conf.html Uli On 24.08.2009 13:10 schrieb wesleywj2: hi, i've been developing an webapps using T5 with spring 2.0.6 library. Main focus of T5 is to serve as front page and logic with business model using spring 2.0.6. I still ha

Bean models?

2009-08-24 Thread Scot Mcphee
I've got a class, that is ever only display-only. I need to show the date in the class in a specific format. What I cannot see how to do, is specify the format for the date of this class. I've had a look at the BeanModel documentation but I can't see how I make it work, the discussion I find about

Separating request handler between T5 and spring 2.0.6's DispatcherServlet

2009-08-24 Thread wesleywj2
hi, i've been developing an webapps using T5 with spring 2.0.6 library. Main focus of T5 is to serve as front page and logic with business model using spring 2.0.6. I still have a tonnes of spring controller and i would like to make use of it by calling it directly. But as i aware, Tapestry 5 act

t5: locale support

2009-08-24 Thread Angelo Chen
Hi, I like the 5.1.x's locale support, it appends a locale code into the url, example: http://localhost:8080/en for English http://localhost:8080/zh for Chinese now, if the browser's locale is, 'zh', http://localhost:8080 will be the same as http://localhost:8080/zh but without the 'zh'

Re: BeanEditForm recorderror for a field

2009-08-24 Thread Ulrich Stärk
On 22.08.2009 19:38 schrieb Kalle Korhonen: Oh that - you need tell the bean editor that you want the field to be used in your form. See Property Editor Overrides at http://tapestry.apache.org/tapestry5.1/guide/beaneditform.html, e.g: Ulrich - in practice, is there