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 page for the first time
(@PageLoaded), attaches it to the client's session (that is created by
default) and then executes the ActivationContext even whenever a request is
made to the page, am I correct ?


On Thu, Nov 22, 2012 at 7:22 AM, Athneria, Mahendra <
mahendra.athne...@atos.net> wrote:

> 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 time?
>
> 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 @PageDetached can wait on the wall for 5.4
> and be fully restored or fully removed in 5.5.
>
>
> On Wed, Nov 21, 2012 at 1:33 AM, Thiago H de Paula Figueiredo <
> thiag...@gmail.com> wrote:
>
> > 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 @PageDetached shouldn't be
> > used because they only made sense when Tapestry still pooled page class
> > instances.
> >
> > What exactly are you trying to do? Probably you don't even need to use
> > @PageLoaded.
> >
> > --
> > Thiago H. de Paula Figueiredo
> >
> >
> > --**--**-
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<
> users-unsubscr...@tapestry.apache.org>
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


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 time?

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 @PageDetached can wait on the wall for 5.4
and be fully restored or fully removed in 5.5.


On Wed, Nov 21, 2012 at 1:33 AM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> 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 @PageDetached shouldn't be
> used because they only made sense when Tapestry still pooled page class
> instances.
>
> What exactly are you trying to do? Probably you don't even need to use
> @PageLoaded.
>
> --
> Thiago H. de Paula Figueiredo
>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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] | \- rhino:js:jar:1.6R7:compile

-Original Message-
From: Lance Java [mailto:lance.j...@googlemail.com] 
Sent: Tuesday, November 20, 2012 7:50 PM
To: users@tapestry.apache.org
Subject: RE: Problem in Production mode

I know the tapestry team have been having troubles with yuicompressor, I'm just 
not familiar to them myself. Please chime in anyone who knows more about this.

Are you saying that rhino was already on your classpath? Is it a dependency in 
your project or is it part of jetty? Run "mvn dependency:tree" from the command 
line to find out

You could fix this in your pom with an exclude:





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Problem-in-Production-mode-tp5718120p5718133.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 wrote:

> 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:
> http://tapestry.1045711.n5.nabble.com/Disabling-HMAC-check-tp5718156p5718176.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


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  wrote:

> 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 unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


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: 
http://tapestry.1045711.n5.nabble.com/Disabling-HMAC-check-tp5718156p5718176.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 

configuration.add(SymbolConstants.PRODUCTION_MODE, "false");

All goes fine :)

This is what I got: 
 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Jquery-Tooltip-on-production-mode-tp5718174.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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)
 wrote:
> My confluence username: joost [a] yanomo [period] com
>
> Sam Ruby mailed me on August 9th 2011
>
> -
>
> Dear Joost Schouten,
>
> This message acknowledges receipt of your ICLA, which has been filed in the
> Apache Software Foundation records.
>
> If you have been voted in as a committer, please advise the project PMC that
> your ICLA has been filed.
>
> Warm Regards,
>
> -- Sam Ruby
> Assistant Secretary, Apache Software Foundation
> ---
>
>
> On Nov 20, 2012, at 12:31 AM, Dragan Sahpaski wrote:
>
> On Tue, Nov 20, 2012 at 12:24 AM, Joost Schouten (mailing lists) <
> joost...@jsportal.com> wrote:
>
> Looking at the apache license page I remembered I have already submitted
>
> my CLA a few years ago with apache. So the next question is: Who can I give
>
> my confluence username/email to setup the appropriate rights?
>
>
>
> After you send it to apache you get a confirmation email that you can
> forward here to the list and ask for access. Post your username in the same
> message.
>
>
>
> Cheers,
>
> Joost
>
>
>
> On Nov 19, 2012, at 11:21 PM, Dragan Sahpaski wrote:
>
>
> Done,
>
> You can get access by filling an apache ICLA (don't have to be a
>
> comitter).
>
> Read more here http://www.apache.org/licenses/
>
>
> Cheers,
>
> Dragan Sahpaski
>
>
>
>
> On Mon, Nov 19, 2012 at 10:45 PM, Joost Schouten (mailing lists) <
>
> joost...@jsportal.com> wrote:
>
>
> Hi Muhammad,
>
>
> I can see this is a somewhat minimal question. I guess I'm asking this
>
> to
>
> one of the comitters as I would like to update the Yanomo screenshot
>
> found
>
> at http://tapestry.apache.org/applications.html as it is outdated. As I
>
> have no editing rights at
>
> https://cwiki.apache.org/confluence/display/TAPESTRY/Applications# I
>
> can't do this myself.
>
>
> Sorry for the under specified question ;-)
>
>
> Cheers,
>
> Joost
>
>
>
> On Nov 19, 2012, at 10:39 PM, Muhammad Gelbana wrote:
>
>
> What do you mean by "Yanomo screenshot on the Tapetsry site", what is
>
> that ?
>
>
> On Mon, Nov 19, 2012 at 11:18 PM, Joost Schouten (mailing lists) <
>
> joost...@jsportal.com> wrote:
>
>
> Hi,
>
>
> The Yanomo screenshot on the Tapetsry site is outdated and we have a
>
> nice
>
> new fancy one. I believe I need to be a confluence admin to make this
>
> update right? How can I become one or who do I talk to?
>
>
> Thanks,
>
> Joost
>
> -
>
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>
>
>
>
>
>
> -
>
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>
>
>

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Disabling HMAC check

2012-11-21 Thread Thiago H de Paula Figueiredo

On Wed, 21 Nov 2012 19:57:11 -0200, TG  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: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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  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 component, use this component anywhere you want. :)

Q2) How can I place an additional field (I require a dropdown t:select)  
into that form? Without having to copy/paste the whole form code again  
(which

would cause a lot of dublication)?


Block parameters. Check  
http://tapestry.apache.org/component-templates.html for  and the  
parameter namespace.


--
Thiago H. de Paula Figueiredo

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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  wrote:
> 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 to copy/paste the whole form code again (which
> would cause a lot of dublication)?
>
> It is similar to this:
>
> 
> 
> 
> 
>
>  
>  
> 
> http://tapestry.1045711.n5.nabble.com/How-to-reuse-a-form-tp5718166.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Problem with checkboxes in dynamic tables

2012-11-21 Thread membersound
If you define the checkbox yourself, try adding this:



public class PrepareEvent {
@Parameter
private Object[] context;

@Inject
private ComponentResources componentResources;

void setupRender() {
componentResources.triggerEvent("prepare", context, null);
}
}


One can now specify a backing method onPrepareFromX() where t:id="X".
So for every component (that normally does not have a backing method
"listener", one can just add this mixin and write the backing method
accordingly.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Problem-with-checkboxes-in-dynamic-tables-tp5718028p5718167.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 to copy/paste the whole form code again (which
would cause a lot of dublication)?

It is similar to this:





 
 
 

http://tapestry.1045711.n5.nabble.com/How-to-reuse-a-form-tp5718166.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 think the hmac passphrase does anything to change your session
expiration.

Cheers - Alex K

On Wed, Nov 21, 2012 at 4:13 PM, TG  wrote:

> 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 configured.
> "
>
> We just want to get rid of the above message.
>
> If we add the following (copied from one of the user's reply at
> http://tapestry.1045711.n5.nabble.com/hmac-sample-td5716873.html -
>
> configuration.add(SymbolConstants.HMAC_PASSPHRASE, new
> BigInteger(130, new SecureRandom()).toString(32));
>
> The session timeout frequentlly, as soon as less than 1 minute with error
> message like your HMAC id is different from whatever, which is not helpfui
> as the users are still working on the form. We need to fill out a lot of
> information in the HTML form, before submitting :)
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Disabling-HMAC-check-tp5718156p5718163.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


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 example
hibernate.connection.username and hibernate.connection.password. 

So in this way I will have one hibernate.cfg.xml and use the diff modules to
set it up. So can I set this one up somehow with MappedConfiguration or
use System.setProperty()?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Adding-new-properties-from-AppModule-tp5718137p5718164.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 configured.
"

We just want to get rid of the above message.

If we add the following (copied from one of the user's reply at
http://tapestry.1045711.n5.nabble.com/hmac-sample-td5716873.html -

configuration.add(SymbolConstants.HMAC_PASSPHRASE, new
BigInteger(130, new SecureRandom()).toString(32));

The session timeout frequentlly, as soon as less than 1 minute with error
message like your HMAC id is different from whatever, which is not helpfui
as the users are still working on the form. We need to fill out a lot of
information in the HTML form, before submitting :)



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Disabling-HMAC-check-tp5718156p5718163.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 configured.
"

We just want to get rid of the above message.

If we add the following (copied from one of the user's reply at
http://tapestry.1045711.n5.nabble.com/hmac-sample-td5716873.html -

configuration.add(SymbolConstants.HMAC_PASSPHRASE, new
BigInteger(130, new SecureRandom()).toString(32));

The session timeout frequentlly, as soon as less than 1 minute with error
message like your HMAC id is different from whatever, which is not helpfui
as the users are still working on the form. We need to fill out a lot of
information in the HTML form, before submitting :)



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Disabling-HMAC-check-tp5718156p5718162.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 configured.
"

We just want to get rid of the above message.

If we add the following (copied from one of the user's reply at
http://tapestry.1045711.n5.nabble.com/hmac-sample-td5716873.html -

configuration.add(SymbolConstants.HMAC_PASSPHRASE, new
BigInteger(130, new SecureRandom()).toString(32));

The session timeout frequentlly, as soon as less than 1 minute with error
message like your HMAC id is different from whatever, which is not helpfui
as the users are still working on the form. We need to fill out a lot of
information in the HTML form, before submitting :)



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Disabling-HMAC-check-tp5718156p5718161.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 configured.
"

We just want to get rid of the above message.

If we add the following (copied from one of the user's reply at
http://tapestry.1045711.n5.nabble.com/hmac-sample-td5716873.html -

configuration.add(SymbolConstants.HMAC_PASSPHRASE, new
BigInteger(130, new SecureRandom()).toString(32));

The session timeout frequentlly, as soon as less than 1 minute with error
message like your HMAC id is different from whatever, which is not helpfui
as the users are still working on the form. We need to fill out a lot of
information in the HTML form, before submitting :)



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Disabling-HMAC-check-tp5718156p5718160.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 @PageDetached can wait on the wall for 5.4
and be fully restored or fully removed in 5.5.


On Wed, Nov 21, 2012 at 1:33 AM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> 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 @PageDetached shouldn't be
> used because they only made sense when Tapestry still pooled page class
> instances.
>
> What exactly are you trying to do? Probably you don't even need to use
> @PageLoaded.
>
> --
> Thiago H. de Paula Figueiredo
>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com


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, after the response has been sent to the
client user agent


On Wed, Nov 21, 2012 at 12:43 AM, Lance Java wrote:

> @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:
> http://tapestry.1045711.n5.nabble.com/Which-phase-of-page-lifecycle-will-not-occur-when-we-access-page-2nd-time-tp5718142p5718144.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com


Re: Disabling HMAC check

2012-11-21 Thread Massimo Lusetti
On Wed, Nov 21, 2012 at 5:55 PM, TG  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 elaborate
more?

Cheers
-- 
Massimo


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 mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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  
 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 latest document page pooling is no more in  
tapestry. So I got my answer :-)


Actually, T5.2 doesn't have page pooling either, just T5.0 and T5.1.

--
Thiago H. de Paula Figueiredo

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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, Mahendra  
 wrote:

> Thanks Thiago H de Paula Figueiredo,

You're welcome!

> I got the answer :-)

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 latest document page pooling is no more in tapestry. So I got my 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 time?
>
> On Wed, 21 Nov 2012 05:07:19 -0200, Athneria, Mahendra
>  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 @PageDetached shouldn't be
> used because they only made sense when Tapestry still pooled page class
> instances.
>
> What exactly are you trying to do? Probably you don't even need to use
> @PageLoaded.
>


-- 
Thiago H. de Paula Figueiredo

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


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  
 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 [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 time?


On Wed, 21 Nov 2012 05:07:19 -0200, Athneria, Mahendra
 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 @PageDetached shouldn't be
used because they only made sense when Tapestry still pooled page class
instances.

What exactly are you trying to do? Probably you don't even need to use
@PageLoaded.




--
Thiago H. de Paula Figueiredo

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 time?

On Wed, 21 Nov 2012 05:07:19 -0200, Athneria, Mahendra  
 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 @PageDetached shouldn't be  
used because they only made sense when Tapestry still pooled page class  
instances.

What exactly are you trying to do? Probably you don't even need to use  
@PageLoaded.

-- 
Thiago H. de Paula Figueiredo

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




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
MappedConfiguration which allows you to contribute to a service which
takes a Map in it's constructor.

> Should I simply use System.setProperties
Most likely not

> Also one other question what is the order of the model load?
Quick answer: In the order that they are needed. Tapestry IOC is lazy, none
of your services are instantiated initially. Instead, tapestry creates a
proxy which will only instantiate your service implementation the first time
a method is invoked on the proxy.

You can force a service to load using eager loading
(http://tapestry.apache.org/defining-tapestry-ioc-services.html#DefiningTapestryIOCServices-EagerLoadingServices)

Tapestry includes a page in your application where you can check the status
of your services (http://tapestry.apache.org/service-status.html)



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Adding-new-properties-from-AppModule-tp5718137p5718151.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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  
 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 @PageDetached shouldn't be  
used because they only made sense when Tapestry still pooled page class  
instances.


What exactly are you trying to do? Probably you don't even need to use  
@PageLoaded.


--
Thiago H. de Paula Figueiredo

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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   
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

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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   
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 that I have is code duplication


Just use ordinary Java code reuse: put the shared code inside a method in  
some class and call this method in any class you need. Code duplication  
avoided.


--
Thiago H. de Paula Figueiredo

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/PageDetached.html



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Which-phase-of-page-lifecycle-will-not-occur-when-we-access-page-2nd-time-tp5718142p5718146.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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?

@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: 
http://tapestry.1045711.n5.nabble.com/Which-phase-of-page-lifecycle-will-not-occur-when-we-access-page-2nd-time-tp5718142p5718144.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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: 
http://tapestry.1045711.n5.nabble.com/Which-phase-of-page-lifecycle-will-not-occur-when-we-access-page-2nd-time-tp5718142p5718144.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org