Re: Feedback on application status page

2009-06-26 Thread Hugo Palma
Hi Jason,
thanks for your feedback.

The version i uploaded here
https://issues.apache.org/jira/browse/TAP5-570already checks for
production mode.
Regarding the page vs component, i implemented it as a page because that
seems to be the Tapestry approach for this type of stuff. But if you prefer
a component and have valid arguments for that feel free to comment on the
above issue and we'll take the discussion from there.

On Thu, Jun 25, 2009 at 23:45, Jason Lotz jasonl...@gmail.com wrote:

 I implemented this code as a component that could be used on any page (or
 in
 my case, at the bottom of Layout.tml).  This component also checks the
 Tapestry mode to determine whether or not to show itself.  The other
 primary
 change that I made is that I'm using in-line styles so that it is
 completely
 portable.

 While this wasn't rocket science, I'm always looking for a way to give back
 to such a great community.  If anyone wants this version, fire off an email
 and I'll send it your way.

 Obviously, all the credit goes to Hugo.  I simply modified it to fit my
 needs.  Thanks!

 Jason



 On Thu, Jun 25, 2009 at 1:21 PM, Hugo Palma hugo.m.pa...@gmail.com
 wrote:

  Ok, i think i got it working.
  Check out the new screenshot and code on the blog
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
 
  On Thu, Jun 25, 2009 at 14:36, Hugo Palma hugo.m.pa...@gmail.com
 wrote:
 
   Hi Igor,
   thanks for pointing that issue out.
  
   Indeed it would be cool if we could be view all session data organized
 in
   terms of ASOs and persistent fields.
   I'll give it a go.
  
  
   On Thu, Jun 25, 2009 at 14:17, Igor Drobiazko 
 igor.drobia...@gmail.com
  wrote:
  
   Nice!!!
  
   BTW see here: https://issues.apache.org/jira/browse/TAP5-570
  
  
   On Thu, Jun 25, 2009 at 11:04 AM, Hugo Palma hugo.m.pa...@gmail.com
   wrote:
  
I've created an application status page that it's very similar to
 the
service status that is bunbled with the framework but instead of
  showing
information on services it shows information on the web application
   itself.
   
You can check out the code for it and a screenshot here
   
  
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
   
I would also like to know if you guys think that such a page should
 be
included in the framework itself. If so i'll gladly create the issue
  and
appropriate patch.
   
Cheers,
Hugo
   
  
  
  
   --
   Best regards,
  
   Igor Drobiazko
  
  
  
  
 



Re: Feedback on application status page

2009-06-26 Thread P . Stavrinides
Hi Hugo,

Thanks again, I updated my page with your changes... just FYI I found that 
occasionally I get the following error:

Caused by: java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
at 
com.albourne.web.components.admin.ApplicationStatus$PersistentField.init(Unknown
 Source)
at 
com.albourne.web.components.admin.ApplicationStatus.setupRender(Unknown Source)
at 
com.albourne.web.components.admin.ApplicationStatus.setupRender(Unknown Source)
at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$SetupRenderPhase.invokeComponent(ComponentPageElementImpl.java:184)
at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.run(ComponentPageElementImpl.java:164)
at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:933)
... 83 more

Digging a little I realized it happens when the 'field' column didn't have a 
value, so:
setField(tokenizer.nextToken()); would break in this case.

I added: if (tokenizer.hasMoreTokens()) and it seems to work.

Thanks again,
Peter

- Original Message -
From: Kalle Korhonen kalle.o.korho...@gmail.com
To: Tapestry users users@tapestry.apache.org
Sent: Friday, 26 June, 2009 03:03:37 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: Feedback on application status page

Yes, very useful and would make sense to have this data/page available
in non-production mode out-of-the-box.

Kalle


On Thu, Jun 25, 2009 at 2:18 AM, Hugo Palmahugo.m.pa...@gmail.com wrote:
 I was thinking of following the same principle that the ServiceStatus page
 uses, which is to only be displayed when not in production mode.

 On Thu, Jun 25, 2009 at 10:16, Ben Gidley b...@gidley.co.uk wrote:

 I think this is useful - maybe you should include it as a component so we
 can add it an appropriately private area of our
 sites. It is in general a bad idea to leave such pages on in
 production - but they are handy for development or as protected
 diagnostic pages.

 Ben Gidley

 www.gidley.co.uk
 b...@gidley.co.uk


 On Thu, Jun 25, 2009 at 10:04 AM, Hugo Palma hugo.m.pa...@gmail.com
 wrote:

  I've created an application status page that it's very similar to the
  service status that is bunbled with the framework but instead of showing
  information on services it shows information on the web application
 itself.
 
  You can check out the code for it and a screenshot here
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
 
  I would also like to know if you guys think that such a page should be
  included in the framework itself. If so i'll gladly create the issue and
  appropriate patch.
 
  Cheers,
  Hugo
 



-
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: Feedback on application status page

2009-06-26 Thread Hugo Palma
Thanks Peter,
i'll update the code accordingly.

On Fri, Jun 26, 2009 at 10:03, p.stavrini...@albourne.com wrote:

 Hi Hugo,

 Thanks again, I updated my page with your changes... just FYI I found that
 occasionally I get the following error:

 Caused by: java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
at
 com.albourne.web.components.admin.ApplicationStatus$PersistentField.init(Unknown
 Source)
at
 com.albourne.web.components.admin.ApplicationStatus.setupRender(Unknown
 Source)
at
 com.albourne.web.components.admin.ApplicationStatus.setupRender(Unknown
 Source)
at
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$SetupRenderPhase.invokeComponent(ComponentPageElementImpl.java:184)
at
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.run(ComponentPageElementImpl.java:164)
at
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:933)
... 83 more

 Digging a little I realized it happens when the 'field' column didn't have
 a value, so:
 setField(tokenizer.nextToken()); would break in this case.

 I added: if (tokenizer.hasMoreTokens()) and it seems to work.

 Thanks again,
 Peter

 - Original Message -
 From: Kalle Korhonen kalle.o.korho...@gmail.com
 To: Tapestry users users@tapestry.apache.org
 Sent: Friday, 26 June, 2009 03:03:37 GMT +02:00 Athens, Beirut, Bucharest,
 Istanbul
 Subject: Re: Feedback on application status page

 Yes, very useful and would make sense to have this data/page available
 in non-production mode out-of-the-box.

 Kalle


 On Thu, Jun 25, 2009 at 2:18 AM, Hugo Palmahugo.m.pa...@gmail.com wrote:
  I was thinking of following the same principle that the ServiceStatus
 page
  uses, which is to only be displayed when not in production mode.
 
  On Thu, Jun 25, 2009 at 10:16, Ben Gidley b...@gidley.co.uk wrote:
 
  I think this is useful - maybe you should include it as a component so
 we
  can add it an appropriately private area of our
  sites. It is in general a bad idea to leave such pages on in
  production - but they are handy for development or as protected
  diagnostic pages.
 
  Ben Gidley
 
  www.gidley.co.uk
  b...@gidley.co.uk
 
 
  On Thu, Jun 25, 2009 at 10:04 AM, Hugo Palma hugo.m.pa...@gmail.com
  wrote:
 
   I've created an application status page that it's very similar to the
   service status that is bunbled with the framework but instead of
 showing
   information on services it shows information on the web application
  itself.
  
   You can check out the code for it and a screenshot here
  
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
  
   I would also like to know if you guys think that such a page should be
   included in the framework itself. If so i'll gladly create the issue
 and
   appropriate patch.
  
   Cheers,
   Hugo
  
 
 

 -
 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: Feedback on application status page

2009-06-26 Thread Jason Lotz
My desire for having it as a component rather than a page is that I want to
be able to see this info on every request.  I have the component display the
output below my footer and it works great.  I can always keep an eye on this
information without having to have a separate browser tab open.

Before I started using your implementation, I had created a quick and dirty
SessionDump component that I found works wonders for my understanding of
what is in the session at any given time.  If this data was on a separate
page, I wouldn't be as diligent about looking at it unless I had a reason
to.

Maybe the official Tapestry version should be both?  Implement it as a
component, but also provide a page that uses this component?  Just my 2
cents.

Jason

On Fri, Jun 26, 2009 at 4:53 AM, Hugo Palma hugo.m.pa...@gmail.com wrote:

 Hi Jason,
 thanks for your feedback.

 The version i uploaded here
 https://issues.apache.org/jira/browse/TAP5-570already checks for
 production mode.
 Regarding the page vs component, i implemented it as a page because that
 seems to be the Tapestry approach for this type of stuff. But if you prefer
 a component and have valid arguments for that feel free to comment on the
 above issue and we'll take the discussion from there.

 On Thu, Jun 25, 2009 at 23:45, Jason Lotz jasonl...@gmail.com wrote:

  I implemented this code as a component that could be used on any page (or
  in
  my case, at the bottom of Layout.tml).  This component also checks the
  Tapestry mode to determine whether or not to show itself.  The other
  primary
  change that I made is that I'm using in-line styles so that it is
  completely
  portable.
 
  While this wasn't rocket science, I'm always looking for a way to give
 back
  to such a great community.  If anyone wants this version, fire off an
 email
  and I'll send it your way.
 
  Obviously, all the credit goes to Hugo.  I simply modified it to fit my
  needs.  Thanks!
 
  Jason
 
 
 
  On Thu, Jun 25, 2009 at 1:21 PM, Hugo Palma hugo.m.pa...@gmail.com
  wrote:
 
   Ok, i think i got it working.
   Check out the new screenshot and code on the blog
  
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
  
   On Thu, Jun 25, 2009 at 14:36, Hugo Palma hugo.m.pa...@gmail.com
  wrote:
  
Hi Igor,
thanks for pointing that issue out.
   
Indeed it would be cool if we could be view all session data
 organized
  in
terms of ASOs and persistent fields.
I'll give it a go.
   
   
On Thu, Jun 25, 2009 at 14:17, Igor Drobiazko 
  igor.drobia...@gmail.com
   wrote:
   
Nice!!!
   
BTW see here: https://issues.apache.org/jira/browse/TAP5-570
   
   
On Thu, Jun 25, 2009 at 11:04 AM, Hugo Palma 
 hugo.m.pa...@gmail.com
wrote:
   
 I've created an application status page that it's very similar to
  the
 service status that is bunbled with the framework but instead of
   showing
 information on services it shows information on the web
 application
itself.

 You can check out the code for it and a screenshot here

   
  
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/

 I would also like to know if you guys think that such a page
 should
  be
 included in the framework itself. If so i'll gladly create the
 issue
   and
 appropriate patch.

 Cheers,
 Hugo

   
   
   
--
Best regards,
   
Igor Drobiazko
   
   
   
   
  
 



Feedback on application status page

2009-06-25 Thread Hugo Palma
I've created an application status page that it's very similar to the
service status that is bunbled with the framework but instead of showing
information on services it shows information on the web application itself.

You can check out the code for it and a screenshot here
http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/

I would also like to know if you guys think that such a page should be
included in the framework itself. If so i'll gladly create the issue and
appropriate patch.

Cheers,
Hugo


Re: Feedback on application status page

2009-06-25 Thread Ben Gidley
I think this is useful - maybe you should include it as a component so we
can add it an appropriately private area of our
sites. It is in general a bad idea to leave such pages on in
production - but they are handy for development or as protected
diagnostic pages.

Ben Gidley

www.gidley.co.uk
b...@gidley.co.uk


On Thu, Jun 25, 2009 at 10:04 AM, Hugo Palma hugo.m.pa...@gmail.com wrote:

 I've created an application status page that it's very similar to the
 service status that is bunbled with the framework but instead of showing
 information on services it shows information on the web application itself.

 You can check out the code for it and a screenshot here
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/

 I would also like to know if you guys think that such a page should be
 included in the framework itself. If so i'll gladly create the issue and
 appropriate patch.

 Cheers,
 Hugo



Re: Feedback on application status page

2009-06-25 Thread Hugo Palma
I was thinking of following the same principle that the ServiceStatus page
uses, which is to only be displayed when not in production mode.

On Thu, Jun 25, 2009 at 10:16, Ben Gidley b...@gidley.co.uk wrote:

 I think this is useful - maybe you should include it as a component so we
 can add it an appropriately private area of our
 sites. It is in general a bad idea to leave such pages on in
 production - but they are handy for development or as protected
 diagnostic pages.

 Ben Gidley

 www.gidley.co.uk
 b...@gidley.co.uk


 On Thu, Jun 25, 2009 at 10:04 AM, Hugo Palma hugo.m.pa...@gmail.com
 wrote:

  I've created an application status page that it's very similar to the
  service status that is bunbled with the framework but instead of showing
  information on services it shows information on the web application
 itself.
 
  You can check out the code for it and a screenshot here
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
 
  I would also like to know if you guys think that such a page should be
  included in the framework itself. If so i'll gladly create the issue and
  appropriate patch.
 
  Cheers,
  Hugo
 



Re: Feedback on application status page

2009-06-25 Thread Piero Sartini
Hi Hugo!

This is very useful! Just gave it a try and found a bug:

${currentSessionAttribute.size} seems to be empty or NULL for SSOs.
This leads to a NullPointerException within formatBytes().

Piero


Am Donnerstag, 25. Juni 2009 11:04:09 schrieb Hugo Palma:
 I've created an application status page that it's very similar to the
 service status that is bunbled with the framework but instead of showing
 information on services it shows information on the web application itself.

 You can check out the code for it and a screenshot here
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/

 I would also like to know if you guys think that such a page should be
 included in the framework itself. If so i'll gladly create the issue and
 appropriate patch.

 Cheers,
 Hugo


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



Re: Feedback on application status page

2009-06-25 Thread P . Stavrinides
Thanks for sharing, nice idea!

 I was thinking of following the same principle that the ServiceStatus page
 uses, which is to only be displayed when not in production mode.
+1 that should be good enough, the only consideration is to decide what follow 
up action to take 

Peter

- Original Message -
From: Hugo Palma hugo.m.pa...@gmail.com
To: Tapestry users users@tapestry.apache.org
Sent: Thursday, 25 June, 2009 12:18:07 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: Feedback on application status page

I was thinking of following the same principle that the ServiceStatus page
uses, which is to only be displayed when not in production mode.

On Thu, Jun 25, 2009 at 10:16, Ben Gidley b...@gidley.co.uk wrote:

 I think this is useful - maybe you should include it as a component so we
 can add it an appropriately private area of our
 sites. It is in general a bad idea to leave such pages on in
 production - but they are handy for development or as protected
 diagnostic pages.

 Ben Gidley

 www.gidley.co.uk
 b...@gidley.co.uk


 On Thu, Jun 25, 2009 at 10:04 AM, Hugo Palma hugo.m.pa...@gmail.com
 wrote:

  I've created an application status page that it's very similar to the
  service status that is bunbled with the framework but instead of showing
  information on services it shows information on the web application
 itself.
 
  You can check out the code for it and a screenshot here
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
 
  I would also like to know if you guys think that such a page should be
  included in the framework itself. If so i'll gladly create the issue and
  appropriate patch.
 
  Cheers,
  Hugo
 


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



Re: Feedback on application status page

2009-06-25 Thread Hugo Palma
Thanks Piero, that is indeed a bug.
That happens because your SSO is not serializable.

I've updated my post with the fix.

On Thu, Jun 25, 2009 at 10:22, Piero Sartini li...@pierosartini.de wrote:

 Hi Hugo!

 This is very useful! Just gave it a try and found a bug:

 ${currentSessionAttribute.size} seems to be empty or NULL for SSOs.
 This leads to a NullPointerException within formatBytes().

Piero


 Am Donnerstag, 25. Juni 2009 11:04:09 schrieb Hugo Palma:
  I've created an application status page that it's very similar to the
  service status that is bunbled with the framework but instead of showing
  information on services it shows information on the web application
 itself.
 
  You can check out the code for it and a screenshot here
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
 
  I would also like to know if you guys think that such a page should be
  included in the framework itself. If so i'll gladly create the issue and
  appropriate patch.
 
  Cheers,
  Hugo


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




Re: Feedback on application status page

2009-06-25 Thread Hugo Palma
Glad i can be of help :o)

On Thu, Jun 25, 2009 at 10:37, p.stavrini...@albourne.com wrote:

 Thanks for sharing, nice idea!

  I was thinking of following the same principle that the ServiceStatus
 page
  uses, which is to only be displayed when not in production mode.
 +1 that should be good enough, the only consideration is to decide what
 follow up action to take


I think the next step if no more obvious bugs are found is for me to create
a patch and submit an issue for inclusion in Tapestry.




 Peter

 - Original Message -
 From: Hugo Palma hugo.m.pa...@gmail.com
 To: Tapestry users users@tapestry.apache.org
 Sent: Thursday, 25 June, 2009 12:18:07 GMT +02:00 Athens, Beirut,
 Bucharest, Istanbul
 Subject: Re: Feedback on application status page

 I was thinking of following the same principle that the ServiceStatus page
 uses, which is to only be displayed when not in production mode.

 On Thu, Jun 25, 2009 at 10:16, Ben Gidley b...@gidley.co.uk wrote:

  I think this is useful - maybe you should include it as a component so we
  can add it an appropriately private area of our
  sites. It is in general a bad idea to leave such pages on in
  production - but they are handy for development or as protected
  diagnostic pages.
 
  Ben Gidley
 
  www.gidley.co.uk
  b...@gidley.co.uk
 
 
  On Thu, Jun 25, 2009 at 10:04 AM, Hugo Palma hugo.m.pa...@gmail.com
  wrote:
 
   I've created an application status page that it's very similar to the
   service status that is bunbled with the framework but instead of
 showing
   information on services it shows information on the web application
  itself.
  
   You can check out the code for it and a screenshot here
  
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
  
   I would also like to know if you guys think that such a page should be
   included in the framework itself. If so i'll gladly create the issue
 and
   appropriate patch.
  
   Cheers,
   Hugo
  
 

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




Re: Feedback on application status page

2009-06-25 Thread Igor Drobiazko
Nice!!!

BTW see here: https://issues.apache.org/jira/browse/TAP5-570


On Thu, Jun 25, 2009 at 11:04 AM, Hugo Palma hugo.m.pa...@gmail.com wrote:

 I've created an application status page that it's very similar to the
 service status that is bunbled with the framework but instead of showing
 information on services it shows information on the web application itself.

 You can check out the code for it and a screenshot here
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/

 I would also like to know if you guys think that such a page should be
 included in the framework itself. If so i'll gladly create the issue and
 appropriate patch.

 Cheers,
 Hugo




-- 
Best regards,

Igor Drobiazko


Re: Feedback on application status page

2009-06-25 Thread Hugo Palma
Hi Igor,
thanks for pointing that issue out.

Indeed it would be cool if we could be view all session data organized in
terms of ASOs and persistent fields.
I'll give it a go.

On Thu, Jun 25, 2009 at 14:17, Igor Drobiazko igor.drobia...@gmail.comwrote:

 Nice!!!

 BTW see here: https://issues.apache.org/jira/browse/TAP5-570


 On Thu, Jun 25, 2009 at 11:04 AM, Hugo Palma hugo.m.pa...@gmail.com
 wrote:

  I've created an application status page that it's very similar to the
  service status that is bunbled with the framework but instead of showing
  information on services it shows information on the web application
 itself.
 
  You can check out the code for it and a screenshot here
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
 
  I would also like to know if you guys think that such a page should be
  included in the framework itself. If so i'll gladly create the issue and
  appropriate patch.
 
  Cheers,
  Hugo
 



 --
 Best regards,

 Igor Drobiazko



Re: Feedback on application status page

2009-06-25 Thread P . Stavrinides
 Indeed it would be cool if we could be view all session data organized in
 terms of ASOs and persistent fields.
 I'll give it a go.
If I am reading this right, you are trying to view this data for 'all 
sessions'... Hopefully it saves you some time, but the HttpSessionContext 
interface was the given way of doing this via the ServletAPI but was deprecated 
as of 2.1 because it was seen as a security risk:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSessionContext.html

It just so happens that earlier today I modified your page to do exactly 
this... since I already store the HttpSession object in my application in a map 
it was trivial, but I don't know if Tapestry gives you access to this 
interface. 

Cheers
Peter





- Original Message -
From: Hugo Palma hugo.m.pa...@gmail.com
To: Tapestry users users@tapestry.apache.org
Sent: Thursday, 25 June, 2009 16:36:37 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: Feedback on application status page

Hi Igor,
thanks for pointing that issue out.

Indeed it would be cool if we could be view all session data organized in
terms of ASOs and persistent fields.
I'll give it a go.

On Thu, Jun 25, 2009 at 14:17, Igor Drobiazko igor.drobia...@gmail.comwrote:

 Nice!!!

 BTW see here: https://issues.apache.org/jira/browse/TAP5-570


 On Thu, Jun 25, 2009 at 11:04 AM, Hugo Palma hugo.m.pa...@gmail.com
 wrote:

  I've created an application status page that it's very similar to the
  service status that is bunbled with the framework but instead of showing
  information on services it shows information on the web application
 itself.
 
  You can check out the code for it and a screenshot here
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
 
  I would also like to know if you guys think that such a page should be
  included in the framework itself. If so i'll gladly create the issue and
  appropriate patch.
 
  Cheers,
  Hugo
 



 --
 Best regards,

 Igor Drobiazko


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



Re: Feedback on application status page

2009-06-25 Thread Hugo Palma
This page only shows information about the current session.

The only way to show this infomation about all sessions with recent servlet
implementations AFAIK is to use a session filter that stores every created
session in a static manner. But as this solution would be more intrusive in
your application i decided to go with the current session only
implementation.


On Thu, Jun 25, 2009 at 15:01, p.stavrini...@albourne.com wrote:

  Indeed it would be cool if we could be view all session data organized in
  terms of ASOs and persistent fields.
  I'll give it a go.
 If I am reading this right, you are trying to view this data for 'all
 sessions'... Hopefully it saves you some time, but the HttpSessionContext
 interface was the given way of doing this via the ServletAPI but was
 deprecated as of 2.1 because it was seen as a security risk:

 http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSessionContext.html

 It just so happens that earlier today I modified your page to do exactly
 this... since I already store the HttpSession object in my application in a
 map it was trivial, but I don't know if Tapestry gives you access to this
 interface.

 Cheers
 Peter





 - Original Message -
 From: Hugo Palma hugo.m.pa...@gmail.com
 To: Tapestry users users@tapestry.apache.org
 Sent: Thursday, 25 June, 2009 16:36:37 GMT +02:00 Athens, Beirut,
 Bucharest, Istanbul
 Subject: Re: Feedback on application status page

 Hi Igor,
 thanks for pointing that issue out.

 Indeed it would be cool if we could be view all session data organized in
 terms of ASOs and persistent fields.
 I'll give it a go.

 On Thu, Jun 25, 2009 at 14:17, Igor Drobiazko igor.drobia...@gmail.com
 wrote:

  Nice!!!
 
  BTW see here: https://issues.apache.org/jira/browse/TAP5-570
 
 
  On Thu, Jun 25, 2009 at 11:04 AM, Hugo Palma hugo.m.pa...@gmail.com
  wrote:
 
   I've created an application status page that it's very similar to the
   service status that is bunbled with the framework but instead of
 showing
   information on services it shows information on the web application
  itself.
  
   You can check out the code for it and a screenshot here
  
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
  
   I would also like to know if you guys think that such a page should be
   included in the framework itself. If so i'll gladly create the issue
 and
   appropriate patch.
  
   Cheers,
   Hugo
  
 
 
 
  --
  Best regards,
 
  Igor Drobiazko
 

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




Re: Feedback on application status page

2009-06-25 Thread Hugo Palma
Ok, i think i got it working.
Check out the new screenshot and code on the blog
http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/

On Thu, Jun 25, 2009 at 14:36, Hugo Palma hugo.m.pa...@gmail.com wrote:

 Hi Igor,
 thanks for pointing that issue out.

 Indeed it would be cool if we could be view all session data organized in
 terms of ASOs and persistent fields.
 I'll give it a go.


 On Thu, Jun 25, 2009 at 14:17, Igor Drobiazko igor.drobia...@gmail.comwrote:

 Nice!!!

 BTW see here: https://issues.apache.org/jira/browse/TAP5-570


 On Thu, Jun 25, 2009 at 11:04 AM, Hugo Palma hugo.m.pa...@gmail.com
 wrote:

  I've created an application status page that it's very similar to the
  service status that is bunbled with the framework but instead of showing
  information on services it shows information on the web application
 itself.
 
  You can check out the code for it and a screenshot here
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
 
  I would also like to know if you guys think that such a page should be
  included in the framework itself. If so i'll gladly create the issue and
  appropriate patch.
 
  Cheers,
  Hugo
 



 --
 Best regards,

 Igor Drobiazko






Re: Feedback on application status page

2009-06-25 Thread Jason Lotz
I implemented this code as a component that could be used on any page (or in
my case, at the bottom of Layout.tml).  This component also checks the
Tapestry mode to determine whether or not to show itself.  The other primary
change that I made is that I'm using in-line styles so that it is completely
portable.

While this wasn't rocket science, I'm always looking for a way to give back
to such a great community.  If anyone wants this version, fire off an email
and I'll send it your way.

Obviously, all the credit goes to Hugo.  I simply modified it to fit my
needs.  Thanks!

Jason



On Thu, Jun 25, 2009 at 1:21 PM, Hugo Palma hugo.m.pa...@gmail.com wrote:

 Ok, i think i got it working.
 Check out the new screenshot and code on the blog
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/

 On Thu, Jun 25, 2009 at 14:36, Hugo Palma hugo.m.pa...@gmail.com wrote:

  Hi Igor,
  thanks for pointing that issue out.
 
  Indeed it would be cool if we could be view all session data organized in
  terms of ASOs and persistent fields.
  I'll give it a go.
 
 
  On Thu, Jun 25, 2009 at 14:17, Igor Drobiazko igor.drobia...@gmail.com
 wrote:
 
  Nice!!!
 
  BTW see here: https://issues.apache.org/jira/browse/TAP5-570
 
 
  On Thu, Jun 25, 2009 at 11:04 AM, Hugo Palma hugo.m.pa...@gmail.com
  wrote:
 
   I've created an application status page that it's very similar to the
   service status that is bunbled with the framework but instead of
 showing
   information on services it shows information on the web application
  itself.
  
   You can check out the code for it and a screenshot here
  
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
  
   I would also like to know if you guys think that such a page should be
   included in the framework itself. If so i'll gladly create the issue
 and
   appropriate patch.
  
   Cheers,
   Hugo
  
 
 
 
  --
  Best regards,
 
  Igor Drobiazko
 
 
 
 



Re: Feedback on application status page

2009-06-25 Thread Kalle Korhonen
Yes, very useful and would make sense to have this data/page available
in non-production mode out-of-the-box.

Kalle


On Thu, Jun 25, 2009 at 2:18 AM, Hugo Palmahugo.m.pa...@gmail.com wrote:
 I was thinking of following the same principle that the ServiceStatus page
 uses, which is to only be displayed when not in production mode.

 On Thu, Jun 25, 2009 at 10:16, Ben Gidley b...@gidley.co.uk wrote:

 I think this is useful - maybe you should include it as a component so we
 can add it an appropriately private area of our
 sites. It is in general a bad idea to leave such pages on in
 production - but they are handy for development or as protected
 diagnostic pages.

 Ben Gidley

 www.gidley.co.uk
 b...@gidley.co.uk


 On Thu, Jun 25, 2009 at 10:04 AM, Hugo Palma hugo.m.pa...@gmail.com
 wrote:

  I've created an application status page that it's very similar to the
  service status that is bunbled with the framework but instead of showing
  information on services it shows information on the web application
 itself.
 
  You can check out the code for it and a screenshot here
 
 http://hugopalma.wordpress.com/2009/06/24/tapestry-application-status-page/
 
  I would also like to know if you guys think that such a page should be
  included in the framework itself. If so i'll gladly create the issue and
  appropriate patch.
 
  Cheers,
  Hugo
 



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