Re: Tapestry 5 error page detection

2008-01-24 Thread Peter Stavrinides
I thought of using the location tag, but I couldn't get it to work... it appeared as though Tapestry couldn't resolve the resource from the response and throws a 404 not found instead. Howard Lewis Ship wrote: Chances are, Tapestry is passing on the requests because there are real static HTML

T5: Service and thread

2008-01-24 Thread Angelo Chen
Hi, I have a service which does some file download that takes quite long, I'd like to run the service in a separate thread, possible with Tapestry Ioc? or I have to manage the thread manually? Thanks, A.C. -- View this message in context:

problem in injecting an application state object

2008-01-24 Thread Ying Bo
i got the following error: An exception has occurred. [ +/- ] Exception: 'sessionFactoryBuilder' is not a declared application state object. Stack Trace: * org.apache.tapestry.engine.state.SOMRegistryImpl.get(SOMRegistryImpl.java:80) *

Re: T5: Service and thread

2008-01-24 Thread Davor Hrg
Tapestry-ioc will not generate threads for you, taopestry-ioc makes sure that some resources are unique per thread, and threads can be generated where ever. They mostly come from underlaying server for each request. If you spawn your own thread, you can freely use any threaded resource, just make

回复: problem in injecting an applicati on state object

2008-01-24 Thread Ying Bo
i got the answer myself , i put the file hivemodule.xml under the wrong position, after i put it under the folder web-inf/ , that problem won't occur. --- Ying Bo [EMAIL PROTECTED]写道: i got the following error: An exception has occurred. [ +/- ] Exception: 'sessionFactoryBuilder' is

T 5.0.9 ClassNotFoundException

2008-01-24 Thread Marcelo Lotif
Hi all, I was switching an app to T5.0.9 and i found this error on the PieChart component that i took from the wiki: org.apache.tapestry.ioc.internal.util.TapestryException java.lang.ClassNotFoundException: int[] t:piechart width=400 height=300 labels=pieLabels values=pieValues

addScript(), entities, CDATA...

2008-01-24 Thread Francois Armand
Hello, I'm running (again) in problems with entities filtering. Since https://issues.apache.org/jira/browse/TAPESTRY-1818 is corrected, now I can add JavaScript with '' in CDATA block but only if I set the rendering type to text/xml (with @Meta(tapestry.response-content-type=text/xml) so that

Re: T 5.0.9 ClassNotFoundException

2008-01-24 Thread Marcelo Lotif
And i am getting a null pointer exception too, maybe related with the error that Geoff Callender posted few hours ago about a NPE on the TextField Component. Here's the stack trace: An unexpected application exception has occurred. org.apache.tapestry.ioc.internal.util.TapestryException location

Tapestry4 JUnit for Page Components

2008-01-24 Thread Deepak Gaikwad
Hi, I want to write JUnit test cases for page components compatible with Tapestry4. Any examples available using HiveMindTestCase and EasyMock. Thanks, Deepak CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely

[T5] Spring and T5

2008-01-24 Thread Emmanuel Sowah
Hi, I read some time back that unlike T4, T5 would treat Spring as a first citizen. However, I've been struggling in making T5 work smoothly with Spring. Anyone out there has had luck with this? I'm now fed up and this is for me a wake up call to go look at some of the other ambitious and

Re: [T5] Spring and T5

2008-01-24 Thread Fernando Padilla
Yup. I have been using T5 and Spring since I started, 5.0.5 or what not. Working perfectly fine. @Inject @Service(beanName) private BeanClass bean; Emmanuel Sowah wrote: Hi, I read some time back that unlike T4, T5 would treat Spring as a first citizen. However, I've been struggling in

Iteration order on org.apache.tapestry.AbstractComponent#getComponents()

2008-01-24 Thread Michael Häusler
Hi there, I think it would be beneficial to be able to iterate over the components of a page in a well defined order (e.g., the order in which they occur in the template). Therefore, I would like to suggest to change the Map-Implementation of _components (and _assets) in AbstractComponent

RE: [T5] Spring and T5

2008-01-24 Thread Mahen Perera
I have also been using T5 ,, 5.0.7 and spring 2.5.1 ,,, working fine for me. -Original Message- From: Fernando Padilla [mailto:[EMAIL PROTECTED] Sent: 24 January 2008 15:32 To: Tapestry users Subject: Re: [T5] Spring and T5 Yup. I have been using T5 and Spring since I started, 5.0.5

Problem with DOJO generated Java scripts in tapestry 4.1.3

2008-01-24 Thread kanthi
i want to enable/disable a button on clicking a checkbox in the screen. i am trying the below code Snippet. HTML template code snippet tr jwcid=@For source=ognl:lists index=ognl:listIndex value=ognl:listData td align=left form jwcid=@Form style=margin:0px;padding:0px; /form /td /tr Java

Re: [T5] Spring and T5: A match made in heaven

2008-01-24 Thread Michael Lake
Emmanuel - Spring is brain-dead simple to integrate with tapestry 5. If you need help Emmanuel, you may email me relevant bits of your code and I would be more than happy to help you. Really though, there's great documentation on the site to show you exactly how to do this, Emmanuel. I,

Re: [T5] Spring and T5

2008-01-24 Thread Michael Courcy
Just work perfect, and Honestly installing spring was a matter of 3 minutes. Have a look there http://wiki.apache.org/tapestry/Tapstry5First_project_with_Tapestry5,_Spring_and_Hibernate If you're still metting problem I can send you a mavenized project with even dbunit integrated. Emmanuel

Re: [T5] Spring and T5

2008-01-24 Thread Andreas Andreou
We've been using spring since T3. That's already been ... a few years! On Jan 24, 2008 5:45 PM, Mahen Perera [EMAIL PROTECTED] wrote: I have also been using T5 ,, 5.0.7 and spring 2.5.1 ,,, working fine for me. -Original Message- From: Fernando Padilla [mailto:[EMAIL PROTECTED]

Ognl constructors

2008-01-24 Thread KLessou
Hi, I'm trying to add a DropdownDatePicker component with a custom pattern that may be changed. With this ognl expression, it works very well (with default pattern) : span jwcid=@DropdownDatePicker ... translator=ognl:new org.apache.tapestry.form.translator.DateTranslator()/

Re: T5 tapestry5-acegi salt source not overridable

2008-01-24 Thread Robin Helgelin
Hi, On Jan 21, 2008 7:59 PM, Franz Amador [EMAIL PROTECTED] wrote: It looks to me like the tapestry5-acegi module hard-codes the password salt source to be SystemWideSaltSource. I can change the system-wide salt via acegi.password.salt, but there is no corresponding acegi.salt.source

Re: T 5.0.9 ClassNotFoundException

2008-01-24 Thread Marcelo Lotif
I found the solution to the 2nd problem myself, was just a null parameter that i was passing and tapestry seems not to allow this anymore(at least on this case). But i still can't fix the the 1st problem... here's the stack trace: An unexpected application exception has occurred.

have i missed anithing ?

2008-01-24 Thread Sven Homburg
i missing the release 5.0.8 and 5.0.9 an tapestry site the trunk changed today to 5.0.10 !? - best regards Sven -- View this message in context: http://www.nabble.com/have-i-missed-anithing---tp15072509p15072509.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: have i missed anithing ?

2008-01-24 Thread Kevin Menard
If you're following that closely, you may want to join the dev list ;-) 5.0.8 was a failed release. 5.0.9 is still pending outcome. That bumps trunk up to 5.0.10. -- Kevin On 1/24/08 2:31 PM, in article [EMAIL PROTECTED], Sven Homburg [EMAIL PROTECTED] wrote: i missing the release 5.0.8

Problem using EventListener annotation

2008-01-24 Thread HBKTron
Hi, I'm currently using Tapestry 4.1.3 and I'm trying to copy the EventListener annotation example from: http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html. The example shows how a method can be annotated with EventListener to respond to DOM events. Unfortunately the EventListener

Re: Problem using EventListener annotation

2008-01-24 Thread Marcus Schulte
1. Make sure, your template includes a @Shell and a @Body component as shown here: http://tapestry.apache.org/tapestry4.1/ajax/basics.html 2. please also try to keep your page-class abstract and remove the auto-generated stubs of methods. Tapestry generates a concrete class for each

Re: Problem using EventListener annotation

2008-01-24 Thread HBKTron
Thank for the help. Adding @Shell and @Body components resolved the problem. Marcus Schulte wrote: 1. Make sure, your template includes a @Shell and a @Body component as shown here: http://tapestry.apache.org/tapestry4.1/ajax/basics.html 2. please also try to keep your page-class

Re: AjaxStatus

2008-01-24 Thread DR_GLoPeL_BouCa
ok, thanks, work fine, but I use dojo.event.connect(tapestry, 'loadContent', function(id, node, element){xxx}); to hide the status, the problem is when the response is empty function to hide status not shoot, what you suggest to solve this... Andreas Andreou wrote: no

Drawing error with Tapestry Dojo Dialog Component

2008-01-24 Thread HBKTron
Hi, I'm having a drawing error while trying to learn how to use the Tapestry Dialog component from Dojo. http://tapestry.apache.org/tapestry4.1/components/dojo/dialog.html Basically I have an initially hidden dialog box that I'd like to show after a DirectLink component is clicked. The dialog

Re: T5: Eclipse unhappy with TML file that has DOCTYPE

2008-01-24 Thread Josh Canfield
I believe you just need to add the namespace to an outer element... for instance in a page you might have html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; Josh On Jan 24, 2008 2:35 PM, Franz Amador [EMAIL PROTECTED] wrote: I'm hoping someone can tell me how to configure

Visit Object to HttpSession to access aside tapestry

2008-01-24 Thread Esteban Dugueperoux
Hi, I have a web application that use tapestry framework to manage sessions, and I want to setup Java Web Start. I want a servlet to create a jnlp file generator according to user, but I need know whether this user have already a tapestry session (Visit object), or not. If this user have one

Re: T5: Output raw values in label

2008-01-24 Thread Kevin Menard
I like writing emails to the list, because most times 30 seconds after I do, I come up with the solution. Anyway, for those interested, the answer was to just include the text in the body of the Label component. Wrapping that up in an OutputRaw did the trick. -- Kevin On 1/24/08 7:43 PM, in

T5: Output raw values in label

2008-01-24 Thread Kevin Menard
Hi, I've had the need to convert newlines into br/ tags, much like the T4 Insert component can. I needed to do this in a label for a radio button, so I decided to write a new binding that will do the conversion for me. This portion works fine and I can bind the value to the label parameter of

Re: T5: Output raw values in label

2008-01-24 Thread Howard Lewis Ship
On Jan 24, 2008 4:52 PM, Kevin Menard [EMAIL PROTECTED] wrote: I like writing emails to the list, because most times 30 seconds after I do, I come up with the solution. Anyway, for those interested, the answer was to just include the text in the body of the Label component. Wrapping that up

Re: T 5.0.9 ClassNotFoundException

2008-01-24 Thread Howard Lewis Ship
Please add an issue with all relevant code and stack traces. On Jan 24, 2008 10:34 AM, Marcelo Lotif [EMAIL PROTECTED] wrote: I found the solution to the 2nd problem myself, was just a null parameter that i was passing and tapestry seems not to allow this anymore(at least on this case). But i

Re: T5: Service and thread

2008-01-24 Thread Andy Huhn
Angelo, Additionally, if you have a job that you want to schedule to do this download, you could use a scheduler such as Quartz to kick off the job without any intervention. Andy On Thu, 2008-01-24 at 01:45 -0800, Angelo Chen wrote: Hi, I have a service which does some file download that