Re: [ANNOUNCEMENT] tapestry-resteasy 0.2.1 released!

2012-02-03 Thread Alejandro Scandroli
Hi antalk You should be able to use only one @Path annotation in your class. As long as you provide one default @GET or @POST method you should be fine See: http://svn.codehaus.org/tynamo/trunk/tapestry-resteasy/src/test/java/org/tynamo/resteasy/rest/EchoResource.java Saludos. Alejandro. On Fri,

Passing the clientId from one embedded component to another?

2012-02-03 Thread Jochen Frey
Hi! I am trying to pass the clientId of one component that is contained within a page (or component) into another component like so: abc In order to do this, the corresponding java class needs to have something like this: @InjectComp

Re: Same IoC module in multiple threads with different configurations

2012-02-03 Thread Howard Lewis Ship
Your question is a bit general. There are places in my applications, and in the framework, where the same code operates with different configurations. Remember that in Tapestry IoC, you can instantiate ordinary objects, not just services. You can let Tapestry do it for you, and it will take care

Re: problems getting rid of the JS confirm box from confirm mixin

2012-02-03 Thread hese
Solution: // stop the event e.stop(); //store the href so I can post it myself if yes is clicked var href = jQuery('#'+this.elementId).attr("href"); // store the zone so we can update that later //zone id is passed into the mixin as a param var zoneManager = Tapestry.findZoneManagerForZone(

Re: Grid cast class exception

2012-02-03 Thread Thiago H. de Paula Figueiredo
Try providing the BeanModel explicitly using the Grid's model parameter and BeanModelSource. On Fri, 03 Feb 2012 14:44:21 -0200, Szemere Szemere wrote: I'm getting a strange cast class exception with the grid component, along the lines of: Render queue error in BeginRender[admin/WidgetLis

Re: Same IoC module in multiple threads with different configurations

2012-02-03 Thread Thiago H. de Paula Figueiredo
On Fri, 03 Feb 2012 14:24:35 -0200, Erik Fäßler wrote: I thought of the component to become a IoC module. But I fear, modules are kind of static, too - I can't have different "instances" of a module, can I?Point is, all configuration parameters defined in a module are global as far as I

Grid cast class exception

2012-02-03 Thread Szemere Szemere
I'm getting a strange cast class exception with the grid component, along the lines of: Render queue error in BeginRender[admin/WidgetList:grid.rows.gridcell]: com.companyname.data.Widget cannot be cast to com.companyname.data.Widget_$$_javassist_0 The code is simple and clean and I don't get it e

Re: [5.3] JSONArray Error while submitting forms

2012-02-03 Thread Michael Gentry
Hi Peter, When you upgrade your T5 version (say, 5.3.1 to 5.3.2), you need to update your application version, too, because T5 includes your application version in the asset path, but does NOT include the T5 version, which can lead to confusion. If your AppModule.java has: public static void con

Same IoC module in multiple threads with different configurations

2012-02-03 Thread Erik Fäßler
Hello all, I'm still planning to reformulate an existing component, which has grown quite large, into Tapestry IoC (no webapp). One reason for the re-writing of this component is the following problem: The component features a static configuration class which is initialized once at startup. The

Re: OptionGroupModel samples?

2012-02-03 Thread Julien Martin
Hello Thiago! Thanks. Yes I did manage to use the optgroup/OptionGroupModel as follows: *@Property* *private SelectModel availabilitiesSelectModel;* *private List optionGroupModels;* *optionGroupModels = new ArrayList();* *availabilitiesSelectModel =new SelectModelImpl(optionGroupModels.toArray(ne

Re: OptionGroupModel samples?

2012-02-03 Thread Thiago H. de Paula Figueiredo
On Fri, 03 Feb 2012 12:04:54 -0200, Julien Martin wrote: Hello, Hi! I am still exploring the Tapestry components and I noticed the OptionGroupModel interface in the Tapestry API. I was not able to find any code samples using the OptionGroupModel interface. Could anyone please direct me to s

Re: Mixins and SupportsInformalParameters bug?

2012-02-03 Thread Barry Books
I know you have to render them and the in this case the pagelink component does that. The problem is the pagelink does not receive any informal parameters because they all go to the mixin. What I was expecting the parameters in the default namespace would go the component and parameters in the ip

Re: [5.3] JSONArray Error while submitting forms

2012-02-03 Thread Peter Stavrinides
We are seeing this error too in production, not sure how to solve it though, clearing the cache is only a solution in development. Cheers, Peter - Original Message - From: "Muhammad Gelbana" To: "Tapestry users" Sent: Tuesday, 10 January, 2012 9:11:23 PM Subject: Re: [5.3] JSONArray

Re: Mixins and SupportsInformalParameters bug?

2012-02-03 Thread Lance Java
I'm prettty sure that @SupportsInformalParameters is just a marker so that informal parameters are available serverside. In order to write the informal parameters to the html you must @Inject ComponentResources and call renderInformalParameters(MarkupWriter) On Friday, 3 February 2012, Barry Book

OptionGroupModel samples?

2012-02-03 Thread Julien Martin
Hello, I am still exploring the Tapestry components and I noticed the OptionGroupModel interface in the Tapestry API. I was not able to find any code samples using the OptionGroupModel interface. Could anyone please direct me to some code sample using the OptionGroupModel interface please? Regards,

Re: keep username on failed logins with tapestry-spring-security

2012-02-03 Thread antalk
Aah yes, Excellent, so it seems at least three people have picked up this library... oh well. The way of retrieving the user name is indeed a good one, i use it also but to retrieve the error code from spring, eg: AuthenticationException authErr = (AuthenticationException)httpServletRequest.getSe

Mixins and SupportsInformalParameters bug?

2012-02-03 Thread Barry Books
I added @SupportInformalParameters to a mixin and it does not do what I would expect. According to the docs If the component and a mixin both define a parameter with the same name, then the component wins: the component's parameter will be bound, and the mixin's parameter will be unbound. After

Re: [ANNOUNCEMENT] tapestry-resteasy 0.2.1 released!

2012-02-03 Thread antalk
I got it working now: Had to annotate both my class AND the method with a @Path annotation. -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANNOUNCEMENT-tapestry-resteasy-0-2-1-released-tp3291865p5453476.html Sent from the Tapestry - User mailing list archive at Nabble.co

Re: keep username on failed logins with tapestry-spring-security

2012-02-03 Thread Beat Durrer
The Maven plugin in Eclipse helped me :) The original tss module seems to be quite inactive, but several guys continued to work on github (lobbin, llyk, anttalk). I saw your work anttalk, thanks for continuing the work. However, I used the one that my maven offered me: https://github.com/lltyk/tap

Re: [ANNOUNCEMENT] tapestry-resteasy 0.2.1 released!

2012-02-03 Thread antalk
Oh. i am mistaken, The @Provider annotation is not needed. However the annotated interface is not picked up by the 'ResourceMethodRegistry' because it is an interface.. The following piece of code: protected void processMethod(ResourceFactory ref, String base, Class clazz, Method method) {

Fwd: How to add component to all pages

2012-02-03 Thread Lance Java
If you use a layout component for all of your pages you could simply add the to the layout http://tapestry.apache.org/layout-component.html -- Forwarded message -- From: Yohan Yudanara Date: Friday, 3 February 2012 Subject: How to add component to all pages To: Tapestry users

How to add component to all pages

2012-02-03 Thread Yohan Yudanara
Hi, I want to add T5.3 component to all of my pages. Is there any other way to do this, instead of copy pasting to all pages? >From Taha's guide, I know that ComponentClassTransformWorker2 can be used to automatically add mixins. Is it possible to do something like that to add component to all

Re: keep username on failed logins with tapestry-spring-security

2012-02-03 Thread antalk
Yes, I'm interrested to because it could not find a version of this module being compatible with Tapestry 5.3.x. Therefor i've build my own version which can be found at : https://github.com/antalk/Tapestry-Spring-Security This is version 4.0.0 and fully works with Tapestry 5.3.x -- View this

Re: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-03 Thread Chris Mylonas
Hi Gavin, Great project thus far!! A tool like that within eclipse will certainly get more people looking at tapestry as a framework to use. I initially thought Dmitry's comment was a little harsh and that he was being a bit fussy requesting the installation through Help->Install New Software

Re: [ANNOUNCEMENT] tapestry-resteasy 0.2.1 released!

2012-02-03 Thread antalk
Hi Tynamo Team, I just discovered a missing piece of documentation for the live-reloading to work: In order to be able to contribute your interface to the javax.ws.rs.core.Application, you have to annotate it with at least @Provider. (see: line 146 in ResteasyRequestFilter.java) } else if (obj.

Re: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-03 Thread Gavin Lei
Yeah, this is really a problem, if we want to do so, TapestryTools must keep pace with Eclipse WTP's version. I will try to contact with Eclipse WTP community and try to merge TapestryTools into WTP, if fail, i will find a way to optimize its structure and reduce its version depend things to simpli

Re: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-03 Thread Dmitry Gusev
Hi, Gavin! Thats a big step forward. But, still, I think that a huge limitation of TapestryTools is that it can't be plugged-into existing Eclipse Java EE installation through the Help -> Install New Software I wish this will be resolved in future releases. 2012/2/3 Gavin Lei > Hi all, > >