Re: Getting ServletContext inside service

2009-11-10 Thread P . Stavrinides
Hi Stefan, It is not clear to me exactly what you are trying to do, perhaps show some code or be more precise. Inside a service you can get hold of ServletContext using ApplicationGlobals, but for most things and for what you are trying to do, use Tapestry's Context service. I don't see how Con

Re: Pass params to pager of grid component

2009-11-10 Thread DH
It seems that Grid doesn't support 'context' parameter. But why don't you add the keyword to the page's activation context? DH http://www.gaonline.com.cn - Original Message - From: "Xuan Tran Le" To: "Tapestry users" Sent: Wednesday, November 11, 2009 12:45 PM Subject: Pass params to

Re: Construction of service 'InternalRequestGlobals' has failed due to recursion:

2009-11-10 Thread mraible
I was able to solve this by using Spring's AbstractTransactionalJUnit4SpringContextTests (to cache the applicationContext) and adding a new ModuleDef to PageTester. Unfortunately, SpringModuleDef seems to take ApplicationContext as a constructor argument in 5.0.18, but not in 5.1.05. @ContextConf

Pass params to pager of grid component

2009-11-10 Thread Xuan Tran Le
I have a problem with the pager of grid component. I want to pass some params to the pager link. For example, I have a page support searching. It contains a text field, a submit button, and a grid component. When I enter the value to the text and click on submit button, it show the result in the g

Re: [Tapestry Central] Next Steps for Tapestry

2009-11-10 Thread liigo
Kalle Korhonen: "By now, you probably have a fairly good idea how you could improve things and I'd hate to have the first book on Tapestry5 to already become outdated right away if you start on T5.2 only after releasing the book." Kalle Korhonen: "Yes, there are a few active committers but the com

Re: Construction of service 'InternalRequestGlobals' has failed due to recursion:

2009-11-10 Thread mraible
I tried changing to locator.proxy and direct instantiation, but no dice. For proxy(), I used: public static void contributeMasterObjectProvider(OrderedConfiguration configuration, ObjectLocator locator) { configuration.add("spring"

Re: Embed a generated image in a page with IE6

2009-11-10 Thread Angelo Chen
I followed that sample too, and works in IE7, Safari and Chrome. ellisonchiu wrote: > > I also test it in IE7, But it also does not work. > The wiki "Tapestry5HowToCreatePieChartsInAPage" sample: > http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage > http://wiki.apache.org/ta

Re: Embed a generated image in a page with IE6

2009-11-10 Thread ellisonchiu
I also test it in IE7, But it also does not work. The wiki "Tapestry5HowToCreatePieChartsInAPage" sample: http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage ellisonchiu wrote: > > I follow the wiki "Tapestry

Re: i18n overhead

2009-11-10 Thread Melidramo
Howard, thanks for the clarification. Would the upgrade from 5.0 to 5.1 bring any improvement in terms of speed or resource usage? Thanks, regards MD -- View this message in context: http://old.nabble.com/i18n-overhead-tp26252169p26294435.html Sent from the Tapestry - User mailing list arc

Re: Construction of service 'InternalRequestGlobals' has failed due to recursion:

2009-11-10 Thread Howard Lewis Ship
There will be a trace in the console of what Tapestry IoC was doing when it hit the issue. However, this looks like the culprit: public static void contributeMasterObjectProvider( OrderedConfiguration configuration, ObjectLocator locator) { configuration.add("spri

Re: Form.recordError not preventing from calling onSubmit form

2009-11-10 Thread João Pereira
That's it. Thank you. On Tue, Nov 10, 2009 at 11:33 PM, Piero Sartini wrote: > > I checked and is the line is being executed, but the process keep going > to > > the onSubmitRegistrationForm() and the new page "successPage" is > > rendered... > > onSubmit() is called whenever the form is submitt

Re: Form.recordError not preventing from calling onSubmit form

2009-11-10 Thread Piero Sartini
> I checked and is the line is being executed, but the process keep going to > the onSubmitRegistrationForm() and the new page "successPage" is > rendered... onSubmit() is called whenever the form is submitted. What you want to use is onSuccess(), this method is only called if the validation wa

Form.recordError not preventing from calling onSubmit form

2009-11-10 Thread Jonhy Pear
Hello, I'm trying to get around this for some time, so I decided to ask another newcomer question. I have a form in a page "resgistration" Registration.tml [Rest of the form] in my Registration.java I have: void onValidateForm() { if (!this.password.equals(this.confirmPassword)) { regis

Re: beaneditform question

2009-11-10 Thread Jonhy Pear
Hi, thanks. I managed to change the code and now it's working with a normal form component. On Tue, Nov 10, 2009 at 1:21 AM, DH wrote: > I never had this issue before. > I just test and everything works right, can you share the whole stack > trace? > > DH > > http://www.gaonline.com.cn > -

Construction of service 'InternalRequestGlobals' has failed due to recursion:

2009-11-10 Thread mraible
Hello all, I'm in the process of writing tests for AppFuse's Tapestry 5 integration and I've run into an interesting issue. When I use Hibernate or JPA as backends, my tests pass just fine. However, when I use iBATIS, they take forever and I get an OOM error and the following shows up in my logs:

Re: Complete Sample Tapestry Application

2009-11-10 Thread Jeffrey Hulten
While I am still figuring out the data side of things, I have a project on GitHub that is T5.1 based. http://github.com/jhulten/autoblog On Mon, Nov 9, 2009 at 1:13 PM, keykubat wrote: > > Hello There, > > More examples, functional tutorials please... > it is good news that the tutorials will c

Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Sven Homburg
I updated the project site at google to point the people to our new home at Codehaus I will delete the google project till end of this year with regards Sven Homburg Founder of the Chenille Kit Project http://www.chenillekit.org 2009/11/10 Pie

Re: "Object expected error" with prototype.js and IE 8

2009-11-10 Thread Juan E. Maya
The current versions of prototype used by tapestry doesn't work very well with IE8, u can replace it by yourself (search the list, for sure is there somewher) or even use http://tapestry.formos.com/nightly/tapx/tapx-prototype/ 2009/11/10 Ignacio González Arboleya : >  I am using renderSupport.addS

Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Piero Sartini
Isn't it possible to "shut down" these channels? This will prevent people from landing there while searching for tapestry components. I remember my early days with t5 when this was very confusing. If you don't use the google project any more - why not delete it? If you don't use the formos infra

"Object expected error" with prototype.js and IE 8

2009-11-10 Thread Ignacio González Arboleya
I am using renderSupport.addScript() in order to add some JavaScript to my webpage. It works perfectly in Firefox, IE 7 and IE 8... However, although it also works well in IE 8, you can read an error saying "object expected" associated with prototype.js. It only happens in IE 8. Does anybody kn

Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Sven Homburg
I will do my best, to find and remove that "bug" ;-) with regards Sven Homburg Founder of the Chenille Kit Project http://www.chenillekit.org 2009/11/10 Massimo Lusetti > On Tue, Nov 10, 2009 at 3:54 PM, Ivano Luberti > wrote: > > > Massimo, I think I have already wrote this: I cannot find

Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Massimo Lusetti
On Tue, Nov 10, 2009 at 3:54 PM, Ivano Luberti wrote: > Massimo, I think I have already wrote this: I cannot find from the home > page a link to code examples. I know there is one... >From here http://chenillekit.codehaus.org/chenillekit-tapestry/index.html click the demo link which direct to h

Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Ivano Luberti
I get 404 error Ulrich Stärk ha scritto: > select the tapestry module first. > > Am 10.11.2009 15:54 schrieb Ivano Luberti: >> Massimo, I think I have already wrote this: I cannot find from the home >> page a link to code examples. I know there is one... >> >> Massimo Lusetti ha scritto: >>> H

Re: [Tapestry Central] Next Steps for Tapestry

2009-11-10 Thread Peter Stavrinides
My 2 cents, in order of priority: 1. Ongoing bug fixes, prioritized by severity and then community votes 2. Comprehensive multi-language docs (preferably community driven via collaboration software), including ALL types of docs (cookbook, API reference, tutorials, quickstart) and all in one plac

Re: [T5.1] posting externally with t:form

2009-11-10 Thread Jack Nuzbit
No worries, that's what I thought. Probably from a tapestry perspective it doesn't make a lot of sense but it's not an uncommon use case. I would say it would be an improvement if I could override the default form action and leverage tapestry form components in these situations. On Tue, Nov 10,

Re: [T5.1] posting externally with t:form

2009-11-10 Thread Massimo Lusetti
On Tue, Nov 10, 2009 at 3:42 PM, Jack Nuzbit wrote: > Thanks Massimo but I'm trying to do it the other way around (if I've > understood you correctly). Ops sorry you're right, I did misunderstood you. As others already suggested you should do in plain HTML/JavaScript. Cheers -- Massimo http://

Re: [T5.1] posting externally with t:form

2009-11-10 Thread Thiago H. de Paula Figueiredo
Em Tue, 10 Nov 2009 12:42:25 -0200, Jack Nuzbit escreveu: non-tapestry site. The problem is that in using tapestry components I can't set the action attribute of the form to post to this external site. You could use JavaScript for that as, from a Tapestry perspective, it doesn't make sen

Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Ulrich Stärk
select the tapestry module first. Am 10.11.2009 15:54 schrieb Ivano Luberti: Massimo, I think I have already wrote this: I cannot find from the home page a link to code examples. I know there is one... Massimo Lusetti ha scritto: Hi everyone, sorry for the off topic but as the ChenilleKit te

Re: [T5.1] posting externally with t:form

2009-11-10 Thread Ulrich Stärk
Just do it in plain HTML. http://some.other.site/action";> Uli Am 10.11.2009 15:42 schrieb Jack Nuzbit: Thanks Massimo but I'm trying to do it the other way around (if I've understood you correctly). I am hosting the form on a tapestry site which I need to post to an external non-tapestry s

Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Ivano Luberti
Massimo, I think I have already wrote this: I cannot find from the home page a link to code examples. I know there is one... Massimo Lusetti ha scritto: > Hi everyone, > sorry for the off topic but as the ChenilleKit team we still receive > issue from JIRA at Formos and and someone still post to

Re: [T5.1] posting externally with t:form

2009-11-10 Thread Jack Nuzbit
Thanks Massimo but I'm trying to do it the other way around (if I've understood you correctly). I am hosting the form on a tapestry site which I need to post to an external non-tapestry site. The problem is that in using tapestry components I can't set the action attribute of the form to post to th

[OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Massimo Lusetti
Hi everyone, sorry for the off topic but as the ChenilleKit team we still receive issue from JIRA at Formos and and someone still post to google group. This is a reminder for people using these old channel to update their own bookmark since ChenilleKit has a new home at http://chenillekit.codeha

Re: [T5.1] posting externally with t:form

2009-11-10 Thread Massimo Lusetti
On Tue, Nov 10, 2009 at 12:08 PM, Jack Nuzbit wrote: > Hi All, > I've got a rather complex form that I'd like to use the tapestry form > components to initialise but it needs to post externally. > Is there a way to do this with tapestry? Form components require a > surrounding t:form element whic

Re: How to avoid contribution to TypeCoercer in my case.

2009-11-10 Thread sandeepraj singh
Hi Inge The solution you provide works fine. But to a lesser mortal like me, the description of ITERATION in LoopFormState is a bit difficult /** * Only enough state to iterate over the source values is stored. When the Form is submitted, the Loop will re-acquire its source and iterate over i

Re: IoC container performance issues

2009-11-10 Thread Adriaan Joubert
We'll do that. Thanks! Adriaan 2009/11/9 Howard Lewis Ship : > The container is organized for functionality, not performance, with > service lookups because lookups normally occur once. > > Suggestion: create a "lookup" service that has getters for all the > other keys services you want. Inject t

[T5.1] posting externally with t:form

2009-11-10 Thread Jack Nuzbit
Hi All, I've got a rather complex form that I'd like to use the tapestry form components to initialise but it needs to post externally. Is there a way to do this with tapestry? Form components require a surrounding t:form element which then overrides the action. I can't see any way around this with

Re: [Tapestry Central] Next Steps for Tapestry

2009-11-10 Thread Borut Bolčina
And of course we can make more of this: http://www.questionpro.com/akira/ShowResults?id=1151880&mode=data The above was initiated long time ago: http://bbwebcraft.blogspot.com/2009/02/wishlist-and-survey-for-tapestry-5.html -borut 2009/11/10 Borut Bolčina > Hi, > > 2009/11/10 Inge Solvoll > >

Re: [Tapestry Central] Next Steps for Tapestry

2009-11-10 Thread Borut Bolčina
Hi, 2009/11/10 Inge Solvoll > Maybe it would be a good idea to find out what most newcomers ask for, and > just put it in there, even if it doesn't make that much sense? It COULD > attract more people. > > That is exactly why I opened http://tapestry5.ideascale.com/ -borut

Error Tag <> on line 158 contains more than one 'valuebool' attribute.

2009-11-10 Thread Rayden30
Hello, First I m a beginer in Tapestry... Actually I m developping a webview which has to display an ordered array as below: Root 1 Root 2 Root 3 |Child1 |Child2 |---Child 2.1 |---Child 2.2 ... My code in local working perfectly... However when I intrated i

Embed a generated image in a page with IE6

2009-11-10 Thread ellisonchiu
I follow the wiki "Tapestry5HowToCreatePieChartsInAPage" sample to embed a generated image in a page. It's fine in firefox, but not work in IE6. Is there any way to get it in IE6? -- View this message in context: http://old.nabble.com/Embed-a-generated-image-in-a-page-with-IE6-tp26280115p262801