Re: [T5] Tapestry and GWT?

2007-05-27 Thread xVik
My personal opinion is: its better to play with javascript framework. gwt is good if you have no time (or not wish to) study javascript. Other opinion (that i see many times in various places) gwt is not for big (enterprise) production.. Writing on pure javascript framework (dojo, mochakit..or

tap5: how to response without tap template (redefine output stream)

2007-05-27 Thread xVik
i know this is simple question.. i read about this somewhere in tap5 docks.. but i dont remember where. i want to redefine output strem for concrete page (return not tap template, but simple text for example or something else) please point me where to read this,, thanks a lot -- View this

T5: Testing - PageTester reworked... How do I use mock services now?

2007-05-27 Thread Otho
Hi all! I followed the TestNG example with service replacements on the Tapestry home page only to find out that PageTester was reworked and now doesn't support a map with replacements anymore. I was unable to find any documentation in the changelogs or the mailinglist about why this was changed

override validation messages with tapestry 5

2007-05-27 Thread bobpuley
hallo, how can i override messages like required=You must provide a value for %s, using tapestry 5.0.4, stored in ValidationMessages.properties? I try making a file named page name.properties with the same properties keys... but don't work. For components with properties associated i find in

Re: Shipwreck when downloading T5.0.5

2007-05-27 Thread Eko S.W.
This is what I need! Have try to download the new T5.0.5, but never works. I'll try again. Imho, Maven is a must. It relives all the pain of maintaining dependency : you don't have to memorize where they put the stuff on the net. For example, you just told maven to use jetty-plug in and it'll

Re: Blog on Tapestry's Future

2007-05-27 Thread Jan Vissers
+1 Howard, Tapestry development is a great responsability, with good and bad comments from everywhere. We have some app in T3, others moved to T4, and new projects are already using T5, I think that you''re on the right direction, doing a great job. like Jesse said, T5 is everything we've

Problem on creating generic SharedCrudPage using BeanEditForm

2007-05-27 Thread Eko S.W.
Hi all, I have a problem on using BeanEditForm. I create a page called SharedCrudT, that will do CRUD for a bean. This way, I can make quick progress on developing prototype of web application. Using Generic on JDK 5, the result quite good. For example. To create 3 Crud Page for a bean, I just

Re: Blog on Tapestry's Future

2007-05-27 Thread Eko S.W.
I dunno, but is the Annotation feature in JDK 5 the reason why T5 change so radically? -- Best wishes, Eko SW http://swdev.blogs.friendster.com/my_blog/

Help needed for persistent properties initialization in components (4.1.2)

2007-05-27 Thread Alexander Lamb
Hello list, I am stuck with something. I have a component which goes through several states. Therefore I need to keep some persistent properties. That's why in the jwc file I have: property-specification name=registryCenter type=ch.rodano.role.model.RegistryCenter persistent=yes /

Component transformation: how to extend method at the beginning

2007-05-27 Thread Ivan Dubrov
Hello, I'm trying to implement an AcegiWorker that will add support for Acegi Secured annotation to components. Annotation applied to the class will enable security check when the page is attached and annotation applied to the method will enable security check when method is called (for example,

Re: T5 How to have multiple modules with separate packages for pages

2007-05-27 Thread Martin Grotzke
On Fri, 2007-05-25 at 18:52 +0200, Martin Grotzke wrote: On Fri, 2007-05-25 at 21:52 +0800, 蝈蝈龙 wrote: I'm also trying to separate the packae in TP5. But I think the package may look like // business layer org.comp.app.business.mod1 org.comp.app.business.mod2 // dao layer

Re: Blog on Tapestry's Future

2007-05-27 Thread Howard Lewis Ship
Annotations are the reason XML went away, which has opened up lots of other possibilities (including true component subclassing). Once the hurdle of backwards compatibility was (by)passed, many more and more powerful ideas have come forwards (case insensitivity, event notifications instead of

Re: T5 How to have multiple modules with separate packages for pages

2007-05-27 Thread Ivan Dubrov
You can contribute to ComponentClassResolver service mappings from prefix (e.g, mod1) to package, like the following: public static void contributeComponentClassResolver(ConfigurationLibraryMapping configuration) { configuration.add(new LibraryMapping(mod1, org.comp.app.mod1.presentation));

Re: Help needed for persistent properties initialization in components (4.1.2)

2007-05-27 Thread Jesse Kuhnert
A few things: -) property-specification is the old 3.0 dtd way of doing things, it should look more like: property name=registryCenter persist=session / -) There are two relatively easy ways to provide default values : property name=registryCenter persist=session initial-value=ognl: new

Re: tap5: how to response without tap template (redefine output stream)

2007-05-27 Thread Marcus
maybe this help. http://tapestryjava.blogspot.com/2007/02/direct-component-rendering-in-t5.html

Re: tap5: how to response without tap template (redefine output stream)

2007-05-27 Thread Davor Hrg
http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html look under: Action Requests - Stream response for example you can return TextStreamResponse(text/plain, plain text); if you are generating an image or sth, and want a save dialog to show up, you can use a trick (until it's

Re: Blog on Tapestry's Future

2007-05-27 Thread Massimo Lusetti
On 5/21/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: I'd love to see more comments. Honest comments about your experiences going from 3 to 4, your thoughts on better adoption, how you feel about Tapestry 5 (especially if you are in a situation where you'll need to upgrade). Please avoid any

Re: T5: Testing - PageTester reworked... How do I use mock services now?

2007-05-27 Thread Howard Lewis Ship
It's a good point. What you need to do is define a module that defines your mock services, and contributes overrides into the Alias or AliasOverride service configuration, such that your mock services are used instead of the normal ones. You can specify the additional module classes when

Re: Help needed for persistent properties initialization in components (4.1.2)

2007-05-27 Thread Christian Haselbach
On Sun, May 27, 2007 at 03:02:49PM -0400, Jesse Kuhnert wrote: property name=registryCenter persist=session initial-value=ognl: new ch.mycompany.RegistryCenter() / But it is important to keep in mind the semantics of initial-value. It is evaluated when the component is first created and when it

Re: T5: How to logout or kill the Session

2007-05-27 Thread Marcus
maybe this help: flash strategy - Values are stored into the session, but then deleted from the session as they are first used to restore a page's state. or this default values - This value is retained and used to reset the value of the field at the end of each request, before the page is

Re: T5: How to logout or kill the Session

2007-05-27 Thread Marcus
http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html

Re: T5 IoC kickstart tutorial

2007-05-27 Thread Joshua Jackson
Davor and Howard, Thanks for the reply. I have went over through the tapestry-ioc docs, but I have a hard time on getting hibernate Session created from tapestry-hibernate module to be injected to my tapestry Page and Components. That's why I need a kickstart tutorial to get my hands-on to get

Redirect Question

2007-05-27 Thread Jonathan Glanz
In my setup function I need to be able to redirect to another page, any ideas? -thx, Jon

@EventListener Question

2007-05-27 Thread Janos Mucsi
Hi I am new to Tapestry, so excuse my basic question. I am reading http://tapestry.apache.org/tapestry4.1/tapestry-annotations/index.html and was wondering how @EventListener implements asynchronous calls. Does anybody have a sample that behaves like the example: @EventListener(events =

@OnEvent not inherited in T5?

2007-05-27 Thread Jun Tsai
my parent page class had a method with annotations '@OnEvent'.but the method is never called by child page class. -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.net - To unsubscribe, e-mail: [EMAIL

Re: Redirect Question

2007-05-27 Thread Jesse Kuhnert
void setup() { throw new PageRedirectException(YourPageName); } ? On 5/27/07, Jonathan Glanz [EMAIL PROTECTED] wrote: In my setup function I need to be able to redirect to another page, any ideas? -thx, Jon -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based

RE: Redirect Question

2007-05-27 Thread Jonathan Glanz
Thx a mil mate... -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Sunday, May 27, 2007 9:23 PM To: Tapestry users Subject: Re: Redirect Question void setup() { throw new PageRedirectException(YourPageName); } ? On 5/27/07, Jonathan Glanz [EMAIL PROTECTED]

Re: @EventListener Question

2007-05-27 Thread Jesse Kuhnert
I'm not sure what you mean, the asynchronous portion should happen automatically. It should also behave exactly the same way as your listener method would if it were say a @Submit component listener or @DirectLink listener. The major difference is that it automatically submits your form if you

Re: Redirect Question

2007-05-27 Thread Hilco Wijbenga
On 5/27/07, Jesse Kuhnert [EMAIL PROTECTED] wrote: void setup() { throw new PageRedirectException(YourPageName); } So what about T5? I found onActivate() in the mailinglist and that works ... partially. Requesting www.example.com/app/start redirects as expected [onActivate() is in

Re: @OnEvent not inherited in T5?

2007-05-27 Thread Howard Lewis Ship
That's very odd; based on how Tapestry instruments the code, that should automatically happen, even if @OnEvent is not inherited (which it isn't, only type annotation, not method annotations, can be inherited). On 5/27/07, Jun Tsai [EMAIL PROTECTED] wrote: my parent page class had a method

Re: @OnEvent not inherited in T5?

2007-05-27 Thread Eugene Lozovan
Actually, I've got similar issue: HTML- template contains input type=button t:type=Any t:id=dosmthng value=DoSmthng/ page-class contains: String onActionFromDosmthng(){ return Start; } Click on the button doesn't entail call of onActionFromDosmthng() Thanks, E.L. On

Re: T5 application wide message catalog

2007-05-27 Thread petros
Do you know if it works for this snapshot tapestry-core-5.0.5-20070522.184451-1.jar It doesn't work for me. The properties in com/glintech/jumpstart/tapestry/App.properties are not visible by my tapestry html pages. I have the following in my web.xml context-param