[T5] Integration of Guice in the domain model?

2007-08-08 Thread Donyee
Hi all, I want to use the guice in my t5 app? does anyone got ideas to use it like tapestry-spring? 徐 依伟

Re: createReadOnlyBindingException help!

2007-08-08 Thread andyhot
Well, it looks like the hidden parameter is an in-out one, and it's probably that way by design I guess. The 'value' and 'index' parameters of @For work similarly but that's more straightforward after reading the docs. Anyway, I think we should just document this. Martino Piccinato wrote: Fin

Re: createReadOnlyBindingException help!

2007-08-08 Thread Martino Piccinato
Finally I think we were both wrong and that I opened two useless tickets: in fact, as stated in the documentation default-value attribute now accept any kind of binding and actually CREATES the binding if no other binding is present. In your case: org.apache.tapestry.binding.AbstractBinding.crea

Re: [T4.1]tabs supporting listeners

2007-08-08 Thread Marcelo C. de Freitas
There is a simple solution for this. The Tab's divs are not visible at first, so the user can't see the s loading. Once the page is loaded, all divs are marked visible. 2007/8/8, Marcelo C. de Freitas <[EMAIL PROTECTED]>: > it's almost working > > almost because the dojo's ContentPane is

RE: [T5] Grid component failure with hibernate objects

2007-08-08 Thread Jonathan Barker
Andrés, I should clarify. I needed to collect information across three objects, including one property from one element of a collection. In the "central" object for the grid, I was only using a fraction of the available properties. This was a small contained project so it was more expedient for

Re: [T4.1]tabs supporting listeners

2007-08-08 Thread Marcelo C. de Freitas
it's almost working almost because the dojo's ContentPane is a DOM node inside the page. which means the page inside the TabContainer can't be a complete page (html, body, ...). Which means the listeners may not work (actualy, they didn't work at all in my tests). One solution I found is to

Re: T5: component libraries

2007-08-08 Thread Ognen Ivanovski
On 2007-08-08, at 18:05, Chris Lewis wrote: I've read it and am reading it again, but where did you read about that specific service? Ah, the service :) The sources. First thing I wanted to know is how to do component libraries, so I dug around until I found it. -- Ognen Ivanovski | [EM

Re: T5: component libraries

2007-08-08 Thread Chris Lewis
I've read it and am reading it again, but where did you read about that specific service? Ognen Ivanovski wrote: On 2007-08-08, at 17:31, Chris Lewis wrote: Not sure I agree with that! Thank you very much for showing how its done. Is there discussion on the website about the method "contrib

Re: T5: component libraries

2007-08-08 Thread Ognen Ivanovski
On 2007-08-08, at 17:31, Chris Lewis wrote: Not sure I agree with that! Thank you very much for showing how its done. Is there discussion on the website about the method "contributeComponentClassResolver", for the service that it seems to imply (ComponentClassResolver)? Yes, you have to

Re: T5: component libraries

2007-08-08 Thread Chris Lewis
"And you are done. Can't be simpler ;) " Not sure I agree with that! Thank you very much for showing how its done. Is there discussion on the website about the method "contributeComponentClassResolver", for the service that it seems to imply (ComponentClassResolver)? thanks again Ognen Ivan

Re: [T4.0.2] Conditions inside Foreach ends with Stale Session

2007-08-08 Thread Mahmut Izci
@For works great, thanks. I see that @Foreach is deprecated in T4 anyway. Mahmut andyhot schrieb: Well, i've had a lot of conditions inside loops, so im not sure what the problem is here How about trying the @For component perhaps? http://tapestry.apache.org/tapestry4/tapestry/ComponentRefer

Re: T5: component libraries

2007-08-08 Thread Ognen Ivanovski
On 2007-08-08, at 17:09, Chris Lewis wrote: Don't get me wrong I much prefer convention over configuration, but is it still possible to declare/include 3rd party component libraries? If so, how? Step 1: Declare the module builder class in the MANIFEST.MF if your component library jar. It

Re: [T4.0.2] Conditions inside Foreach ends with Stale Session

2007-08-08 Thread andyhot
Well, i've had a lot of conditions inside loops, so im not sure what the problem is here How about trying the @For component perhaps? http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/For.html Mahmut Izci wrote: Hi, It seems that conditions inside of Foreachs cause a "stale se

T5: component libraries

2007-08-08 Thread Chris Lewis
Hello all, In tap 4 it was possible to bundle/include external libraries; create the classes/assets/templates/spec files in a package, give it a library descriptor, drop it in the class path, and finally declare a reference to it in the app descriptor. Lots of steps, but possible. In tap 5 com

[T4.0.2] Conditions inside Foreach ends with Stale Session

2007-08-08 Thread Mahmut Izci
Hi, It seems that conditions inside of Foreachs cause a "stale session": After submitting the form, this references always to the "Stale Session" page. Has anybody else experienced this behaviour? Thanks Mahmut - To

RE: [T5] Grid component failure with hibernate objects

2007-08-08 Thread Andres Alvarez
Howard: I'm currently using Tapestry 5.0.5, And as Jonathan suggests I tailored a specific bean for the grid, I will try using : _beanModel.remove("OffendingProperty"); Because I think hibernate objects must be usable for rendering in T5. Cheers Andrés Alvarez -Original Message-

RE: [T5] Submit control event handler cannot redirect?

2007-08-08 Thread Kolesnikov, Alexander GNI
I see, Nick. Things are much simpler with ActionLink because it isn't a form component. Thanks a lot! Alex -Original Message- From: Nick Westgate [mailto:[EMAIL PROTECTED] Sent: 08 August 2007 10:44 To: Tapestry users Subject: Re: [T5] Submit control event handler cannot redirect? Th

Re: [T5] Submit control event handler cannot redirect?

2007-08-08 Thread Nick Westgate
The natural flow of form submission is to update internal state with posted values from the form and then render the result page. Whether that is the same page (which is often the case) or not is usually decided at the end of the form processing. So the select events simply notify us of which sub

RE: [T5] Submit control event handler cannot redirect?

2007-08-08 Thread Kolesnikov, Alexander GNI
Thank you very much, Nick! -Original Message- From: Nick Westgate [mailto:[EMAIL PROTECTED] Sent: 08 August 2007 10:21 To: Tapestry users Subject: Re: [T5] Submit control event handler cannot redirect? Think of it this way: the answer is "no" if you supply t:defer="false", because then

RE: [T5] Submit control event handler cannot redirect?

2007-08-08 Thread Kolesnikov, Alexander GNI
Thank you, Denny. Yes, I understand that it is done like this, but I am actually trying to discuss the consistence of the framework design. Is there any specific reason that 'select' event handler works differently from any other event handler? If yes, then why Submit component generates exactly '

Re: [T5] Submit control event handler cannot redirect?

2007-08-08 Thread Nick Westgate
Think of it this way: the answer is "no" if you supply t:defer="false", because then the redirect would occur before the form completed rewinding. That would be kind of like an exception. ;-) http://wiki.apache.org/tapestry/Tapestry5RedirectException I agree with you that's it's inconsistent tho

Re: [T5] Submit control event handler cannot redirect?

2007-08-08 Thread Denny
The error message is clear. This type of event does not support return values from event handler methods. Please take a look at http://wiki.apache.org/tapestry/Tapestry5HowToUseForms Dealing with multiple submits Capter. On 8/8/07, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]> wrote: > > I am p

[T5] Submit control event handler cannot redirect?

2007-08-08 Thread Kolesnikov, Alexander GNI
I am playing with a simple T5 application that has two pages: Start and Another. The Start page contains the following: Display Another page And here is the page class contents: @InjectPage private Another anotherPage; @OnEvent(value="submit", component="theForm"

Re: [T4] Tapestry-Acegi error

2007-08-08 Thread Lutz Hühnken
My first guess would be that you refer to something called "ClassWorkers" in your hivemodule.xml, but it is undefined. I think it might be helpful if you posted your hivemodule.xml. Hth, Lutz On 8/8/07, kael20 <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to setup tapestry-acegi using the