Re: Non-default custom String-Translator?

2009-01-30 Thread Howard Lewis Ship
Sorry, I mean @Translate("lowercase") On Fri, Jan 30, 2009 at 2:30 PM, Onno Scheffers wrote: >> >> How about defining a "lowercase" translator, and using >> @Validate("lowercase") on those fields? > > > > Hi Howard, > > thanks for your response. > > I didn't know it was possible to use translator

Re: Switch from Prototype to jQuery?

2009-01-30 Thread Angelo Chen
This will be a good step, like it or not jQuery is one of the most popular js library out there, in fact I have seen jobs asking for jQuery experience, I have used jQuery with T5 extensively, and the switch from Prototype to jQuery will be a dream come true:):clap:, any time table the jQuery enabl

Re: Switch from Prototype to jQuery?

2009-01-30 Thread Davor Miku
Just a thought : Wouldn't be the best solution to add some sort of wrapper for Prototype written in jQuery. That way Tapestry will be backward compatible, and have jQuery enabled.(Prototype functions would be executed with jQuery). I'm not an expert for JavaScript so I'm not sure if this would b

Re: Switch from Prototype to jQuery?

2009-01-30 Thread Howard Lewis Ship
That last concept, JavaScript consolidation, is on the drawing board. It will work especially well in the concert with the existing GZIP compression. There's just a few things to work out, such as how to properly handle components dynamically adding JavaScript libraries. On Fri, Jan 30, 2009 at 2:

Re: [T5] metrics about tapestry-5 codebase quality

2009-01-30 Thread Howard Lewis Ship
Thanks. Having your dirty laundry out for all to see is very motivating. To be honest, one area of T5 that isn't so stirling is package layout, but that horse has left the barn. On Fri, Jan 30, 2009 at 2:40 PM, Onno Scheffers wrote: > Wow, this looks very good. > > My compliments to the Howard

Re: [T5] metrics about tapestry-5 codebase quality

2009-01-30 Thread Onno Scheffers
Wow, this looks very good. My compliments to the Howard and the rest of the team. Every time I look an the Tapestry source code for something, I am impressed by how clean the code looks. Many commercial projects could learn a thing or two from Tapestry :o) regards, Onno On Fri, Jan 30, 2009 a

Re: Non-default custom String-Translator?

2009-01-30 Thread Onno Scheffers
> > How about defining a "lowercase" translator, and using > @Validate("lowercase") on those fields? Hi Howard, thanks for your response. I didn't know it was possible to use translator-names as arguments to the Validate annotation. Do I still have to contribute the translator in some way or i

Re: Switch from Prototype to jQuery?

2009-01-30 Thread Carl Crowder
I really like jQuery and I use it all the time in various Tapestry apps. But it's trivial to use it with Tapestry due as you can just do $j = jQuery.noConflict() and use it as $j instead. Most jQuery libraries use "jQuery" instead of "$" so there are no conflicts. Although I prefer jQuery, I c

Re: Switch from Prototype to jQuery?

2009-01-30 Thread Onno Scheffers
On Fri, Jan 30, 2009 at 5:32 PM, Chris Lewis wrote: > that it is less than ideal for building front end widgets That's not true. As a matter of fact, jQuery is currently one of the most popular Javascript libraries for developing frontend widgets and I see very cool widgets popping up all over

Re: Chenille Kit - Gplotter

2009-01-30 Thread Juan E. Maya
Thanks a lot Sven :) On Fri, Jan 30, 2009 at 8:22 PM, Sven Homburg wrote: > bug fixed in svn branches/1.0 > > 2009/1/30 Juan E. Maya > > > This was happening because the js file "Chenillekit.js" is not been > > included > > by the GPlotter compoment. > > To fix it i had to add the follwowinig to

Re: Chenille Kit - Gplotter

2009-01-30 Thread Sven Homburg
bug fixed in svn branches/1.0 2009/1/30 Juan E. Maya > This was happening because the js file "Chenillekit.js" is not been > included > by the GPlotter compoment. > To fix it i had to add the follwowinig to my class > @IncludeJavaScriptLibrary(value = > {"classpath:org/chenillekit/tapestry/core/

Re: Chenille Kit - Gplotter

2009-01-30 Thread Juan E. Maya
This was happening because the js file "Chenillekit.js" is not been included by the GPlotter compoment. To fix it i had to add the follwowinig to my class @IncludeJavaScriptLibrary(value = {"classpath:org/chenillekit/tapestry/core/Chenillekit.js"}) I am still not sure if i am missing something or

Re: Non-default custom String-Translator?

2009-01-30 Thread Howard Lewis Ship
How about defining a "lowercase" translator, and using @Validate("lowercase") on those fields? On Sun, Jan 25, 2009 at 6:03 PM, Onno Scheffers wrote: > Is there a way I can setup a custom String validator that is only added to > fields I explicitly set the translator for? > > I want to make sure

Re: multiple IoC Registries

2009-01-30 Thread Howard Lewis Ship
Occasionally, I'll have a data object that stores a reference to service. Here's an example: public class ActiveUser extends BaseOptimizedSessionPersistedObject { private long userId; private final Session session; public ActiveUser(Session session) { this.session = sess

Re: Switch from Prototype to jQuery?

2009-01-30 Thread Francois Armand
Fernando Padilla wrote: We use YUI ourselves. What ever happened to the concept of pluggable javascript implementations? So people can choose what underlying javascript system to use? I believe that this is the core problem : whatever the JS framework chosen, there will be happy/unhappy peo

Chenille Kit - Gplotter

2009-01-30 Thread Juan E. Maya
Hello, i am trying to use the gplotter component from Chenille Kit Framework, but i am getting the following error: Ck is not defined http://localhost:8080/profilr/assets/org/chenillekit/tapestry/core/components/GPlotter.js Line 15 am i missing something? Also another question, would it be possib

Re: Switch from Prototype to jQuery?

2009-01-30 Thread Fernando Padilla
We use YUI ourselves. What ever happened to the concept of pluggable javascript implementations? So people can choose what underlying javascript system to use? Chris Lewis wrote: I have a great deal of experience with prototype, and not so much with jQuery. From my brush with it, it seems to

Re: Dynamic Variables in Asset declarations

2009-01-30 Thread Dave Greggory
Yep, I'm trying to have a dynamic URL for my CSS (not dynamic content). I'll checkout chenillekit, thanks for the suggestion. - Original Message From: Sven Homburg To: Tapestry users Sent: Friday, January 30, 2009 7:00:22 AM Subject: Re: Dynamic Variables in Asset declarations The U

[T5] metrics about tapestry-5 codebase quality

2009-01-30 Thread manuel aldana
This confirms my gut feelings that tapestry framework itself is not only good but also its codebase :) http://nemo.sonar.codehaus.org/project/index/org.apache.tapestry:tapestry-project -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de --

Re: multiple IoC Registries

2009-01-30 Thread Dude.Checkitout
Thanks Howard. We have few Tapestry applications running in the same server. (and planning to have more) I am assuming it is going to cause issues based on your reply. What is the best way to avoid this issue? Just curious, at what point does a service(/proxy) gets serialized/de-serialized? I am

Re: Switch from Prototype to jQuery?

2009-01-30 Thread Chris Lewis
I have a great deal of experience with prototype, and not so much with jQuery. From my brush with it, it seems to me that it is less than ideal for building front end widgets, as it's primary focus is more on easily navigating the DOM and affecting elements in various, insulated ways. It doesn'

Re: multiple IoC Registries

2009-01-30 Thread Howard Lewis Ship
If you have only one Tapestry application, you can safely ignore this warning. It's related to the code that allows services to be serialized (that is, the service proxies are serializable even though the services themselves are not). When a service is de-serialized, there's a static variable used

Switch from Prototype to jQuery?

2009-01-30 Thread Howard Lewis Ship
There's been a lot of discussion on blogs lately about the merits of Prototype vs. jQuery. http://tapestryjava.blogspot.com/2009/01/comparing-prototype-and-jquery.html I've added an issue to JIRA to discuss this. https://issues.apache.org/jira/browse/TAP5-486 Basically, a rewrite of tapestry.js

multiple IoC Registries

2009-01-30 Thread Dude.Checkitout
Getting the following error when refreshing/redeploying the web application in JBoss. "[org.apache.tapestry5.ioc.internal.SerializationSupport] Setting a new service proxy provider when there's already an existing provider. This may indicate that you have multiple IoC Registries." For maintenance

Re: Coercion error [solved]

2009-01-30 Thread Ulrich Stärk
I was using a pre-made template and the css include was hardcoded there. When the browser tried to get the css, Tapestry misunderstood that as a page activation context and tried to coerce it which failed. Uli Ulrich Stärk schrieb: Hi, with 5.1.0.0-SNAPSHOT I'm getting this really weird coer

Re: Dynamic Variables in Asset declarations

2009-01-30 Thread Sven Homburg
The URIAssetFactory is located in the chenillekit-core module 2009/1/30 Massimo Lusetti > On Fri, Jan 30, 2009 at 12:19 PM, Thiago H. de Paula Figueiredo > wrote: > > > I think Dave is trying to have an asset URL defined dinamically, not > > its content . . . For dynamic content, I would use St

Re: Dynamic Variables in Asset declarations

2009-01-30 Thread Massimo Lusetti
On Fri, Jan 30, 2009 at 12:19 PM, Thiago H. de Paula Figueiredo wrote: > I think Dave is trying to have an asset URL defined dinamically, not > its content . . . For dynamic content, I would use StreamResponse too. > ;) Look in the chenillkit project, there's an implementation of AssetFactory ba

Re: Dynamic Variables in Asset declarations

2009-01-30 Thread Thiago H. de Paula Figueiredo
On Fri, Jan 30, 2009 at 9:10 AM, Massimo Lusetti wrote: > On Fri, Jan 30, 2009 at 12:02 PM, Thiago H. de Paula Figueiredo > wrote: > >> Couldn't this be easily implemented just using AssetFactory? > > I'm not so sure about the easily part of the implementation, I've > found more easier to impleme

Re: Dynamic Variables in Asset declarations

2009-01-30 Thread Massimo Lusetti
On Fri, Jan 30, 2009 at 12:02 PM, Thiago H. de Paula Figueiredo wrote: > Couldn't this be easily implemented just using AssetFactory? I'm not so sure about the easily part of the implementation, I've found more easier to implement using the StreamResponse approach as I've envisioned the whole As

Re: Dynamic Variables in Asset declarations

2009-01-30 Thread Thiago H. de Paula Figueiredo
Couldn't this be easily implemented just using AssetFactory? On Fri, Jan 30, 2009 at 6:39 AM, Massimo Lusetti wrote: > On Thu, Jan 29, 2009 at 8:34 PM, Dave Greggory wrote: > >> Hello, >> >> I'm trying to declare an asset but with a dynamic variable used for >> declaration. I need a dynamic var

Coercion error

2009-01-30 Thread Ulrich Stärk
Hi, with 5.1.0.0-SNAPSHOT I'm getting this really weird coercion exception: Caused by: java.lang.IllegalArgumentException: Exception in method de.spielviel.mailadmin.pages.account.ListAccount.onActivate(de.spielviel.mailadmin.entities.MxDomain) (at ListAccount.java:50), parameter #1: Coercion

RE: T5: Problem with a loop in a form

2009-01-30 Thread Blower, Andy
I certainly could do it that way, but I expect there to be some markup go in around these elements so it's much easier for our UI design people to add it into the tml than have to ask us to change the Java. As I said it's not a problem I can't get around, but it doesn't seem right to me so eith

Re: Dynamic Variables in Asset declarations

2009-01-30 Thread Massimo Lusetti
On Thu, Jan 29, 2009 at 8:34 PM, Dave Greggory wrote: > Hello, > > I'm trying to declare an asset but with a dynamic variable used for > declaration. I need a dynamic variable (similar to an expansion in a tml) > because the css is selected based on some user selected parameters from the > req

Re: T5: timeout exception when using Grid - Solved, but query

2009-01-30 Thread tapestryphoto
Many thanks Ville. Quite obvious when one sees how to do it! p. Quoting Ville Virtanen : This is what we use, and it works well: @Retain private BeanModel model; { model = beanModelSource.createEditModel(Organization.class, messages); model.add("organizationType"