Re: RadioGroup & loop: coercion problem

2012-01-11 Thread Fabiz
Maybe someone could tell me how to use radio buttons with a loop, instead ? :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/RadioGroup-loop-coercion-problem-tp5130975p5139281.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: ajax improvements in 5.3

2012-01-11 Thread Paul Stanton
Hi Robert, Does that method support the rendering of zone updates and executing scripts added to AjaxResponseRenderer? On 3/01/2012 6:38 PM, robert baker wrote: 4. In the JavaScript, execute "new Ajax.Request" or "Tapestry.ajaxRequest" on the URI (see prototype docs and/or tapestry.js for d

Re: [T5.3] How to stop ZoneRefresh mixins

2012-01-11 Thread Yohan Yudanara
Thanks for your suggestion. But I'm looking to stop periodical refresh after some condition is met. I've file a JIRA about it. On Thu, Jan 12, 2012 at 12:33 PM, Lenny Primak wrote: > If you are looking to refresh just once, there is a way to do that using > the flow logix library. > http://code.g

Re: [T5.3] How to stop ZoneRefresh mixins

2012-01-11 Thread Yohan Yudanara
Thank you for your respond. I've submit "new feature" ticket on https://issues.apache.org/jira/browse/TAP5-1819 Thanks in advance... Best regards, Yohan Yudanara On Thu, Jan 12, 2012 at 12:24 PM, Taha Hafeez Siddiqi < tawus.tapes...@gmail.com> wrote: > Hi > > Please file a jira. > > regards >

Re: [T5.3] How to stop ZoneRefresh mixins

2012-01-11 Thread Lenny Primak
If you are looking to refresh just once, there is a way to do that using the flow logix library. http://code.google.com/p/flowlogix/wiki/TLPeriodicUpdater On Jan 12, 2012, at 12:13 AM, Yohan Yudanara wrote: > Hi.. > > I'm trying to use Tapestry 5.3 new feature: ZoneRefresh mixins to auto > up

Re: [T5.3] How to stop ZoneRefresh mixins

2012-01-11 Thread Taha Hafeez Siddiqi
Hi Please file a jira. regards Taha On Jan 12, 2012, at 10:43 AM, Yohan Yudanara wrote: > Hi.. > > I'm trying to use Tapestry 5.3 new feature: ZoneRefresh mixins to auto > update zone periodically. > I have a question: How to stop the refresh? > > Is it always infinite periodical refresh? >

[T5.3] How to stop ZoneRefresh mixins

2012-01-11 Thread Yohan Yudanara
Hi.. I'm trying to use Tapestry 5.3 new feature: ZoneRefresh mixins to auto update zone periodically. I have a question: How to stop the refresh? Is it always infinite periodical refresh? Thanks in advance

tapestry-resteasy 0.3.0 snapshot stable enough?

2012-01-11 Thread Yohan Yudanara
Hi, When does tapestry-resteasy 0.3.0 will be released? Is it stable enough to use it? I want to upgrade because I need to use resteasy-jaxrs-2.3.0.GA, instead of resteasy-jaxrs-2.0.1.GA Thank you...

Re: @CommitAfter Problem?

2012-01-11 Thread Jochen Frey
Thanks for the quick response, Taha! On Jan 11, 2012, at 6:24 PM, Taha Hafeez Siddiqi wrote: > Hi > > @CommitAfter should be on the service interface as that is the one being > advised > > regards > Taha > > On Jan 12, 2012, at 7:50 AM, Jochen Frey wrote: > >> Hi! >> >> I am trying to creat

Re: @CommitAfter Problem?

2012-01-11 Thread Jochen Frey
Turns out I need to annotate the method in the ***INTERFACE*** not the implementing class. public interface DevelopmentDBStartupService { /** * Basic database initialization for development. Confirm schema version and load basic test data. */ @CommitAfter public boolean i

Re: @CommitAfter Problem?

2012-01-11 Thread Taha Hafeez Siddiqi
Hi @CommitAfter should be on the service interface as that is the one being advised regards Taha On Jan 12, 2012, at 7:50 AM, Jochen Frey wrote: > Hi! > > I am trying to create a startup service that will initialize a database for > me. I'm on Tapestry 5.3.1 and I am using tapestry-hibernate

@CommitAfter Problem?

2012-01-11 Thread Jochen Frey
Hi! I am trying to create a startup service that will initialize a database for me. I'm on Tapestry 5.3.1 and I am using tapestry-hibernate. All the evidence I've been able to find suggests that @CommitAfter isn't executing a commit. Transactions in components that write to the DB after init

Re: [ANN] JumpStart upgraded to Tapestry 5.3.1

2012-01-11 Thread Yohan Yudanara
Thanks a lot for updating jumpstart to Tapestry 5.3.1. Jumpstart is great. Maybe in the next update, you'll be willing to add sample code about using T 5.3.1 Alerts component. On Tue, Jan 3, 2012 at 4:29 AM, Chris Mylonas wrote: > Thanks Geoff for keeping jumpstart up to date, it's a fantasti

Re: Error override DefaultValidationDecorator on Upgrading 5.2.6 to 5.3.1

2012-01-11 Thread Yohan Yudanara
Yup, I'm still waiting for Igor's book. I'm sure when your blog becomes available, that will be great complement to Igor's book :) On Thu, Jan 12, 2012 at 12:00 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > > I wish I had the opportunity. Meanwhile, I'm sure Igor's book will be

Re: Error override DefaultValidationDecorator on Upgrading 5.2.6 to 5.3.1

2012-01-11 Thread Yohan Yudanara
Sorry, my previous email contains wrong copy-paste :). I want to correct this, in case someone looking solution for the same problem :) To make overriding DefaultValidationDecorator works on Tapestry 5.3.1, I'm replacing: configuration.override("DefaultValidationDecorator", validationDecorato

Re: Mixin trying to use an enum

2012-01-11 Thread Thiago H. de Paula Figueiredo
On Wed, 11 Jan 2012 19:02:41 -0200, Travis Romney wrote: org.apache.tapestry5.ioc.internal.OperationException: Base class java.lang.Enum (super class of inpowered.common.tap5.base.RenderPart) is not in a controlled package and is therefore not valid. You should try moving the class to package

Mixin trying to use an enum

2012-01-11 Thread Travis Romney
I have been trying to upgrade from tapestry 5.2.6 to 5.3.1, and I am experiencing a very frustrating issue. I have a mixin which takes an enum as a parameter, and I am getting the following error: org.apache.tapestry5.ioc.internal.OperationException: Base class java.lang.Enum (super class of inpo

Solved: Re: Pass java String variable into addscript jquery method.

2012-01-11 Thread George Christman
I seemed to solve this on my own with the following code. String test = "test"; javaScriptSupport.addScript("requiredFields(\"%s\");", test); -- View this message in context: http://tapestry.1045711.n5.nabble.com/Pass-java-String-variable-into-addscript-jquery-method-tp5137957p51

Pass java String variable into addscript jquery method.

2012-01-11 Thread George Christman
Hello, I'm looking to pass a Java string variable into my javaScriptSupport.addScript method. I'm using the tapestry jquery library. Below is a sample of what I'm looking to do, however this does not function. void afterRender() { String test = "test"; javaScriptSupport.addS

Re: [5.2] how to read the 'for' attribute of a t:label in a mixin ?

2012-01-11 Thread Robert Zeigler
Surprised that @BindParameter doesn't work for you, since that's what it's supposed to do: gives mixins access to the component's formal parameters. Can you demonstrate how you've used @BindParameter? Robert On Jan 11, 2012, at 1/115:41 AM , ffred wrote: > Hello, > I'm trying to develop a mixi

Re: Error override DefaultValidationDecorator on Upgrading 5.2.6 to 5.3.1

2012-01-11 Thread Thiago H. de Paula Figueiredo
On Wed, 11 Jan 2012 12:18:22 -0200, Yohan Yudanara wrote: Thanks a lot, Mr. Thiago Hi! I've checked on TapestryModule and I've found out that DefaultValidationDecorator becomes "ValidationDecorator". So, now I'm replacing: configuration.override("DefaultValidationDecorator", valida

Re: [5.2] how to read the 'for' attribute of a t:label in a mixin ?

2012-01-11 Thread Lance Java
I have just looked at the source code for the Label component and it seems that the "for" parameter is formal so the informalParameter stuff that I was pointing you towards will not work. The parameter is declared as follows: @Parameter(name="for",...) private org.apache.tapestry5.Field field; P

Re: [5.2] how to read the 'for' attribute of a t:label in a mixin ?

2012-01-11 Thread Lance Java
Hmm... perhaps you have the Mixin's ComponentResources instead of the label's ComponentResources. How about @Inject ComponentResources resources; String for = resources.getContainerResources().getInformalParameter("for", String.class); On Wednesday, 11 January 2012, Lance Java wrote: > @Injec

Re: [5.2] how to read the 'for' attribute of a t:label in a mixin ?

2012-01-11 Thread ffred
Thanks for your help but i'm afraid it doesn't work : myFor = resources.getInformalParameter("for",String.class) ; => myFor is null -- View this message in context: http://tapestry.1045711.n5.nabble.com/5-2-how-to-read-the-for-attribute-of-a-t-label-in-a-mixin-tp5136617p5137126

Re: Error override DefaultValidationDecorator on Upgrading 5.2.6 to 5.3.1

2012-01-11 Thread Yohan Yudanara
Thanks a lot, Mr. Thiago I've checked on TapestryModule and I've found out that DefaultValidationDecorator becomes "ValidationDecorator". So, now I'm replacing: configuration.override("DefaultValidationDecorator", validationDecorator); with configuration.add("ValidationDecorator", de

Re: [5.2] how to read the 'for' attribute of a t:label in a mixin ?

2012-01-11 Thread Lance Java
@Inject ComponentResources and call getInformalParameter(String name, Class type) Cheers, Lance. On Wednesday, 11 January 2012, ffred wrote: > Hello, > I'm trying to develop a mixin for t:label component in which i need to get > the value of the 'for' attribute. > I currently find no way of doin

Re: [T5.3 beta 2] Using Tapestry-Spring-Security with 5.3?

2012-01-11 Thread antalk
Hi all, I'm in the process of upgrading our webapps to Tap 5.3.x and we use this library for our authentication process. I'm happy to announce that i've updated the 3.0.0 trunk of tapestry-spring-security to work with Tapestry 5.3.x. Now all i need is a repository where i can place the source cod

Re: Unable to render exceptions thrown in AppModule

2012-01-11 Thread Igor Drobiazko
I experienced this exception once and it took me a while to find the cause. Some of the junior team members ignored svn merge conflicts in a css file and committed something like this: <<< .mine Bla === Bla bla >>> .r5338 This caused a NPE when the css file was compressed because the

Re: Error override DefaultValidationDecorator on Upgrading 5.2.6 to 5.3.1

2012-01-11 Thread Thiago H. de Paula Figueiredo
On Wed, 11 Jan 2012 08:09:59 -0200, Yohan Yudanara wrote: It works great on Tapestry 5.2.6. But when I'm upgrading to Tapestry 5.3.1. I've got this exception when trying to open page: "Override for object 'DefaultValidationDecorator' is invalid as it does not match an existing object." I

Re: Event propagation

2012-01-11 Thread Thiago H. de Paula Figueiredo
On Tue, 10 Jan 2012 21:23:03 -0200, bhorvat wrote: I have a component Header and in there I have a menu. What I want is that on the click in that menu I refresh two ajax zones one in the header (the ajax zone in which is the menu) and the other which is in the main page. How can I best p

Re: Error override DefaultValidationDecorator on Upgrading 5.2.6 to 5.3.1

2012-01-11 Thread Yohan Yudanara
I've solved the problem by replacing this line on AppModule.java: configuration.override("DefaultValidationDecorator", validationDecorator); with this: configuration.add("myValidationDelegate", validationDecorator, "after:DefaultValidationDecorator"); Does anyone have explanation

[5.2] how to read the 'for' attribute of a t:label in a mixin ?

2012-01-11 Thread ffred
Hello, I'm trying to develop a mixin for t:label component in which i need to get the value of the 'for' attribute. I currently find no way of doing this ! Tried @Parameter, @BindParameter in many ways with no success at all. Is there any way of doing this ? Thanks. Fred -- View this message i

Upgrading Tapestry version from 5.0.18 to 5.2.5

2012-01-11 Thread ManuPK
I have documented the issues and its resolutions that I have faced during our recent up-gradation of tapestry. See http://www.jyops.blogspot.com/2011/12/upgrading-tapestry-version-from-5018-to.html here for more details. - Thanks, Manu PK -- View this message in context: http://tapestry.104

Re: Unable to render exceptions thrown in AppModule

2012-01-11 Thread Stephan Windmüller
Am 10.01.2012 17:22, schrieb Howard Lewis Ship: >> In the AppModule class we defined a custom component transaction >> filter. When this filter throws an exception, it is not rendered with >> the exception report page, instead we are getting this stacktrace: > Order counts; your filter needs to b

Re: Error override DefaultValidationDecorator on Upgrading 5.2.6 to 5.3.1

2012-01-11 Thread Yohan Yudanara
Sorry.. I want to bump up this question :) I'm afraid Tapestry Gurus in this mailing list is missed to read my question, because I haven't got any clue for this 2 days about this problem. I'm overriding DefaultValidationDecorator using technique mentions by Mr. Thiago on http://tapestry.1045711.n5