Re: Tapestry Session Service

2013-01-25 Thread Kalle Korhonen
On Fri, Jan 25, 2013 at 5:46 PM, Tony Nelson  wrote:

> I don't really want you to go all Gung Ho :). Remember I've been with you
> since Tapestry 3. I know how you go Gung Ho.
>

:)


> I've just already allotted plenty of time in our schedule for the 5.3 to
> 5.4 upgrade under the guise of Introducing SASS/Coffee.  We are heavily
> invested in tapestry-jquery especially the DataTables integration so any
> changes there are going to affect my project.
>

SASS as in sass 3/scss? If so, I'm interested in bringing framework level
support for it. There's been some discussion on different approaches,
what's your take on it?

Kalle


Re: Tapestry Session Service

2013-01-25 Thread Tony Nelson
I don't really want you to go all Gung Ho :). Remember I've been with you since 
Tapestry 3. I know how you go Gung Ho.

I've just already allotted plenty of time in our schedule for the 5.3 to 5.4 
upgrade under the guise of Introducing SASS/Coffee.  We are heavily invested in 
tapestry-jquery especially the DataTables integration so any changes there are 
going to affect my project.

As to Theo's comments about the difference between front end or back end 
changes, it really is immaterial what I'm editing.  Java, HTML, JavaScript, 
heck even groovy. It's still all code that has to be changed.  I was just 
trying to suggest that if you are going to break something, from 5.3 to 5.4 
isn't a bad time to consider it.

Have a great weekend guys and sorry if I inadvertently poked an old scab.

-Tony

On Jan 25, 2013, at 8:00 PM, "Howard Lewis Ship"  wrote:

> I think Tony wants us to go Gung Ho on the code base. Oh, so tempting, but
> I think we'll stay the course instead. I'm sure I could build a better IoC
> and framework than Tapestry 5 now, it's T5+5 years, but that wouldn't prove
> anything.
>
> On Fri, Jan 25, 2013 at 2:16 PM, Thiago H de Paula Figueiredo <
> thiag...@gmail.com> wrote:
>
>> On Fri, 25 Jan 2013 19:45:31 -0200, Tony Nelson 
>> wrote:
>>
>> Aren't all the javascript changes in 5.4 going to break compatibility
>>> anyways?
>>>
>>
>> What server-side backward compatibility has to do with client-side one?
>> Specially in this case, in which someone expected something to be a service
>> because it was in a package named services? The less we break backward
>> compatibility, the better.
>>
>>
>> --
>> 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

Since 1982, Starpoint Solutions has been a trusted source of human capital and 
solutions. We are committed to our clients, employees, environment, community 
and social concerns.  We foster an inclusive culture based on trust, respect, 
honesty and solid performance. Learn more about Starpoint and our social 
responsibility at http://www.starpoint.com/social_responsibility

This email message from Starpoint Solutions LLC is for the sole use of  the 
intended recipient(s) and may contain confidential and privileged  information. 
 Any unauthorized review, use, disclosure or distribution is prohibited.  If 
you are not the intended recipient, please contact the sender by reply email 
and destroy all copies of the original message.  Opinions, conclusions and 
other information in this message that do not relate to the official business 
of Starpoint Solutions shall be understood as neither given nor endorsed by it.

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



Re: Tapestry Session Service

2013-01-25 Thread Howard Lewis Ship
I think Tony wants us to go Gung Ho on the code base. Oh, so tempting, but
I think we'll stay the course instead. I'm sure I could build a better IoC
and framework than Tapestry 5 now, it's T5+5 years, but that wouldn't prove
anything.

On Fri, Jan 25, 2013 at 2:16 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Fri, 25 Jan 2013 19:45:31 -0200, Tony Nelson 
> wrote:
>
>  Aren't all the javascript changes in 5.4 going to break compatibility
>> anyways?
>>
>
> What server-side backward compatibility has to do with client-side one?
> Specially in this case, in which someone expected something to be a service
> because it was in a package named services? The less we break backward
> compatibility, the better.
>
>
> --
> 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: Tapestry Session Service

2013-01-25 Thread Thiago H de Paula Figueiredo
On Fri, 25 Jan 2013 19:45:31 -0200, Tony Nelson   
wrote:


Aren't all the javascript changes in 5.4 going to break compatibility  
anyways?


What server-side backward compatibility has to do with client-side one?  
Specially in this case, in which someone expected something to be a  
service because it was in a package named services? The less we break  
backward compatibility, the better.


--
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: Tapestry Session Service

2013-01-25 Thread Howard Lewis Ship
There have been limited server-side changes, nearly all backwards
compatible (with a few backwards incompatible changes in neglected corners,
unfortunately).

If you stick to vanilla Tapestry out of the box, then your Tapestry 5.3
application should work in 5.4, even with the client-side changes. A few
components have had minor changes (or removals) of rarely used client-side
logic. Also, form validation is always on submit now, never on blur.

If you were using code out of the T5 or Tapestry client-side namespaces,
you will need to recode a bit.

In many cases, things that required JavaScript code in 5.3 can be
accomplished with just new data- attributes on elements (possibly, provided
by a mixin).  The majority of the client-side logic in 5.4 is based on
document-level event handlers whose behavior is triggered by data-
attributes in specific elements.

On Fri, Jan 25, 2013 at 1:45 PM, Tony Nelson  wrote:

> Aren't all the javascript changes in 5.4 going to break compatibility
> anyways?
>
> -Original Message-
> From: Howard Lewis Ship [mailto:hls...@gmail.com]
> Sent: Friday, January 25, 2013 1:13 PM
> To: Tapestry users
> Subject: Re: Tapestry Session Service
>
> On Fri, Jan 25, 2013 at 3:10 AM, Thiago H de Paula Figueiredo <
> thiag...@gmail.com> wrote:
>
> > On Thu, 24 Jan 2013 14:03:52 -0200, Matías Blasi
> > 
> > wrote:
> >
> >  Hi all!
> >>
> >
> > Hi!
> >
> >
> >  I'm a little stuck with trying to inject the Tapestry Session Service
> >> (org.apache.tapestry.services.**Session)
> >>
> >
> > Session is not a service nor something that can injected right now.
> > @Inject Request and use its getSession(boolean create) method.
> >
> >
> >  If we cannot @Inject the Session, should it be in the .services
> >> interfaces package?
> >>
> >
> > Not every service is injectable. Not everything that is injectable is
> > a service.
>
>
> I would love to reorganize the Tapestry package structure, but doing so
> would break backwards compatibility in a large way. Instead, we've taken to
> using lots of documentation annotations to be more precise about how
> interfaces are meant to be used.
>
>
>
> >
> >
> > --
> > Thiago H. de Paula Figueiredo
> >
> >
> > --**--**--
> > --- To unsubscribe, e-mail:
> > users-unsubscribe@tapestry.**apache.org > che.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
>
> Since 1982, Starpoint Solutions has been a trusted source of human capital
> and solutions. We are committed to our clients, employees, environment,
> community and social concerns.  We foster an inclusive culture based on
> trust, respect, honesty and solid performance. Learn more about Starpoint
> and our social responsibility at
> http://www.starpoint.com/social_responsibility
>
> This email message from Starpoint Solutions LLC is for the sole use of
>  the intended recipient(s) and may contain confidential and privileged
>  information.  Any unauthorized review, use, disclosure or distribution is
> prohibited.  If you are not the intended recipient, please contact the
> sender by reply email and destroy all copies of the original message.
>  Opinions, conclusions and other information in this message that do not
> relate to the official business of Starpoint Solutions shall be understood
> as neither given nor endorsed by it.
>
> -
> 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: Tapestry Session Service

2013-01-25 Thread Tony Nelson
Aren't all the javascript changes in 5.4 going to break compatibility anyways?

-Original Message-
From: Howard Lewis Ship [mailto:hls...@gmail.com]
Sent: Friday, January 25, 2013 1:13 PM
To: Tapestry users
Subject: Re: Tapestry Session Service

On Fri, Jan 25, 2013 at 3:10 AM, Thiago H de Paula Figueiredo < 
thiag...@gmail.com> wrote:

> On Thu, 24 Jan 2013 14:03:52 -0200, Matías Blasi
> 
> wrote:
>
>  Hi all!
>>
>
> Hi!
>
>
>  I'm a little stuck with trying to inject the Tapestry Session Service
>> (org.apache.tapestry.services.**Session)
>>
>
> Session is not a service nor something that can injected right now.
> @Inject Request and use its getSession(boolean create) method.
>
>
>  If we cannot @Inject the Session, should it be in the .services
>> interfaces package?
>>
>
> Not every service is injectable. Not everything that is injectable is
> a service.


I would love to reorganize the Tapestry package structure, but doing so would 
break backwards compatibility in a large way. Instead, we've taken to using 
lots of documentation annotations to be more precise about how interfaces are 
meant to be used.



>
>
> --
> Thiago H. de Paula Figueiredo
>
>
> --**--**--
> --- To unsubscribe, e-mail:
> users-unsubscribe@tapestry.**apache.org che.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

Since 1982, Starpoint Solutions has been a trusted source of human capital and 
solutions. We are committed to our clients, employees, environment, community 
and social concerns.  We foster an inclusive culture based on trust, respect, 
honesty and solid performance. Learn more about Starpoint and our social 
responsibility at http://www.starpoint.com/social_responsibility

This email message from Starpoint Solutions LLC is for the sole use of  the 
intended recipient(s) and may contain confidential and privileged  information. 
 Any unauthorized review, use, disclosure or distribution is prohibited.  If 
you are not the intended recipient, please contact the sender by reply email 
and destroy all copies of the original message.  Opinions, conclusions and 
other information in this message that do not relate to the official business 
of Starpoint Solutions shall be understood as neither given nor endorsed by it.

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



Re: Tapestry 5 book is here

2013-01-25 Thread Jon Williams
Yes I've been getting the updates these past few weeks.
What I'm interested in now is v1.0 of your PDF. Complete.
Or do I have to buy it again?
That would be an Unconventional approach to early access.


On Fri, Jan 25, 2013 at 2:38 PM, Igor Drobiazko wrote:

> There were plenty of updates in the last weeks. Didn't you get them?
>
>
> On Fri, Jan 25, 2013 at 8:20 PM, Jon Williams
> wrote:
>
> > Will owners of the early access PDF get a free update to your completed
> PDF
> > Igor?
> >
> >
> > On Fri, Jan 25, 2013 at 9:54 AM, Lenny Primak  > >wrote:
> >
> > > This is a required reading for anybody working with tapestry. Great
> > job!!!
> > >
> > > On Jan 25, 2013, at 4:20 AM, Igor Drobiazko 
> > > wrote:
> > >
> > > > Dear Tapestry community,
> > > >
> > > > I'm glad to announce that the long awaited Tapestry 5 book is now
> > > available
> > > > for purchase as paperback:
> > > >
> > > >
> http://blog.tapestry5.de/index.php/2013/01/25/tapestry-5-book-is-here/
> > > >
> > > > Enjoy reading
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > > For additional commands, e-mail: users-h...@tapestry.apache.org
> > >
> > >
> >
>
>
>
> --
> Best regards,
>
> Igor Drobiazko
> http://tapestry5.de
> http://twitter.com/drobiazko
>


Re: Tapestry 5 book is here

2013-01-25 Thread Igor Drobiazko
There were plenty of updates in the last weeks. Didn't you get them?


On Fri, Jan 25, 2013 at 8:20 PM, Jon Williams
wrote:

> Will owners of the early access PDF get a free update to your completed PDF
> Igor?
>
>
> On Fri, Jan 25, 2013 at 9:54 AM, Lenny Primak  >wrote:
>
> > This is a required reading for anybody working with tapestry. Great
> job!!!
> >
> > On Jan 25, 2013, at 4:20 AM, Igor Drobiazko 
> > wrote:
> >
> > > Dear Tapestry community,
> > >
> > > I'm glad to announce that the long awaited Tapestry 5 book is now
> > available
> > > for purchase as paperback:
> > >
> > > http://blog.tapestry5.de/index.php/2013/01/25/tapestry-5-book-is-here/
> > >
> > > Enjoy reading
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>



-- 
Best regards,

Igor Drobiazko
http://tapestry5.de
http://twitter.com/drobiazko


Re: Tapestry 5 book is here

2013-01-25 Thread Jon Williams
Will owners of the early access PDF get a free update to your completed PDF
Igor?


On Fri, Jan 25, 2013 at 9:54 AM, Lenny Primak wrote:

> This is a required reading for anybody working with tapestry. Great job!!!
>
> On Jan 25, 2013, at 4:20 AM, Igor Drobiazko 
> wrote:
>
> > Dear Tapestry community,
> >
> > I'm glad to announce that the long awaited Tapestry 5 book is now
> available
> > for purchase as paperback:
> >
> > http://blog.tapestry5.de/index.php/2013/01/25/tapestry-5-book-is-here/
> >
> > Enjoy reading
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: [ANN] New project available : Kawwa

2013-01-25 Thread David Canteros
It looks great! Many examples, well documented... Tapestry examples!
Congratulations!

--
David Germán Canteros


2013/1/25 Bob Harner 

> Very very nice!
>
> On Fri, Jan 25, 2013 at 9:06 AM, Emmanuel DEMEY
>  wrote:
> > Hi Everyone
> >
> >
> > Atos Worldline is very proud to announce a new project : Kawwa, now
> > available in production at
> > https://kawwa.atosworldline.com/
> >
> >
> >
> >
> > The Kawwa Portal gives you access to more than 50 Kawwa components,
> > assembled following the best (X)HTML and CSS practices to create
> standard,
> > accessible web products.
> >
> > For each Kawwa component you will find:
> >
> >
> >
> > -  A general introduction to the component
> >
> > -  HTML, CSS and JS snippets
> >
> > -  The jQuery plug-ins needed for interactive components
> >
> >
> >
> > In the portal you will also find a download page which will allow you to
> > customize your zip file with only the components and the graphical theme
> > you need. Today only two graphical themes are available, but we’ll keep
> > adding new themes.
> >
> >
> >
> > As we love Tapestry, we have also created a Tapestry components library
> > based on these Kawwa components.
> >
> > The last SNAPSHOT is available on a Maven Repository.You just need to add
> > the following dependence in your “pom.xml”:
> >
> >
> >
> > 
> >   net.atos.tapestry
> >   tapestry5-kawwa-components
> >   2.0.4-SNAPSHOT
> > 
> >
> > 
> >   Kawwa
> >   Kawwa Repository for Maven2
> >   >http://nexus.devlab722.net/nexus/content/repositories/snapshots/
>  >  >>
> > 
> >
> >
> >
> > This contribution is based on the open-source project Tapestry5-jQuery (
> > http://tapestry5-jquery.com/)
> >
> >
> >
> > If you have questions, feel free to send an email to our distribution
> list
> > dl-ka...@atos.net.
> >
> >
> >
> > Emmanuel DEMEY and Angela RICCI
> >
> > --
> > Emmanuel DEMEY
> > Ingénieur Etude et Développement
> > ATOS Worldline
> >
> > demey.emman...@gmail.com
> >
> > Twitter : @EmmanuelDemey
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Tapestry Session Service

2013-01-25 Thread Thiago H de Paula Figueiredo
On Fri, 25 Jan 2013 16:13:18 -0200, Howard Lewis Ship   
wrote:



Not every service is injectable. Not everything that is injectable is a
service.


I was wrong in the sentence above. Every service is injectable, but not  
everything in a .services package is a service. A service is something  
that is configured and obtained through Tapestry-IoC. Session is in  
.services but isn't configured in Tapestry-IoC as a service.


--
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: Tapestry Session Service

2013-01-25 Thread Howard Lewis Ship
On Fri, Jan 25, 2013 at 3:10 AM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Thu, 24 Jan 2013 14:03:52 -0200, Matías Blasi 
> wrote:
>
>  Hi all!
>>
>
> Hi!
>
>
>  I'm a little stuck with trying to inject the Tapestry Session Service
>> (org.apache.tapestry.services.**Session)
>>
>
> Session is not a service nor something that can injected right now.
> @Inject Request and use its getSession(boolean create) method.
>
>
>  If we cannot @Inject the Session, should it be in the .services
>> interfaces package?
>>
>
> Not every service is injectable. Not everything that is injectable is a
> service.


I would love to reorganize the Tapestry package structure, but doing so
would break backwards compatibility in a large way. Instead, we've taken to
using lots of documentation annotations to be more precise about how
interfaces are meant to be used.



>
>
> --
> 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: How to log page on-load time & page size

2013-01-25 Thread Howard Lewis Ship
Tapestry 5.4 now logs page construction time to the console; can't remember
if it does it at DEBUG or INFO off the top of my head.

This information can be very insightful.

You can also get the same information from the built-in PageCatalog page.

On Fri, Jan 25, 2013 at 7:17 AM, Lance Java wrote:

> public class MyResponseWrapper extends
> javax.servlet.ServletResponseWrapper {
>private int contentLength = -1;
>
>public MyResponseWrapper(ServletResponse response) {
>   super(response);
>}
>
>public void setContentLength(int cl) {
>   super.setContentLength(cl);
>   this.contentLength = cl;
>}
>
>public int getContentLength() {
>   return contentLength;
>}
> }
>
>
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/How-to-log-page-on-load-time-page-size-tp5719514p5719536.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: Tapestry 5 book is here

2013-01-25 Thread Lenny Primak
This is a required reading for anybody working with tapestry. Great job!!!

On Jan 25, 2013, at 4:20 AM, Igor Drobiazko  wrote:

> Dear Tapestry community,
> 
> I'm glad to announce that the long awaited Tapestry 5 book is now available
> for purchase as paperback:
> 
> http://blog.tapestry5.de/index.php/2013/01/25/tapestry-5-book-is-here/
> 
> Enjoy reading

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



Re: How to log page on-load time & page size

2013-01-25 Thread Lance Java
public class MyResponseWrapper extends javax.servlet.ServletResponseWrapper {
   private int contentLength = -1;

   public MyResponseWrapper(ServletResponse response) {
  super(response);
   }

   public void setContentLength(int cl) {
  super.setContentLength(cl);
  this.contentLength = cl;
   }

   public int getContentLength() {
  return contentLength;
   }
}

   



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-log-page-on-load-time-page-size-tp5719514p5719536.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: [ANN] New project available : Kawwa

2013-01-25 Thread Bob Harner
Very very nice!

On Fri, Jan 25, 2013 at 9:06 AM, Emmanuel DEMEY
 wrote:
> Hi Everyone
>
>
> Atos Worldline is very proud to announce a new project : Kawwa, now
> available in production at
> https://kawwa.atosworldline.com/
>
>
>
>
> The Kawwa Portal gives you access to more than 50 Kawwa components,
> assembled following the best (X)HTML and CSS practices to create standard,
> accessible web products.
>
> For each Kawwa component you will find:
>
>
>
> -  A general introduction to the component
>
> -  HTML, CSS and JS snippets
>
> -  The jQuery plug-ins needed for interactive components
>
>
>
> In the portal you will also find a download page which will allow you to
> customize your zip file with only the components and the graphical theme
> you need. Today only two graphical themes are available, but we’ll keep
> adding new themes.
>
>
>
> As we love Tapestry, we have also created a Tapestry components library
> based on these Kawwa components.
>
> The last SNAPSHOT is available on a Maven Repository.You just need to add
> the following dependence in your “pom.xml”:
>
>
>
> 
>   net.atos.tapestry
>   tapestry5-kawwa-components
>   2.0.4-SNAPSHOT
> 
>
> 
>   Kawwa
>   Kawwa Repository for Maven2
>   >http://nexus.devlab722.net/nexus/content/repositories/snapshots/ >
> 
>
>
>
> This contribution is based on the open-source project Tapestry5-jQuery (
> http://tapestry5-jquery.com/)
>
>
>
> If you have questions, feel free to send an email to our distribution list
> dl-ka...@atos.net.
>
>
>
> Emmanuel DEMEY and Angela RICCI
>
> --
> Emmanuel DEMEY
> Ingénieur Etude et Développement
> ATOS Worldline
>
> demey.emman...@gmail.com
>
> Twitter : @EmmanuelDemey

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



Re: Tapestry 5 book is here

2013-01-25 Thread Chris Cureau
I've been extremely happy with my book so far...Thanks for all your hard
work, Igor! :)


On Fri, Jan 25, 2013 at 3:20 AM, Igor Drobiazko wrote:

> Dear Tapestry community,
>
> I'm glad to announce that the long awaited Tapestry 5 book is now available
> for purchase as paperback:
>
> http://blog.tapestry5.de/index.php/2013/01/25/tapestry-5-book-is-here/
>
> Enjoy reading
>


Re: Tapestry 5 book is here

2013-01-25 Thread Emmanuel DEMEY
Great News Igor !!
Thanks so much for this book !
Manu


2013/1/25 Bård Magnus Kvalheim 

> Thank you for this, looks very good.
>
> Even as a tapestry 'veteran' by now, I'm sure I'll find nice gems and
> tricks - and it will surely help new developers getting up to speed
> quickly.
>
> Just great!
>
> On Fri, Jan 25, 2013 at 11:42 AM, Christian Riedel
> wrote:
>
> > Thank you, Igor!
> >
> > 100 pages more than the early access version, good job! :-)
> >
> >
> >
> > Am 25.01.2013 um 10:20 schrieb Igor Drobiazko:
> >
> > > Dear Tapestry community,
> > >
> > > I'm glad to announce that the long awaited Tapestry 5 book is now
> > available
> > > for purchase as paperback:
> > >
> > > http://blog.tapestry5.de/index.php/2013/01/25/tapestry-5-book-is-here/
> > >
> > > Enjoy reading
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>



-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emman...@gmail.com
http://emmanueldemey.fr/

Twitter : @EmmanuelDemey


Re: How to log page on-load time & page size

2013-01-25 Thread karthi
Sorry, could not understand? how to set content length in my handler?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-log-page-on-load-time-page-size-tp5719514p5719531.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 log page on-load time & page size

2013-01-25 Thread Lance Java
Download the tapestry source and look how the GZIPFilter is contributed. You
will need to create your own
org.apache.tapestry5.services.HttpServletRequestFilter and contribute it
"before:GZIPFilter".

Perhaps you won't need to wrap the OutputStream. I *think* that tapestry is
nice enough to set the contentLength for every response. You will need to
write a response wrapper to provide a getter for the content length (since
there is not a getter in the servlet API).

public class LoggingFilter implements HttpServletRequestFilter
{
public boolean service(HttpServletRequest request, HttpServletResponse
response, HttpServletRequestHandler handler)
throws IOException
{
MyResponseWrapper responseWrapper = new MyResponseWrapper(response);
boolean handeled = handler.service(request, responseWrapper);
System.out.println(responseWrapper.getContentLength());
return handeled;
}
} 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-log-page-on-load-time-page-size-tp5719514p5719530.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 log page on-load time & page size

2013-01-25 Thread karthi
Could you give some example to log response size using OutputStream?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-log-page-on-load-time-page-size-tp5719514p5719529.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: [T.5.3] problem with sessionstate

2013-01-25 Thread Thiago H de Paula Figueiredo

Hi!

Without code we cannot answer your question.

--
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: X-Sendfile / mod_xsendfile with Tapestry 5

2013-01-25 Thread Thiago H de Paula Figueiredo
On Thu, 24 Jan 2013 14:07:31 -0200, René Bernhardsgrütter  
 wrote:



I wouldn't say that. File transfers are affected by IO, not CPU.

I've read this somewhere several months ago and yesterday again here:
https://blogs.warwick.ac.uk/chrismay/entry/mod_x_sendfile/


Have you seen the second comment in that post? It links to another post in  
the same blog saying this:


"We have two in day-to-day production at the moment. One serves about  
60GB/day of dynamic web pages and it’s CPU sits around 10% – 15% all day  
long. To be honest, a box with half as many CPUs would do the job just  
fine – but it’s nice to know that should we get a sudden increase in load  
on the app, we have more than enough headroom!"


The site serves tens of gigabytes per day with less than 15% CPU usage, so  
I still think file transfers are basically IO-bound, not CPU-bound.


--
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: Tapestry 5 book is here

2013-01-25 Thread Bård Magnus Kvalheim
Thank you for this, looks very good.

Even as a tapestry 'veteran' by now, I'm sure I'll find nice gems and
tricks - and it will surely help new developers getting up to speed quickly.

Just great!

On Fri, Jan 25, 2013 at 11:42 AM, Christian Riedel
wrote:

> Thank you, Igor!
>
> 100 pages more than the early access version, good job! :-)
>
>
>
> Am 25.01.2013 um 10:20 schrieb Igor Drobiazko:
>
> > Dear Tapestry community,
> >
> > I'm glad to announce that the long awaited Tapestry 5 book is now
> available
> > for purchase as paperback:
> >
> > http://blog.tapestry5.de/index.php/2013/01/25/tapestry-5-book-is-here/
> >
> > Enjoy reading
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: X-Sendfile / mod_xsendfile with Tapestry 5

2013-01-25 Thread Thiago H de Paula Figueiredo
On Thu, 24 Jan 2013 14:07:31 -0200, René Bernhardsgrütter  
 wrote:



Hi,


Hi!




I wouldn't say that. File transfers are affected by IO, not CPU.

I've read this somewhere several months ago and yesterday again here:
https://blogs.warwick.ac.uk/chrismay/entry/mod_x_sendfile/



I'd like to see how you implemented it.

Basically like the HowTo
[https://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile]
but I shortened it a little bit:


Quite simple, no? :)


The only ugly thing for users who want to copy the direct file link was
the event request:
[server]/index.ajaxuploadarea.download/61/nEWEaMExZ5xbJzSmNQQe?t:ac=5tAnW,
where 61 is the fileReferenceId and nEW.. the folderName.
I've now also integrated url rewriting (as
http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/).


Event URLs were never meant to be seen by end users. You can have a way  
better URL without URL rewriting by creating a page just for returning the  
StreamResponse on its onActivate() method. You'll use PageLink instead of  
ActionLink or EventLink. Just put all the info you'll need in the context  
parameter.


--
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: Tapestry Session Service

2013-01-25 Thread Thiago H de Paula Figueiredo
On Thu, 24 Jan 2013 14:03:52 -0200, Matías Blasi   
wrote:



Hi all!


Hi!


I'm a little stuck with trying to inject the Tapestry Session Service
(org.apache.tapestry.services.Session)


Session is not a service nor something that can injected right now.  
@Inject Request and use its getSession(boolean create) method.


If we cannot @Inject the Session, should it be in the .services  
interfaces package?


Not every service is injectable. Not everything that is injectable is a  
service.


--
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 log page on-load time & page size

2013-01-25 Thread karthi
Many thanks for your valuable infos :-)



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-log-page-on-load-time-page-size-tp5719514p5719523.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 log page on-load time & page size

2013-01-25 Thread Lance Java
If you really want to know how long a page takes to load in a browser, you
could use a tool like selenium [1]. 

If you want to log from the server, you might find that your servlet
container (tomcat/jetty) has a built in option for logging this info.

If not, this is probably best done by contributing a RequestFilter to the
RequestHandler. To log the response size, you will need to wrap the Response
OutputStream/Writer. You'll need to make sure that your filter occurs before
all other filters (eg the GZIPFilter).

[1] http://seleniumhq.org/



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-log-page-on-load-time-page-size-tp5719514p5719522.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: Tapestry 5 book is here

2013-01-25 Thread Christian Riedel
Thank you, Igor!

100 pages more than the early access version, good job! :-)



Am 25.01.2013 um 10:20 schrieb Igor Drobiazko:

> Dear Tapestry community,
> 
> I'm glad to announce that the long awaited Tapestry 5 book is now available
> for purchase as paperback:
> 
> http://blog.tapestry5.de/index.php/2013/01/25/tapestry-5-book-is-here/
> 
> Enjoy reading


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



Re: How to log page on-load time & page size

2013-01-25 Thread Markus Feindler
sorry, did not see, that the question has already been answered :)

> 
>  Original-Nachricht 
> Datum: Fri, 25 Jan 2013 11:40:00 +0100
> Von: "Markus Feindler" 
> An: "Tapestry users" 
> Betreff: Re: How to log page on-load time & page size
> 
> Hey,
> 
> I don't think this is technically possible on server side, since assets 
> are 
> retrieved via separate http requests and there is no way for tapestry to 
> determine which request belongs to what "page load".
> 
> > 
> >  Original-Nachricht 
> > Datum: Fri, 25 Jan 2013 01:36:42 -0800 (PST)
> > Von: karthi 
> > An: users@tapestry.apache.org
> > Betreff: How to log page on-load time & page size
> > 
> > Hi,
> > 
> > I want to log each individual pages on-load time & page size:
> > 
> > I used pageAttached, Detached methods like below:
> > 
> > void pageAttached() {
> > pageLoadStartupTime = System.currentTimeMillis();   
> > }
> > 
> > void pageDetached() {
> > logger.info("Info: page on-load time: "
> > Util.getPageOnLoadTime(pageLoadStartupTime, 
> > System.currentTimeMillis(;
> > }
> > 
> > public static long getPageOnLoadTime(long start, long end) {
> > return end-start;
> > }
> > 
> > This gives some 300ms - 400ms, 
> > However in the UI the same page in browser, I checked the page on-load 
> > time
> > using firebug option it shows 900ms
> > 
> > It reveals that firebug shows the images loading, js, css & other 
> > external
> > calls
> > 
> > Can anyone tell me is there anyway to log the on-load time like firebug
> > timing?
> > 
> > Regards,
> > Karthi.
> > 
> > 
> > 
> > --
> > View this message in context: 
> > 
> http://tapestry.1045711.n5.nabble.com/How-to-log-page-on-load-time-page-size-tp5719514.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 log page on-load time & page size

2013-01-25 Thread Markus Feindler
Hey,

I don't think this is technically possible on server side, since assets are 
retrieved via separate http requests and there is no way for tapestry to 
determine which request belongs to what "page load".

> 
>  Original-Nachricht 
> Datum: Fri, 25 Jan 2013 01:36:42 -0800 (PST)
> Von: karthi 
> An: users@tapestry.apache.org
> Betreff: How to log page on-load time & page size
> 
> Hi,
> 
> I want to log each individual pages on-load time & page size:
> 
> I used pageAttached, Detached methods like below:
> 
> void pageAttached() {
>   pageLoadStartupTime = System.currentTimeMillis();   
>   }
>   
>   void pageDetached() {
>   logger.info("Info: page on-load time: "
> Util.getPageOnLoadTime(pageLoadStartupTime, 
> System.currentTimeMillis(;
>   }
> 
> public static long getPageOnLoadTime(long start, long end) {
>   return end-start;
>   }
> 
> This gives some 300ms - 400ms, 
> However in the UI the same page in browser, I checked the page on-load 
> time
> using firebug option it shows 900ms
> 
> It reveals that firebug shows the images loading, js, css & other 
> external
> calls
> 
> Can anyone tell me is there anyway to log the on-load time like firebug
> timing?
> 
> Regards,
> Karthi.
> 
> 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/How-to-log-page-on-load-time-page-size-tp5719514.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 log page on-load time & page size

2013-01-25 Thread karthi
Thank you for your reply.

So we can log only the coding log time, & is the way I right to log the
on-load time in coding is right?

& can you tell me how to log page size also?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-log-page-on-load-time-page-size-tp5719514p5719518.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: Tapestry 5 book is here

2013-01-25 Thread Steve Eynon
Nice! You get even your own personalised PDF copy!

Sweet!
--
Steve Eynon
---
"If at first you don't succeed,
   so much for skydiving!"



On 25 January 2013 17:20, Igor Drobiazko  wrote:
> Dear Tapestry community,
>
> I'm glad to announce that the long awaited Tapestry 5 book is now available
> for purchase as paperback:
>
> http://blog.tapestry5.de/index.php/2013/01/25/tapestry-5-book-is-here/
>
> Enjoy reading

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



Re: How to log page on-load time & page size

2013-01-25 Thread Lance Java
Firebug's load-time includes things like javascript initialization and
network latency. Neither of these metrics can be measured from the server.
Keep in mind that firefox can get multiple assets in parallel and also
caches many assets.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-log-page-on-load-time-page-size-tp5719514p5719516.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



[T.5.3] problem with sessionstate

2013-01-25 Thread upgrading
hello 

I have a problem in tapestry  with a session State : 

when I valide page the session became empty. I don't find where, i loose
session. 
But when i try open an other page all of parameter are null.  
the other pages are OK if i don't use this one in first. 


I think this page is busy, due to there are lot of requests in it.  


What  can I test to go to a solution? 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T-5-3-problem-with-sessionstate-tp5719515.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: [5.4-alpha-2] Environment cloaked during ajax component event

2013-01-25 Thread Lance Java
I was considering a thread-local, I'd totally forgotten about request
attributes... how retro!!!
Thanks for your help guys, are you convinced that the cloaking introduced in
5.3 is a good idea?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/5-4-alpha-2-Environment-cloaked-during-ajax-component-event-tp5719496p5719512.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