Re: 5.2: How to handle deprecated ValidationMessagesSource

2011-01-07 Thread Stephan Windmüller
On 06.01.2011 21:54, Christian Riedel wrote: Never used ValidationMessages but I can tell you how I add additional resources: Thanks, this looks exactly like that what I need. But the code does not work, validation.properties is not found. Is this not the one shipped with tapestry? Regards

Re: component report failing

2011-01-07 Thread antalk
Same issue here, i've updated the JIRA issue with some comments -- View this message in context: http://tapestry.1045711.n5.nabble.com/component-report-failing-tp2436431p3331539.html Sent from the Tapestry - User mailing list archive at Nabble.com.

How to test a redirection

2011-01-07 Thread Taha Hafeez
Hi I have a secured page which when requested without authentication redirects to a login page. I want to test this using PageTester. I tried pageTester.renderPageAndReturnResponse().getRedirectURI() but it returns null. Now I am testing by checking the content of the returned page... Is there

Re: 5.2: How to handle deprecated ValidationMessagesSource

2011-01-07 Thread Christian Riedel
Of course not, that should be the path to your validation.properties that you would've had added with the ValidationMessages instead. Put your properties somewhere under src/main/resources and set the path relative to that directory (src/main/java works as well as long as the directory is in

onPassivate called multiple times

2011-01-07 Thread Stephan Windmüller
Hello! I just noticed that the onPassivate method is called multiple times on a page of mine. Currently there are 14(!) calls and one is added with every row I add to a Grid inside of it. I am not sure, but is this normal behaviour? It does the same over and over again, slowing the system down,

Re: 5.2: How to handle deprecated ValidationMessagesSource

2011-01-07 Thread Stephan Windmüller
On 07.01.2011 10:32, Christian Riedel wrote: Of course not, that should be the path to your validation.properties that you would've had added with the ValidationMessages instead. Put your properties somewhere under [...] I did not add any custom properties to ValidationMessages in the first

Re: tapestry ioc

2011-01-07 Thread Joel Halbert
Actually - it all stemmed from me just wanting to exclude the SpringModule when using the tapx templating library for sending html emails! Since that's a standalone app that just uses tapx tap-ioc (no web component) it just got me thinking about using Tap-IOC for my other standalone, non

Re: onPassivate called multiple times

2011-01-07 Thread Stephan Windmüller
On 07.01.2011 10:35, Stephan Windmüller wrote: I am not sure, but is this normal behaviour? It does the same over and over again, slowing the system down, and I cannot find what causes this. Okay, it is normal behaviour:

Re: 5.2: How to handle deprecated ValidationMessagesSource

2011-01-07 Thread Christian Riedel
Ah ok, now I'm with you! The ValidationMessages bundle isn't contributed to the global messages (ComponentMessagesSource). Seems they can only be found if you use the old service directly. Since Tapestry is using this class internally there's no proper replacement for accessing these

Re: 5.2: How to handle deprecated ValidationMessagesSource

2011-01-07 Thread Stephan Windmüller
On 07.01.2011 11:02, Christian Riedel wrote: Ah ok, now I'm with you! Good. :) I don't know the reason why you need to build the original messages yourself (why don't you let Tapestry build them?). Tapestry does not support to disable client validation for some submit buttons. Imagine a

Re: 5.2: How to handle deprecated ValidationMessagesSource

2011-01-07 Thread Stephan Windmüller
On 07.01.2011 11:14, Stephan Windmüller wrote: However, if you contribute the ValidationMessages to ComponentMessagesSource they're kind of cached twice in the system. I looked up the path, try this: String path = org/apache/tapestry5/internal/ValidationMessages.properties Thank you very

Re: t5: zone, blocks, and form - simple question

2011-01-07 Thread Sergio Esteves
No, it is not an ajax request (tested with the isXHR). The form can't find the specified zone on its parameter, and I don't know why. I have something like zone0(block0( zone1(block1(...) block2(form-zone1(...) block3(.... On 06-01-2011 23:38, Thiago H. de Paula Figueiredo wrote: On Thu,

Re: tapestry ioc

2011-01-07 Thread Thiago H. de Paula Figueiredo
On Fri, 07 Jan 2011 07:46:39 -0200, Joel Halbert j...@su3analytics.com wrote: Actually - it all stemmed from me just wanting to exclude the SpringModule when using the tapx templating library for sending html emails! I haven't used this library yet, so I don't know if it needs SpringModule

Re: t5: zone, blocks, and form - simple question

2011-01-07 Thread Sergio Esteves
Ok, I used the zone0 and it worked. On 07-01-2011 10:51, Sergio Esteves wrote: No, it is not an ajax request (tested with the isXHR). The form can't find the specified zone on its parameter, and I don't know why. I have something like zone0(block0( zone1(block1(...) block2(form-zone1(...)

Re: tapestry ioc

2011-01-07 Thread Joel Halbert
I haven't used this library yet, so I don't know if it needs SpringModule or not. I guess it does, as Howard wrotes it and SpringModule is there. But that's just a guess. :) No, it doesn't use it, it just happened to be in my classpath. On Fri, 2011-01-07 at 09:08 -0200, Thiago H. de

Multiple Select with tapestry 5.1 ??

2011-01-07 Thread Cucchietti Denis
Hi all ! I have a problem with tapestry for create a multiple select . I would like used a select with the possibility to choose more than one value. I have tried this : t:select t:id=multipleRoles t:validate=required t:encoder=roleEncoder t:model=rolesModel t:multiple=true

Re: Multiple Select with tapestry 5.1 ??

2011-01-07 Thread Emmanuel DEMEY
Hi Denis Did you read this wiki article http://wiki.apache.org/tapestry/Tapestry5MultipleSelectOnObjects about a MultipleSelect Component ? Emmanuel 2011/1/7 Cucchietti Denis denis.cucchie...@atosorigin.com Hi all ! I have a problem with tapestry for create a multiple select . I would like

RE: Multiple Select with tapestry 5.1 ??

2011-01-07 Thread Cucchietti Denis
Hi Emmanuel, Yes i have read this article but I wasn't sure of the result! I will try it! Thanks ;-) -Message d'origine- De : Emmanuel DEMEY [mailto:demey.emman...@gmail.com] Envoyé : vendredi 7 janvier 2011 13:24 À : Tapestry users Objet : Re: Multiple Select with tapestry 5.1 ?? Hi

RE: Multiple Select with tapestry 5.1 ??

2011-01-07 Thread Cucchietti Denis
Hi, I've tried select multiple with tutorial http://wiki.apache.org/tapestry/Tapestry5MultipleSelectOnObjects But it's seem to be an old code, it's doesn't work with tapestry 5.1. Class SelectMultiple.java contains lot of errors. Have you an other idea to perform this multiple select? Thanks

t5: upgrading from 5.1.0.5 to 5.2.4

2011-01-07 Thread Angelo C.
Hi, got quite a lot of errors after running, looks like from Hibernate, here is what I have now, what needs to be changed? THanks, dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.2.2.ga/version /dependency dependency

Re: t5: upgrading from 5.1.0.5 to 5.2.4

2011-01-07 Thread Josh Canfield
Without actual errors its hard to tell. What tapestry modules are you including? On Jan 7, 2011 5:23 AM, Angelo C. angelochen...@gmail.com wrote: Hi, got quite a lot of errors after running, looks like from Hibernate, here is what I have now, what needs to be changed? THanks, dependency

Re: questions regarding tapestry, shiro, tapestry-security and the hotel-booking-demo

2011-01-07 Thread Ronald Luke
Thanks, Taha, that really helped, I got it working. Ron From: Taha Hafeez tawus.tapes...@gmail.com To: Tapestry users users@tapestry.apache.org Sent: Wed, January 5, 2011 4:21:49 PM Subject: Re: questions regarding tapestry, shiro, tapestry-security and the

Re: t5: upgrading from 5.1.0.5 to 5.2.4

2011-01-07 Thread Angelo C.
I just replaced the version number from 5.1.0.5 to 5.2.4 and compile, run, the first error is: [WARN] DTDEntityResolver recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide! [WARN]

Re: t5: upgrading from 5.1.0.5 to 5.2.4

2011-01-07 Thread Thiago H. de Paula Figueiredo
All the information you'll need is in the error messages. Your project had the Hibernate dependency upgraded to 3.6. On Fri, 07 Jan 2011 13:44:08 -0200, Angelo C. angelochen...@gmail.com wrote: I just replaced the version number from 5.1.0.5 to 5.2.4 and compile, run, the first error is:

Re: [T5] Complexity for simple things, where is the documentation?

2011-01-07 Thread Borut Bolčina
Taha, can you please post the PeriodicAjaxUpdater.js also? Cheers, Borut 2010/10/17 Taha Hafeez tawus.tapes...@gmail.com May be this helps! // // Mixin // package tapestrydemo.mixins; import org.apache.tapestry5.ComponentResources; import org.apache.tapestry5.BindingConstants; import

Re: [T5] Complexity for simple things, where is the documentation?

2011-01-07 Thread Taha Hafeez
Hi Borut.. With pleasure. var PeriodicAjaxUpdater = Class.create({ initialize:function(params){ this.element = $(params.element); this.url = params.url; this.period = params.period; $T(this.element).zoneId = params.zone; var self = this; new