Re: T5 IoC kickstart tutorial

2007-05-27 Thread Davor Hrg
to get started, you could use tapestry quickstart first, and then try to build a small app using tapestry-ioc and tapestry-hibernate only Davor Hrg On 5/28/07, Joshua Jackson <[EMAIL PROTECTED]> wrote: Davor and Howard, Thanks for the reply. I have went over through the tapestry-ioc docs, but

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

2007-05-27 Thread Alexander Lamb
Hello, So if I understand correctly the two answers I received, I should NOT use the initial-value attribute since I will not yet have session information (and probably component parameters). If I need a place to initialize some persistent properties which will be called after the componen

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 tapestry.app-package

Re: @OnEvent not inherited in T5?

2007-05-27 Thread Eugene Lozovan
Actually, I've got similar issue: HTML- template contains page-class contains: String onActionFromDosmthng(){ return "Start"; } Click on the button doesn't entail call of onActionFromDosmthng() Thanks, E.L. On 28/05/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: That

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 wi

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 Sta

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 h

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: 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 c

@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 PROTECTED

@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 = "sele

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

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 th

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: 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

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: > 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 _returns_ to the pool (and not when it is fetched from the pool). Hence, if you write an initilizati

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 creating

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: 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

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: 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: -) There are two relatively easy ways to provide default values : or implement PageBeginRenderListener in your component (the name of the interface is unfortunate as it can be applied

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(Configuration configuration) { configuration.add(new LibraryMapping("mod1", "org.comp.app.mod1.presentation")); config

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 list

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 > > > > //

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,

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: type="ch.rodano.role.model.RegistryCenter" persistent="yes" /> However, I need to initialize some of those p

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/

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 SharedCrud, 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 d

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 everythi

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 ki

Re: Blog on Tapestry's Future

2007-05-27 Thread Marcus
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 always w

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 .properties with the same properties keys... but don't work. For components with properties associated i find in this forum

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 an

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 messag

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 any