Re: Name of application module class too complicated?

2010-03-10 Thread Ulrich Stärk
I agree and I favor Josh's suggestion. I don't agree with Howard that it's making things more complicated. Just in code but that's none of the users' business. We could just have this fallback but only document the new behaviour. Uli On 11.03.2010 08:17, Igor Drobiazko wrote: A fixed name lik

Re: Name of application module class too complicated?

2010-03-10 Thread Kalle Korhonen
Agree with Igor. Ok, so it might trip up a few new users, but at least it fails fast and the reason is very understandable. Why remove additional flexibility that is already there. The simplest solution is to emphasize this in the documentation with bold letters and be done with it. Kalle On Wed

Re: Name of application module class too complicated?

2010-03-10 Thread Igor Drobiazko
A fixed name like "AppModule" would have been a much better decision but it is just too late. We should *never* deprecate or remove any of the naming conventions. There are a lot of online articles and few books on T5 describing the convention. Just imagine a frustration of someone who just read an

closing a javascript window via a form that uses ajax/zone

2010-03-10 Thread Nathan Kopp
I have a page that uses ChenilleKit to pop up a window that contains a component. That component contains a form enclosed in a zone. The form get submitted under a variety of circumstances primarily for the purpose of storing the state and redrawing the form based on some option the user just sel

Re: Query regarding Tapestry Grid

2010-03-10 Thread Chris Mylonas
Hi, Could you just add a record to the List before it goes onto rendering? Are there hooks for that? - I'm only new to tapestry, just throwing an idea out there. Cheers Chris On Thu, Mar 11, 2010 at 4:35 PM, Jagadesh Paladugula < jagadeshpaladug...@gmail.com> wrote: > Hi Christophe Cordenie

Re: Query regarding Tapestry Grid

2010-03-10 Thread Jagadesh Paladugula
Hi Christophe Cordenier, If I use empty parameter, the default grid implementation renders the empty block(which does'nt have grid look and feel). But my use case is some thing like, generate the grid structure with a row which says "no data present". Please find the attachement for more clarity

Re: Name of application module class too complicated?

2010-03-10 Thread Howard Lewis Ship
On Wed, Mar 10, 2010 at 4:42 PM, Josh Canfield wrote: > I've always just used AppModule... > > How about: > look for Module > look for AppModule > Throw exception "can't find Module or AppModule" > That's making it more complicated, not less. > Josh > > On Wed, Mar 10, 2010 at 3:47 PM, Howard L

Re: [T5.1] t:hidden + id

2010-03-10 Thread Josh Canfield
> Should the Hidden component preserve the id? In my TML I have: Probably, but it doesn't. You can look at the source for Hidden and it's a very simple component. It doesn't output the id. You can try this: var form = $('contact'); var input = form['jumpToPage']; from http://www.prototypejs.or

Re: Name of application module class too complicated?

2010-03-10 Thread Josh Canfield
I've always just used AppModule... How about: look for Module look for AppModule Throw exception "can't find Module or AppModule" Josh On Wed, Mar 10, 2010 at 3:47 PM, Howard Lewis Ship wrote: > Seems like we keep hitting the error where people change web.xml, > rename their filter, and are con

Re: Name of application module class too complicated?

2010-03-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Mar 2010 21:05:22 -0300, Robert Hailey wrote: On Mar 10, 2010, at 5:47 PM, Howard Lewis Ship wrote: I think the way that T5 locates the module class from the filter name is over-engineered. I think it should just be fixed as "AppModule", in the services package, end of story. Th

Re: Name of application module class too complicated?

2010-03-10 Thread Howard Lewis Ship
On Wed, Mar 10, 2010 at 4:05 PM, Robert Hailey wrote: > > On Mar 10, 2010, at 5:47 PM, Howard Lewis Ship wrote: > >> Seems like we keep hitting the error where people change web.xml, >> rename their filter, and are confused that their AppModule is no >> longer loaded. > > That is precisely my issu

Re: Name of application module class too complicated?

2010-03-10 Thread Robert Hailey
On Mar 10, 2010, at 5:47 PM, Howard Lewis Ship wrote: Seems like we keep hitting the error where people change web.xml, rename their filter, and are confused that their AppModule is no longer loaded. That is precisely my issue! IT WORKS! Thanks. I think the way that T5 locates the module cl

Name of application module class too complicated?

2010-03-10 Thread Howard Lewis Ship
Seems like we keep hitting the error where people change web.xml, rename their filter, and are confused that their AppModule is no longer loaded. I think the way that T5 locates the module class from the filter name is over-engineered. I think it should just be fixed as "AppModule", in the servic

Re: Tapestry now silently ignores my AppModule class

2010-03-10 Thread Howard Lewis Ship
Did you modify web.xml? On Wed, Mar 10, 2010 at 3:42 PM, Robert Hailey wrote: > > Greetings all, > > I'm just now trying my hand at Tapestry, but have managed to mess something > up and get really confused... > > I started with the tutorial code, added a few pages, added hibernate > configuratio

Tapestry now silently ignores my AppModule class

2010-03-10 Thread Robert Hailey
Greetings all, I'm just now trying my hand at Tapestry, but have managed to mess something up and get really confused... I started with the tutorial code, added a few pages, added hibernate configuration, and started trying to make an login/authentication filter. I thought everything w

[T5.1] t:hidden + id

2010-03-10 Thread Michael Gentry
Hi everyone, Should the Hidden component preserve the id? In my TML I have: However, the generated HTML looks like: Makes it hard to use $('jumpToPage') in my JavaScript to set the value. :-) If I switch to: It works, but of course, that just feels wrong. Thoughts? Thanks in advance

Re: [5.2] Too many arguments in method signature in class

2010-03-10 Thread Joachim Van der Auwera
Howard Lewis Ship wrote: The limit hasn't change, and is enforced by Javassist and/or the JVM. However, 5.2 may be adding more constructor arguments than 5.1 to accomplish the same thing. I may need to think about restructuring this a bit (i.e., if most of what I pass in to the constructor are n

Re: [5.2] Too many arguments in method signature in class

2010-03-10 Thread Joachim Van der Auwera
Thiago H. de Paula Figueiredo wrote: On Wed, 10 Mar 2010 16:25:31 -0300, Joachim Van der Auwera wrote: I am assuming this is related to the page having a lot of persistent fields (over 100). 100 persistent fields? Are you sure this is a good idea? I am sure that it is not a good idea. This

Re: [5.2] Too many arguments in method signature in class

2010-03-10 Thread Howard Lewis Ship
The limit hasn't change, and is enforced by Javassist and/or the JVM. However, 5.2 may be adding more constructor arguments than 5.1 to accomplish the same thing. I may need to think about restructuring this a bit (i.e., if most of what I pass in to the constructor are now pretty uniform) ... for

Re: [5.2] Too many arguments in method signature in class

2010-03-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Mar 2010 16:25:31 -0300, Joachim Van der Auwera wrote: I am assuming this is related to the page having a lot of persistent fields (over 100). 100 persistent fields? Are you sure this is a good idea? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hiber

[5.2] Too many arguments in method signature in class

2010-03-10 Thread Joachim Van der Auwera
On a specific page (which has generated content), I get a "Too many arguments in method signature in class" exception when loading the page. I am assuming this is related to the page having a lot of persistent fields (over 100). Is there a limit on the number of allowed persistent fields in a

Re: Why does nesting break my Ajax?

2010-03-10 Thread Howard Lewis Ship
On Tue, Mar 9, 2010 at 12:43 PM, Pierce T. Wetter III wrote: > > On Mar 9, 2010, at 12:15 PM, Robert Zeigler wrote: > >> t:contnt is what you want. It's not a component, it is it's own xml tag. So, >> either: >> >> >> >>   >>    stuff you want in here >>   >> >> >> >> Or: >> >> >>   >>     >

Re: encountering Invalid length ... in LocalVariableTable error

2010-03-10 Thread Ben Dotte
Do you have multiple versions of javassist on your classpath? Take a look at this thread: http://old.nabble.com/-t5--upgrade-to-java-6-and-javassist-td25295834.html If you're trying to run on Google App Engine, take a look here: http://dmitrygusev.blogspot.com/2009/10/develope-java-applications-

Re: encountering Invalid length ... in LocalVariableTable error

2010-03-10 Thread Inge Solvoll
It might be because you have 1.6 as your java compile target. We use target 1.5, we get similar errors as you list here when using 1.6. On Wed, Mar 10, 2010 at 6:30 AM, N T R PHANI KUMAR wrote: > I am facing *Invalid length ... in LocalVariableTable* error for some of > the tapestry page java fil

Re: Query regarding Tapestry Grid

2010-03-10 Thread Christophe Cordenier
Hi Use empty parameter to customize the display when the list is empty http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html Regards, Christophe Cordenier. 2010/3/10 Jagadesh Paladugula > Hi Everyone, > > In Tapestry, Grid gets generated wh

Query regarding Tapestry Grid

2010-03-10 Thread Jagadesh Paladugula
Hi Everyone, In Tapestry, Grid gets generated when the "source" attribute of the grid returns a collection with length>0. When the length of the collection is 0, by default it generates some text content saying "*There is no data to display*". I want to change the above functionality in such a wa