Re: Session in ServiceEncoder's?

2008-01-23 Thread Kaspar Fischer
On 21.01.2008, at 17:24, Kaspar Fischer wrote: Hi, Can I inject the current session into a service encoder? Any idea how I could achieve this? Many thanks! Kaspar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: t5 class cast

2008-01-23 Thread riccaruf
Hi Dave thank you very mutch for your reply!! Oops..what I dummy I am! I miss something in the post preview :-(( , and Yes yes my test was exactly in the way you write if (field instanceof MyInput) But it doesn't work! The log messages show me that the instance tapestry pass me as

Re: t5 class cast

2008-01-23 Thread Davor Hrg
Class cast exceptions happen if you have non component classes inside components or pages packages... post some code and say what packages are those classes in... Davor Hrg On Jan 23, 2008 10:12 AM, riccaruf [EMAIL PROTECTED] wrote: Hi Dave thank you very mutch for your reply!! Oops..what I

Re: Session in ServiceEncoder's?

2008-01-23 Thread Kaspar Fischer
This seems to work: service-point id=myencoder interface=org.apache.tapestry.engine.ServiceEncoder invoke-factory construct class=org.myorg.tapestry.myproject.serviceencoders.DBObjectServiceEncod er set property=pageName value=node / set-object

My First Tapestry 5 Project (DreamteamTM)

2008-01-23 Thread dwi ardi irawan
actually this is my lecture final project, but i would like to share with you guys, i knowit's far away from stable. but it might help for newbie i use : tapestry 5.0.8-SNAPSHOT (01/19/2008) iBatis 2.3.0 Dojo 1.0.2 Spring 2.5 here's the blog : http://tapestryboard.blogspot.com/ --

Re: t5 class cast

2008-01-23 Thread riccaruf
Hi Davor, we are developing an application with our own component, and we are trying to validate a textfield like embedded component of our component. Our own component is like that Sample.tml input t:type=template/componenti/componentigenerici/SailingInput

Re: T5: Inject services into domain objects?

2008-01-23 Thread Imants Firsts
For the domain objects that need access to tapestry service I define a constructor which takes as a parameter the needed service. In my case I only have one such service (not separate DAOs for all domain objects) - HibernateService. Then I contribute the following interceptor to Hibernate, which

Re: t5 class cast

2008-01-23 Thread Davor Hrg
I'm still unsure why it happens, can you try following: etract an interface with method getTf(); na put it outside components package for example: it.sailingweb.framework.web.InputWrapper Tapestry instruments classes in components,base,pages packages, and holds them in a separate

RE: Javascript error when moving from 5.0.6 to 5.0.7

2008-01-23 Thread marcoccoli
In the run dialog window I set the http host with my IP address instead localhost and it works. Cheers marcoccoli -- View this message in context: http://www.nabble.com/Javascript-error-when-moving-from-5.0.6-to-5.0.7-tp14594716p15041920.html Sent from the Tapestry - User mailing list archive

Re: Javascript error when moving from 5.0.6 to 5.0.7

2008-01-23 Thread Marcus
Hi Mahen, Try clean browser cache. Marcus

T5: GWT

2008-01-23 Thread Borut BolĨina
Hello, is anybody mixing T5 with GWT? Why? Why not? Regards, Bob

Tapestry 5 error page detection

2008-01-23 Thread Peter Stavrinides
Hi I would like to customize the various error pages for my servlet (404,500,401 etc...), I have implemented the configuration in my web.xml, but Tapestry 5 doesn't pick them up... how should I go about this? Thanks Peter -

Re: Tapestry 5 error page detection

2008-01-23 Thread Chris Lewis
On a related note, I'd like to send 404 responses as well as a custom error page through T5, like when a user or article isn't found (but requested by id, for example). I remember a thread about this I think... Peter Stavrinides wrote: Hi I would like to customize the various error pages for

Re: Tapestry 5 error page detection

2008-01-23 Thread Howard Lewis Ship
Chances are, Tapestry is passing on the requests because there are real static HTML files present. The problem is that if you delete 505.html, you need to come up with a class named 505. That's going to be a problem :-). I'm not sure what the servlet container will do if you configure the

Re: [ANN]: Seam for T5

2008-01-23 Thread Igor Drobiazko
Just updated the documentation. How to use Seam-managed Hibernate session read here: http://tacos.sourceforge.net/tacos5/tacos-seam/hibernate.html A Hibernate example application can be found here: http://tacos.svn.sourceforge.net/viewvc/tacos/tacos-5/trunk/tacos-seam/booking-example/ This app

Re: Tapestry 5 error page detection

2008-01-23 Thread Daniel Jue
Isn't T5 acting as a filter? So if Tomcat/etc hands control to T5 to find the correct resource/page, T5 has the opportunity to handle things like error messages. Is it out of the question for Tapestry to provide base error pages that we can override, or configure Tapestry to pass errors back to

[T5] How to process raw HTTP POST for a RESTful service

2008-01-23 Thread Stephan Schwab
Hi, what would be the best way to process a raw HTTP POST coming in from code like this one: http://developer.yahoo.com/java/samples/YahooWebServicePost.java I guess it will be required to turn off some of the form processing logic T5 provides. Does that mean to go the route tapestry-upload

Re: [ANN]: Seam for T5

2008-01-23 Thread Andreas Pursian
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Looks very interesting, thanks for your work. I stumbled across seam and its jBPM implementation feature some time ago. So while seam is discussed on the list right now, i ask myself whether this feature could be implemented or not. I read your reply

use messages in a service

2008-01-23 Thread Paul Stanton
Hi All, I have a service which does not have access to the request cycle etc however I need to use the same messages used for the tapestry components, preferrably from the same Object/Service as the one available to pages. I've tried creating a setter method for the service but it isn't