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 PeriodicalExecut

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 > May be this helps! > > // > // Mixin > // > package tapestrydemo.mixins; > > import org.apache.tapestry5.ComponentResources; > import org.apache.tapestry5.BindingConstants; > import org.apache.tap

How to get request page ?

2011-01-07 Thread Taha Hafeez
Hi I am trying to get the requested page during ComponentRequestFilter phase. I tried RequestGlobals.getActivePage() but it returns null first time around ... Is there any way ? regards Taha

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. wrote: I just replaced the version number from 5.1.0.5 to 5.2.4 and compile, run, the first error is: [WARN] DTDEntityResol

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] An

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 To: Tapestry users Sent: Wed, January 5, 2011 4:21:49 PM Subject: Re: questions regarding tapestry, shiro, tapestry-security and the hotel-booking-demo The configuration is in the Ap

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." 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, > > > > org.hibernate > hibernat

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, org.hibernate hibernate 3.2.2.ga c3p0 c3p0 0.9.1.2 geronimo-spec geronimo-spec-jta 1.0

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

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 D

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 > Hi all ! > > I have a problem with tapestry for create a multiple select . I would like > used a select with the poss

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 : It works but I can't get all values selected, just one. Have you any idea to perform what I want? I have seen on the web a

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.

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(...) bloc

Re: tapestry ioc

2011-01-07 Thread Thiago H. de Paula Figueiredo
On Fri, 07 Jan 2011 07:46:39 -0200, Joel Halbert 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 or not. I guess it d

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, 0

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 yo

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

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: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigati

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 Tapest

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

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, a

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 the

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

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? Regard