Re: Best place to initialize form data

2012-05-07 Thread netdawg
And, BTW, question above applies to "total control form" - i.e. not based on beaneditor. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Best-place-to-initialize-form-data-tp5685603p5692665.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Best place to initialize form data

2012-05-07 Thread netdawg
Curious: IF no persistence, not even flash, is to be used for person, THEN , how would we handle the case of person being NULL during onPrepareForSubmit? Specifically, void onPrepareForSubmit() { if (this.person == null) { //

Re: Zone refresh in form fragment 'wizard'

2012-05-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 May 2012 23:15:43 -0300, Chris Cureau wrote: Hi there! Hi! Please post the template and code please, at least the relevant parts (events, form submissions, links, etc). In addition, some exception or error should have been raised. Please take a look at the console output a

Zone refresh in form fragment 'wizard'

2012-05-07 Thread Chris Cureau
Hi there! I'm following Geoff's excellent jumpstart on creating a wizard using form fragments. I've got it all working so far, but I want to create a summary form fragment that displays a table with the text that was entered on the previous form fragment panel. The final page has a zone defined

Tapestry-zbreadcrumbs [ New breadcrumbs module ]

2012-05-07 Thread Dimitris Zenios
Hi guys. Please have a look at http://bitbucket.org/zenios/tapestry-zbreadcrumbs Release is uploaded and synchronizing.Sine this is my first tapestry module releasing open source ,comments are welcome and much appreciated. Best Regards Dimitris Zenios

Re: Basic question about URL rewriting and Tapestry 5

2012-05-07 Thread Julien Martin
Thanks Thiago! 2012/5/7 Julien Martin > Thanks Thiago! > I was not aware of that. > J. > > 2012/5/7 Thiago H. de Paula Figueiredo > > On Mon, 07 May 2012 14:19:24 -0300, Julien Martin >> wrote: >> >> Hi all! >>> >> >> Hi! >> >> >> @Thiago: My only concern is about SEO optimization. Can you

Re: Best Practices for @Persist

2012-05-07 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes, I try to be as stateless as (reasonably) possible. It's just that core components - e.g. Grid - use @Persist, and so I explore ways to use them robustly. Thanks again! Am 07.05.2012 17:09, schrieb Thiago H. de Paula Figueiredo: > On Mon, 07 May

Re: Basic question about URL rewriting and Tapestry 5

2012-05-07 Thread Julien Martin
Hi all! @Cezary: I can just use a page link as an action is called on the server side as follows: @OnEvent(EventConstants.ACTION) void changeLocale(String language) { persistentLocale.set(new Locale(language)); } @Thiago: My only concern is about SEO optimization. Can you provide any guideline a

Re: Basic question about URL rewriting and Tapestry 5

2012-05-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 May 2012 12:50:16 -0300, Julien Martin wrote: Hello, Hi! 1. I have the following T5 action link: *en* 2. Which translate into the following link: *http://localhost:8080/ume-web/fr/contactus.actionlink_1/en* 3. Which in turn, when clicked, displays the following URL: *http://lo

Re: Basic question about URL rewriting and Tapestry 5

2012-05-07 Thread Cezary Biernacki
In this case you should use PageLink, instead of ActionLink. Cezary

Basic question about URL rewriting and Tapestry 5

2012-05-07 Thread Julien Martin
Hello, 1. I have the following T5 action link: *en* 2. Which translate into the following link: *http://localhost:8080/ume-web/fr/contactus.actionlink_1/en* 3. Which in turn, when clicked, displays the following URL: *http://localhost:8080/ume-web/en/contactus* I am just wondering whether my ac

Re: Best Practices for @Persist

2012-05-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 May 2012 11:34:02 -0300, Arno Haase wrote: Thanks for pointing out Tynamo! I'll look into it, looks like it is what I was looking for. I forgot to mention something: * Try to avoid using @Persist. In many scenarios the page activation context is able to replace @Persist. * If

Re: Best Practices for @Persist

2012-05-07 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for pointing out Tynamo! I'll look into it, looks like it is what I was looking for. Am 07.05.2012 15:14, schrieb Thiago H. de Paula Figueiredo: > On Mon, 07 May 2012 10:08:40 -0300, Arno Haase > wrote: > >> I know the mechanics of @Persist

Re: tapestry5-jquery simple sample not working

2012-05-07 Thread Chris Mylonas
does this mean i win the schooner question geoff ;) may be a typo for AppModule.java http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/jquery Source code: Appmodule.java The file was not found. Path given was /WEB-INF/sourcecode/web/src/main/java/jumpstart/web/services/App

Re: Best Practices for @Persist

2012-05-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 May 2012 10:08:40 -0300, Arno Haase wrote: I know the mechanics of @Persist and Session State. But I am looking for advice on how to deal with some common challenges using Tapestry: * Let's say a page stores stuff in the HttpSession using @Persist - directly or e.g. through use of

Best Practices for @Persist

2012-05-07 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I know the mechanics of @Persist and Session State. But I am looking for advice on how to deal with some common challenges using Tapestry: * Let's say a page stores stuff in the HttpSession using @Persist - directly or e.g. through use of the Grid com

Re: Best place to initialize form data

2012-05-07 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks - I somehow missed when I scanned the Jumpstart page... Am 07.05.2012 13:45, schrieb Geoff Callender: > It's there - look for "AJAX: What is Called and When" in the 5th > column of the home page. > > http://jumpstart.doublenegative.com.au/jump

Re: tapestry5-jquery simple sample not working

2012-05-07 Thread Geoff Callender
I've added a JQuery example to JumpStart. If you guys can see nothing wrong with it I'll make the general announcement tomorrow. Geoff On 04/04/2012, at 7:27 PM, Emmanuel DEMEY wrote: > From the source code, and by using the JavaScript console of Google Chrome > > 2012/4/4 Chris Mylonas > >>

Re: Best place to initialize form data

2012-05-07 Thread Geoff Callender
It's there - look for "AJAX: What is Called and When" in the 5th column of the home page. http://jumpstart.doublenegative.com.au/jumpstart/ Cheers, Geoff On 06/05/2012, at 3:41 PM, Arno Haase wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > That is a great link, thanks fo

Re: getting the object in a row from a grid component

2012-05-07 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As I see it, it boils down to one of two cases. A) You somehow store the entire row objects - either in the session (with the obvious drawbacks and limitations) or in hidden fields etc. (with the obvious drawbacks and limitaitions). This should be nec

Re: getting the object in a row from a grid component

2012-05-07 Thread ramonchu
Thank you so much for all the answers. The main problem is that I have to deal with a lot of entities, which have very different types and structures, and they have not a common interface, so I don't have a common way to deal with them (I cannot retreive them using id or similar approaches) My ob

[T5.3.3] Removing The LoopBack Parameter From An EventLink

2012-05-07 Thread Steve Eynon
Hi, I have a use-case where I'd like to remove the LoopBack parameter from an EventLink. For now I've just created a Link from ComponentResources and stuck it in an tag, but I'd like to propose the following change to org.apache.tapestry5.corelib.base.AbstractComponentEventLink: protected void