Re: Which phase of page lifecycle will not occur when we access page 2nd time?

2012-11-21 Thread Lance Java
@PageAttached and @PageDetached are deprecated and are leftovers from page pooling. The page pool has been disabled by default since version 5.2 in favour of page singletons which maintain mutable state in thread local maps. -- View this message in context:

RE: Which phase of page lifecycle will not occur when we access page 2nd time?

2012-11-21 Thread Athneria, Mahendra
Hi Lance Java, I am still not clear. Could you please explain the same or give me some link to clarify my doubt? Regards, Mahendra -Original Message- From: Lance Java [mailto:lance.j...@googlemail.com] Sent: Wednesday, November 21, 2012 2:13 PM To: users@tapestry.apache.org Subject:

RE: Which phase of page lifecycle will not occur when we access page 2nd time?

2012-11-21 Thread Lance Java
This page says the page pool is disabled as of tapestry 5.2 http://tapestry.apache.org/page-life-cycle.html Two of the links you provided have a deprecated warning: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/PageAttached.html

Re: Adding new properties from AppModule

2012-11-21 Thread Thiago H de Paula Figueiredo
On Tue, 20 Nov 2012 21:19:36 -0200, bhorvat horvat.z.bo...@gmail.com wrote: hm...so what you are saying is that I should not set a property that will be used by other module, but instead copy the method into my 3 modules and make it custom for them, right? No. i guess the only problem

Re: Adding new properties from AppModule

2012-11-21 Thread Thiago H de Paula Figueiredo
On Tue, 20 Nov 2012 21:33:31 -0200, bhorvat horvat.z.bo...@gmail.com wrote: Also one other question what is the order of the model load? You shouldn't rely on that. That's why OrderedConfiguration exists. -- Thiago H. de Paula Figueiredo

Re: Which phase of page lifecycle will not occur when we access page 2nd time?

2012-11-21 Thread Thiago H de Paula Figueiredo
On Wed, 21 Nov 2012 05:07:19 -0200, Athneria, Mahendra mahendra.athne...@atos.net wrote: Hi, Hi! I have one question regarding the Page life cycle. When we are accessing the page very first time then it will follow below life cycle. @PageLoaded. As Lance said @PageAttached and

Re: Adding new properties from AppModule

2012-11-21 Thread Lance Java
How can I add new properties This question is pretty vague, most likely you will use a MappedConfigurationK,V which allows you to contribute to a service which takes a MapK,V in it's constructor. Should I simply use System.setProperties Most likely not Also one other question what is the

RE: Which phase of page lifecycle will not occur when we access page 2nd time?

2012-11-21 Thread Athneria, Mahendra
Thanks Thiago H de Paula Figueiredo, I got the answer :-) -Original Message- From: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: Wednesday, November 21, 2012 3:04 PM To: Tapestry users Subject: Re: Which phase of page lifecycle will not occur when we access page 2nd

Re: Which phase of page lifecycle will not occur when we access page 2nd time?

2012-11-21 Thread Thiago H de Paula Figueiredo
On Wed, 21 Nov 2012 09:16:20 -0200, Athneria, Mahendra mahendra.athne...@atos.net wrote: Thanks Thiago H de Paula Figueiredo, You're welcome! I got the answer :-) But I still haven't got mine. :) -Original Message- From: Thiago H de Paula Figueiredo

RE: Which phase of page lifecycle will not occur when we access page 2nd time?

2012-11-21 Thread Athneria, Mahendra
-Original Message- From: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: Wednesday, November 21, 2012 5:39 PM To: Tapestry users Subject: Re: Which phase of page lifecycle will not occur when we access page 2nd time? On Wed, 21 Nov 2012 09:16:20 -0200, Athneria,

Re: Which phase of page lifecycle will not occur when we access page 2nd time?

2012-11-21 Thread Thiago H de Paula Figueiredo
On Wed, 21 Nov 2012 10:25:21 -0200, Athneria, Mahendra mahendra.athne...@atos.net wrote: But I still haven't got mine. :) [Mahendra] - hahahahaha actually one of my friend and we were discussing about the phases of Page. we are using 5.2 so for us it is Page Pooling. But as per the

Disabling HMAC check

2012-11-21 Thread TG
Our app does not need this, we have our own timeout check. This check interfere with ours. How do we disable this without getting the warning on the screen? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Disabling-HMAC-check-tp5718156.html Sent from the Tapestry - User

Re: Disabling HMAC check

2012-11-21 Thread Massimo Lusetti
On Wed, Nov 21, 2012 at 5:55 PM, TG tapestry...@hotmail.com wrote: Our app does not need this, we have our own timeout check. This check interfere with ours. How do we disable this without getting the warning on the screen? I don't get what HMAC and timeout have in common, would you

Re: Which phase of page lifecycle will not occur when we access page 2nd time?

2012-11-21 Thread Howard Lewis Ship
However, I'm thinking of de-deprecating @PageAttached and @PageDetached. I think they are actually useful in the long run. So: @PageLoaded - once when the page is initially constructed @PageAttached - once per request, when the page is first used in that request @PageDetached - once per request,

Re: Which phase of page lifecycle will not occur when we access page 2nd time?

2012-11-21 Thread Howard Lewis Ship
For example; @PageAttached could be a good place to obtain a connection to a database, and @PageDetached could be a place to close that connection. However, a per-thread service would usually be a better solution, and would be lazy (not created until needed). So, I think @PageAttached and

Re: Disabling HMAC check

2012-11-21 Thread TG
Error message is The symbol 'tapestry.hmac-passphrase' has not been configured. This is used to configure hash-based message authentication of Tapestry data stored in forms, or in the URL. You application is less secure, and more vulnerable to denial-of-service attacks, when this symbol is not

Re: Disabling HMAC check

2012-11-21 Thread TG
Error message is The symbol 'tapestry.hmac-passphrase' has not been configured. This is used to configure hash-based message authentication of Tapestry data stored in forms, or in the URL. You application is less secure, and more vulnerable to denial-of-service attacks, when this symbol is not

Re: Disabling HMAC check

2012-11-21 Thread TG
Error message is The symbol 'tapestry.hmac-passphrase' has not been configured. This is used to configure hash-based message authentication of Tapestry data stored in forms, or in the URL. You application is less secure, and more vulnerable to denial-of-service attacks, when this symbol is not

Re: Disabling HMAC check

2012-11-21 Thread TG
Error message is The symbol 'tapestry.hmac-passphrase' has not been configured. This is used to configure hash-based message authentication of Tapestry data stored in forms, or in the URL. You application is less secure, and more vulnerable to denial-of-service attacks, when this symbol is not

Re: Adding new properties from AppModule

2012-11-21 Thread bhorvat
I will try to add a bit more content. What I am trying to do is create environments for my development, and one of the key aspect here would be the database connection. So in my hibernate.cfg.xml file I need to set hibernate.connection.url, so I would like to set it using the properties or for

Re: Disabling HMAC check

2012-11-21 Thread Alex Kotchnev
This was discussed previously on the list, but having a random string would be a bad idea, especially if you do some kind of load balancing between servers (e.g. server1 would get a different passphrase from server2, and server 2 will not want to process form submissions from server 1). I don't

How to reuse a form?

2012-11-21 Thread membersound
Hi, I have a form that I want to reuse for another action of a page. Q1) How can I define a t:form and just reuse the exact definitions without having to copy/paste the whole form all the time? Q2) How can I place an additional field (I require a dropdown t:select) into that form? Without having

Re: Problem with checkboxes in dynamic tables

2012-11-21 Thread membersound
If you define the checkbox yourself, try adding this: t:mixins=quot;prepareEventquot;.. public class PrepareEvent { @Parameter private Object[] context; @Inject private ComponentResources componentResources; void setupRender() {

Re: How to reuse a form?

2012-11-21 Thread Chris Poulsen
Ad 1) Wrap it in a component Ad 2) I'm not sure, but my guess would be that you can supply extra stuff as a block -- Chris On Wed, Nov 21, 2012 at 10:37 PM, membersound memberso...@web.de wrote: Hi, I have a form that I want to reuse for another action of a page. Q1) How can I define a

Re: How to reuse a form?

2012-11-21 Thread Thiago H de Paula Figueiredo
On Wed, 21 Nov 2012 19:37:34 -0200, membersound memberso...@web.de wrote: Hi, Hi! I have a form that I want to reuse for another action of a page. Q1) How can I define a t:form and just reuse the exact definitions without having to copy/paste the whole form all the time? Put it inside a

Re: Disabling HMAC check

2012-11-21 Thread TG
Yes, it expires the session. How do I disable the warning? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Disabling-HMAC-check-tp5718156p5718170.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Disabling HMAC check

2012-11-21 Thread Thiago H de Paula Figueiredo
On Wed, 21 Nov 2012 19:57:11 -0200, TG tapestry...@hotmail.com wrote: Yes, it expires the session. How do I disable the warning? Have you tried a non-random string? -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail:

Re: Update the tapestry site

2012-11-21 Thread Joost Schouten (mailing lists)
Hi, Which Confluence admin can grant me edit rights? My ICLA acceptance email is below, as is my confluence username. Thanks a million, Joost On Tue, Nov 20, 2012 at 1:08 AM, Joost Schouten (mailing lists) joost...@jsportal.com wrote: My confluence username: joost [a] yanomo [period] com Sam

Re: Disabling HMAC check

2012-11-21 Thread TG
Non-random string? How do I do that? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Disabling-HMAC-check-tp5718156p5718173.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To

Jquery Tooltip on production mode

2012-11-21 Thread arterzatij
Hi all, Has anyone had problems with the project Tapestry-jQuery specifically tooltip script when we put the application in production mode? configuration.add(SymbolConstants.PRODUCTION_MODE, true); if I put has

Re: Changing to default localization without extension for the language

2012-11-21 Thread o3005659
Thanks, Sody! :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Changing-to-default-localization-without-extension-for-the-language-tp5718092p5718175.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Disabling HMAC check

2012-11-21 Thread angelochen
I was the one asking that question before, I am using this: configuration.add(SymbolConstants.HMAC_PASSPHRASE, rIbShOefrOze77SPy12niBS); any string should work. TG wrote Non-random string? How do I do that? -- View this message in context:

Re: Disabling HMAC check

2012-11-21 Thread Bob Harner
1) http://www.random.org/strings/ will generate a random string for you if you can't think of one on your own 2) Put that string into your AppModule class. configuration.add(SymbolConstants.HMAC_PASSPHRASE, the-random-string-goes-here); On Wed, Nov 21, 2012 at 8:09 PM, TG

Re: Disabling HMAC check

2012-11-21 Thread Bob Harner
But please don't use rIbShOefrOze77SPy12niBS since that particular string is no longer private. Make up one of your own. On Wed, Nov 21, 2012 at 8:44 PM, angelochen angelochen...@yahoo.com.hkwrote: I was the one asking that question before, I am using this:

RE: Problem in Production mode

2012-11-21 Thread Vladimir Bauer
I've found that yuicompressor-2.4.7.jar file includes rhino package, but it was duplicated at the same time in different file js-1.6R7.jar [INFO] +- org.apache.tapestry:tapestry-yuicompressor:jar:5.3.6:compile [INFO] | \- com.yahoo.platform.yui:yuicompressor:jar:2.4.7:compile [INFO] | \-

RE: Which phase of page lifecycle will not occur when we access page 2nd time?

2012-11-21 Thread Athneria, Mahendra
Thanks a lot Howard Lewis for your valuable comment :-). Regards, Mahendra -Original Message- From: Howard Lewis Ship [mailto:hls...@gmail.com] Sent: Thursday, November 22, 2012 1:41 AM To: Tapestry users Subject: Re: Which phase of page lifecycle will not occur when we access page 2nd

Re: Which phase of page lifecycle will not occur when we access page 2nd time?

2012-11-21 Thread Muhammad Gelbana
Got some patience left for another question ? :) So now with 5.3.6, since pooling is disabled, is it a single page instance for each request ? And how does it differ from the activation context event if they are both executed when the page is first loaded ? My *guess* is that tapestry loads the