Re: [T5.1.0.5] 'Tapestry' is undefined JavaScript error on form submit

2010-12-07 Thread Jonathan Barker
I have hit this before, and I don't have a definitive reason. But at least you are not alone. I have considered it may have something to do with the production setup where the Tomcat instance sits behind a proxy and uses the AJP connector, because I don't get it on my development system. On Tu

[ANNOUNCEMENT] tynamo-archetype 0.1.0 released!

2010-12-07 Thread Kalle Korhonen
What's that? Did the little Tynamo elf just leave an early Christmas gift for all the Tapestry people who have been so good boys and girls the whole year? Indeed, Tynamo is announcing one more module, tynamo-archetype 0.1.0 this year before focusing on our own wish list. It seems fitting that we re

Re: Order from the Page Names retrieved from ComponentClassResolver

2010-12-07 Thread Everton Agner
Thanks! ___ Everton Agner Ramos 2010/12/7 Thiago H. de Paula Figueiredo > On Tue, 07 Dec 2010 21:26:14 -0200, Everton Agner > wrote: > > So, the ordering is just A-Z ? >> > > Yes. > > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate

Re: Order from the Page Names retrieved from ComponentClassResolver

2010-12-07 Thread Thiago H. de Paula Figueiredo
On Tue, 07 Dec 2010 21:26:14 -0200, Everton Agner wrote: So, the ordering is just A-Z ? Yes. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.c

Re: Order from the Page Names retrieved from ComponentClassResolver

2010-12-07 Thread Everton Agner
So, the ordering is just A-Z ? ___ Everton Agner Ramos 2010/12/7 Thiago H. de Paula Figueiredo > On Tue, 07 Dec 2010 21:19:23 -0200, Everton Agner > wrote: > > I'm developing a generic auto-adapting Menu builder (that'll be open in >> googlecode also). I need to know the

Re: Order from the Page Names retrieved from ComponentClassResolver

2010-12-07 Thread Thiago H. de Paula Figueiredo
On Tue, 07 Dec 2010 21:19:23 -0200, Everton Agner wrote: I'm developing a generic auto-adapting Menu builder (that'll be open in googlecode also). I need to know the ordering because my algorithm to walk through the tree (it's levels) needs to start from the deeper ones (the leafs) to the

Re: Order from the Page Names retrieved from ComponentClassResolver

2010-12-07 Thread Everton Agner
I'm developing a generic auto-adapting Menu builder (that'll be open in googlecode also). I need to know the ordering because my algorithm to walk through the tree (it's levels) needs to start from the deeper ones (the leafs) to the first (the root). ___ Everton Agner Ramos

Re: Order from the Page Names retrieved from ComponentClassResolver

2010-12-07 Thread Thiago H. de Paula Figueiredo
On Tue, 07 Dec 2010 21:06:42 -0200, Everton Agner wrote: Hi friends, Hi, Everton I would like to know what is the ordering that ComponentClassResolver returns the list of Page Names via .getPageNames(). Why is that important to you? What's your scenario? I can't think of any . . . -

Re: T5: scripting

2010-12-07 Thread Angelo C.
Please do, that will be of great help! Thanks. Werner Keil wrote: > > I got some great results from the Java 6 Scripting JSR with Groovy as its > implementation in a T5 app. > > We used it mainly for templating, but if you prefer simple scripting, that > would also work. > > I may add some si

Order from the Page Names retrieved from ComponentClassResolver

2010-12-07 Thread Everton Agner
Hi friends, I would like to know what is the ordering that ComponentClassResolver returns the list of Page Names via .getPageNames(). Is it ordered by level? From the first one (first package under 'root.pages') to the deeper one? I'm pretty sure that's that, but I need to be certain. The JavaDo

Re: T5: scripting

2010-12-07 Thread Werner Keil
I got some great results from the Java 6 Scripting JSR with Groovy as its implementation in a T5 app. We used it mainly for templating, but if you prefer simple scripting, that would also work. I may add some simple snippets for those who wish to see. Werner On Fri, Dec 3, 2010 at 8:42 PM, Ange

Re: MultiZoneUpdate position param

2010-12-07 Thread raulmt
Thanks, Elin. The first mixin is exactly what I need. I did think about wraping a function in tapestry.js to alter the behaviour, but I didn't like it. But this mixin, at least, "alters the tapestry.js code" for the Zone with the mixin only. Still, altering the show function for a Zone could brea

Re: Best practice, converting a text field value

2010-12-07 Thread Paul Stanton
Kai, are you using 5.2? how did you configure your translators? On 7/12/2010 9:46 PM, Kai Weber wrote: Hi, the user provided input from a TextField/TextArea component should be cleaned from HTML tags. No validation is needed, the requirements are just "remove the HTML", display the result to th

Re: [T5.1.0.5] 'Tapestry' is undefined JavaScript error on form submit

2010-12-07 Thread Donny Nadolny
Combine scripts is an optimization that Tapestry can do where it combines all the javascript files in to one virtual file to minimize the number of HTTP requests that the browser has to do. As for your problem, you say you've included jQuery - are you setting no conflict mode on? http://api.jquery

Re: Hello,How can I add a dynamic value in URL,just like encode current locale

2010-12-07 Thread Everton Agner
Well, this wouldn't be 100% dynamic, but you could make a page for each value you wanna prepend, and consider the rest of it as Context values... So, the page would setup some app configurations (that the page would read to know what does it need to change) and redirect to the page (the context va

Re: Hello,How can I add a dynamic value in URL,just like encode current locale

2010-12-07 Thread Everton Agner
what's your scenario? just curious. ___ Everton Agner Ramos 2010/12/7 Zhou Jianquan > for example,I have a value "myvalue",I want add it to url like below: > - > http://www..com/en/myvalue/mypage >

Re: Hello,How can I add a dynamic value in URL,just like encode current locale

2010-12-07 Thread Mark
I think you want to look at the PageLink and the context parameter: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/PageLink.html You would pass mypage in as the context or the link. Does that do what you want? Mark On Tue, Dec 7, 2010 at 8:20 AM,

Hello,How can I add a dynamic value in URL,just like encode current locale

2010-12-07 Thread Zhou Jianquan
for example,I have a value "myvalue",I want add it to url like below: - http://www..com/en/myvalue/mypage

Re: Best practice, converting a text field value

2010-12-07 Thread Thiago H. de Paula Figueiredo
On Tue, 07 Dec 2010 08:46:13 -0200, Kai Weber wrote: Hi, Hi! the user provided input from a TextField/TextArea component should be cleaned from HTML tags. No validation is needed, the requirements are just "remove the HTML", display the result to the user. The first variant I tried is a T

Re: TDD with Tapestry 5.2 how to mock Logger and Messages

2010-12-07 Thread Inge Solvoll
You can mock services with Testify. On Mon, Dec 6, 2010 at 7:46 PM, Igor Drobiazko wrote: > I'm wondering why you want to define any expectations on Logger. However, > when using the PageTester you can't mock services as they are retrieved > form > the registry which is created from your modules.

Re: T5 portuguese message for "minimum-string-length"

2010-12-07 Thread Sergio Esteves
Sorry for the previous email, the correct message is: 'Tem de inserir pelo menos %d characteres para %s.' On 07-12-2010 12:14, Sergio Esteves wrote: Hi, The portuguese message for 'minimum-string-length' was defined here http://www.mail-archive.com/comm...@tapestry.apache.org/msg02541.html a

T5 portuguese message for "minimum-string-length"

2010-12-07 Thread Sergio Esteves
Hi, The portuguese message for 'minimum-string-length' was defined here http://www.mail-archive.com/comm...@tapestry.apache.org/msg02541.html as 'Tem de inserir pelo meno %d characteres para %s.'. But there is an orthohraphic/**/error in that message, and it should be like 'Tem de inserir pelo

Re: Using FCKEditor in Tapestry 5

2010-12-07 Thread 9902468
If it doesn't work it is either a bug or misconfiguration. First of all, double check that the required dependencies can be found from your runtime class path. Then, observe the list of registered components that T5 displays during startup - is it listed there? -Ville -- View this message in co

Re: [T5.1.0.5] 'Tapestry' is undefined JavaScript error on form submit

2010-12-07 Thread rajesh
Hi, I am getting "Tapestry is undefined" error on form submit. I have tried both Firefox 3.6.12 and IE 8 (Version: 8.0.6001.18702). On both the browsers, I am facing the same error. Can someone please explain what switching off combine scripts is? Here are the tapestry/jquery packages that I

Best practice, converting a text field value

2010-12-07 Thread Kai Weber
Hi, the user provided input from a TextField/TextArea component should be cleaned from HTML tags. No validation is needed, the requirements are just "remove the HTML", display the result to the user. The first variant I tried is a Translator. This solution works but because there are other possib