Re: T5: Very strange issue getting unreadable code on Tomca

2009-05-19 Thread DH
Forget to mention that T5's gzip is enabled. If gzip is disabled, tomcat6 is ok too. Summary: If tomat 5.x, everything is ok whether gzip is enabled or not. If tomcat6.x (we have tested on 6.0.18 too), gzip disabled, OK; Gzip enabled, all failed. DH - Original Message - From: "Borut B

Re: [T5.1] Mini tutorial em portugues (CRUD usando Hibernate)

2009-05-19 Thread Thiago H. de Paula Figueiredo
Em Tue, 19 May 2009 22:28:15 -0300, Marcus Veloso escreveu: http://tapestry5.wikidot.com/ Nice work, Marcus! To add to the list of Portuguese Tapestry texts, I've made an introductory presentation about Tapestry (unfortunately a bit outdated now, I hope to fix this soon) that includes

[T5.1] Mini tutorial em portugues (CRUD usando Hibernate)

2009-05-19 Thread Marcus Veloso
http://tapestry5.wikidot.com/

Re: [T5] TapestryIoC Registry Interop with other Servlets

2009-05-19 Thread Thiago H. de Paula Figueiredo
Em Tue, 19 May 2009 21:03:42 -0300, César Lesc escreveu: Thanks a lot Thiago! You're welcome That i did was to integrate BlazeDS (Flex) with Tapestry5, and it was pretty easy, if someone is interested, there is a little project in google code ( http://code.google.com/p/guice-blazeds/ ) t

Re: [T5] TapestryIoC Registry Interop with other Servlets

2009-05-19 Thread César Lesc
Thanks a lot Thiago! That i did was to integrate BlazeDS (Flex) with Tapestry5, and it was pretty easy, if someone is interested, there is a little project in google code ( http://code.google.com/p/guice-blazeds/ ) that did the most (if not all) of the work. -

Re: t5: printing?

2009-05-19 Thread Thiago H. de Paula Figueiredo
Em Tue, 19 May 2009 20:22:56 -0300, Angelo Chen escreveu: Hi, Hi! This might not be related to tapestry 5, just a quick question: need to provide a way to print a receipt in my t5 app, any idea how to achieve this? thanks. What about some Javascript (window.print()) and CSS Print? So

t5: printing?

2009-05-19 Thread Angelo Chen
Hi, This might not be related to tapestry 5, just a quick question: need to provide a way to print a receipt in my t5 app, any idea how to achieve this? thanks. Angelo -- View this message in context: http://www.nabble.com/t5%3A-printing--tp23626244p23626244.html Sent from the Tapestry - User

Re: [T5] TapestryIoC Registry Interop with other Servlets

2009-05-19 Thread Thiago H. de Paula Figueiredo
Em Tue, 19 May 2009 18:21:25 -0300, César Lesc escreveu: Hi, Hi! I have a Tap5 Webapp that define some services How i can access these services from another servlet in the same webapp? there is any reference to the Registry that i can use? Get the ServletContext and invoke servletCon

Re: again on webservices

2009-05-19 Thread Thiago H. de Paula Figueiredo
Em Tue, 19 May 2009 15:57:36 -0300, Andrea Chiumenti escreveu: I have a simple question: may a T5 page behave like a webservice (soap) ? Yes. Why not? :) You can use Tapestry's templating engine to generate the answer or use another code or framework to generate the answer and return it a

[T5] TapestryIoC Registry Interop with other Servlets

2009-05-19 Thread César Lesc
Hi, I have a Tap5 Webapp that define some services How i can access these services from another servlet in the same webapp? there is any reference to the Registry that i can use? Thanks César. - To unsubscribe, e-mail: users-

Re: [Tapestry 5.1]Loop with checkboxes

2009-05-19 Thread b...@umd
I finally created my own ControlledCheckbox mixin class. It solved this issue. Thanks b...@umd wrote: > > Hi, > > I am new in Tapestry and I am currently developing a webapp which aims at > launching virtual machine. I created a form in my .tml file with basic > inputs (TextArea, Checkbox, etc)

again on webservices

2009-05-19 Thread Andrea Chiumenti
I have a simple question: may a T5 page behave like a webservice (soap) ? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Changing logging level at runtime

2009-05-19 Thread Paul Field
Just some random ideas you could explore... It is possible to expose Log4J via JMX. Hivemind (Tapestry 4) used to do this with a simple piece of configuration (http://hivemind.apache.org/hivemind1/hivemind-jmx/manageLog4j.html). A bit of Googling shows how you can do Log4J level changes with a

Re: T5 Read parameters form context.xml

2009-05-19 Thread ptitcon51
Thanx all for your responses. Finally, I use java.utils.Properties class. A regular solution like Borut's apache solution. It's for a simple LDAP config, so I don't use DOM for the moment. Maybe later... It's a shame that T5 haven't a great solution like @config(value="myProp") Thx all! ptit

Re: [t5.0.18] Secure Annotation / BaseURLSource

2009-05-19 Thread Dave Greggory
I'm attempting to contribute my own RequestSecurityManager, but if anybody else has a better idea where I don't have to touch internal stuff let me know. - Original Message From: Dave Greggory To: Tapestry users Sent: Tuesday, May 19, 2009 10:51:41 AM Subject: Re: [t5.0.18] Secure A

Re: [t5.0.18] Secure Annotation / BaseURLSource

2009-05-19 Thread Dave Greggory
Well looks like our internal network structure is pretty set and can't be changed. Users <-- internet (http / https connections ) --> load balancer/firewall <-- internal network (http) --> tomcat We have a way of determining from within a tomcat application whether internet connection to fir

Re: T5: Very strange issue getting unreadable code on Tomca

2009-05-19 Thread Borut Bolčina
I would try 6.0.18 first. 2009/5/19 dh ning > Hi, > > One of my friend's T5 application run into a strange issue when running in > Tomcat6.0.16 (not test in other tomcat yet, but is ok in Jetty 6.1.17): In > browser(IE and Firefox) customers can sometimes (5%) see unreadable code, > especially

Re: T5 Read parameters form context.xml

2009-05-19 Thread Borut Bolčina
Have a look at http://www.chenillekit.org/chenillekit-core/configuration.html which uses http://commons.apache.org/configuration/ -Borut 2009/5/19 ptitcon51 > > Hi all! > > T5 reads xml file to configure himself. > But I don't know if a sexy solution exists to do it myself. > I want to exter

Re: Changing logging level at runtime

2009-05-19 Thread Peter Stavrinides
I have seen this code used with configureAndWatch: URL url = this.getClass().getResource("log4j.properties"); // Configure the properties and observe the file every 2 seconds PropertyConfigurator.configureAndWatch(url.getPath(), 2000); But it is said to be problematic as it may cause issues with s

Re: Changing logging level at runtime

2009-05-19 Thread Thiago H. de Paula Figueiredo
On Tue, May 19, 2009 at 10:18 AM, Borut Bolčina wrote: > I am sure Tapestry offers simpler solution (configuring some service) or at > least offers the infrastructure to implement behind the scenes periodic > reading of the log4j configuration. > Does it? No. Tapestry doesn't even depends on log4

Re: Message catalog encoding

2009-05-19 Thread Andreas Andreou
There's also an eclipse plugin that help with .properties (and does the convertions) - can't quite remember the name though... On Tue, May 19, 2009 at 3:28 PM, Borut Bolčina wrote: > Eclipse does not convert your properties file to utf-8 when you select utf-8 > encoding in properties of the file.

Re: Changing logging level at runtime

2009-05-19 Thread Borut Bolčina
I am sure Tapestry offers simpler solution (configuring some service) or at least offers the infrastructure to implement behind the scenes periodic reading of the log4j configuration. Does it? 2009/5/19 Alex Shneyderman > On Tue, May 19, 2009 at 2:33 PM, Borut Bolčina > wrote: > > Actually we

getting httpserver instance

2009-05-19 Thread Andrea Chiumenti
Hello I'm using Tapestry-5.1.0.4 and I need to do something like: Endpoint endpoint = Endpoint.create(serviceBoundByTapestry); HttpContext context = httpServer.createContext("/hello"); endpoint.publish(context); Is it possible to get the httpServer instance ? is there a Service to inject for this

Re: Changing logging level at runtime

2009-05-19 Thread Alex Shneyderman
On Tue, May 19, 2009 at 2:33 PM, Borut Bolčina wrote: > Actually we do have this web app in cluster. in this case you will have to find out how to propagate level changes to all the instances of the cluster. > Are you saying that I should run this simple standalone java app to change > the log l

Re: Changing logging level at runtime

2009-05-19 Thread Borut Bolčina
Actually we do have this web app in cluster. Are you saying that I should run this simple standalone java app to change the log level of the web app? -Borut 2009/5/19 Alex Shneyderman > Write a little app to adjust debug levels on the fly. The basics of log4j > are: > > Logger lg = Logger.getL

Re: T5: Passing named/structured-type params in URLs?

2009-05-19 Thread Andy Buckley
Thiago H. de Paula Figueiredo wrote: > Em Mon, 18 May 2009 13:31:43 -0300, Andy Buckley > escreveu: > >> One final, final (I hope) thing: the decoded context appears to be >> shared between pages using the same session, > > They aren't. Maybe you're populating persisted fields . . . > >> pr

Re: Message catalog encoding

2009-05-19 Thread Borut Bolčina
Eclipse does not convert your properties file to utf-8 when you select utf-8 encoding in properties of the file. Use Notepad++ (for example) for converting files between various encodings. I configured the eclipse to open my utf'8 encoded property files in notepad++ instead of build in editor. Als

Re: Changing logging level at runtime

2009-05-19 Thread Alex Shneyderman
Write a little app to adjust debug levels on the fly. The basics of log4j are: Logger lg = Logger.getLogger( "org.qi4j" ); lg.setLevel( Level.INFO ); 2 things to watch out for: 1. Clusters. 2. Classes are available in JVM only when loaded. So you will need a listing of them before you deploy the

Re: Message catalog encoding

2009-05-19 Thread Thiago H. de Paula Figueiredo
On Mon, May 18, 2009 at 6:02 PM, Christian Senk wrote: > Hi, Hi! > it seems that i have a serious problem with the message catalog encoding. > the default eclipse encoding creating new and saving *.properties files > seems to be ISO-8859-1. Also if the encoding was UTF-8. eclipse change it > to

Re: T5 Read parameters form context.xml

2009-05-19 Thread Thiago H. de Paula Figueiredo
On Tue, May 19, 2009 at 7:38 AM, ptitcon51 wrote: > Hi all! Hi! > T5 reads xml file to configure himself. It doesn't read XML files for configuration, just for page and component templates. web.xml is read by the servlet container (Jetty, Tomcat, etc), not by Tapestry. > But I don't know if a

Re: Changing logging level at runtime

2009-05-19 Thread Borut Bolčina
Tomcat 2009/5/19 Joachim Van der Auwera > use JBoss? > > > Borut Bolčina wrote: > >> Hi, >> >> I've been using log4j's configureAndWatch in some of my backend java apps. >> I >> want to be able to change log4j.properties for my T5.0.18 web app and see >> the change (log level) in my logs without

Re: Changing logging level at runtime

2009-05-19 Thread Joachim Van der Auwera
use JBoss? Borut Bolčina wrote: Hi, I've been using log4j's configureAndWatch in some of my backend java apps. I want to be able to change log4j.properties for my T5.0.18 web app and see the change (log level) in my logs without restarting Tomcat. My goal is to switch to debug level when I see

Changing logging level at runtime

2009-05-19 Thread Borut Bolčina
Hi, I've been using log4j's configureAndWatch in some of my backend java apps. I want to be able to change log4j.properties for my T5.0.18 web app and see the change (log level) in my logs without restarting Tomcat. My goal is to switch to debug level when I see "fishy behaviur" in the production

T5 Components with parameters inside a loop

2009-05-19 Thread rmkkk
Hello, I have components with parameters. I want to display them inside a loop. For instance I have a list with two type1 components and two type2 components. When I try to display them inside a loop I have 2 times the first type1 component and 2 times the type2 component. I don't see where it c

T5 Read parameters form context.xml

2009-05-19 Thread ptitcon51
Hi all! T5 reads xml file to configure himself. But I don't know if a sexy solution exists to do it myself. I want to externalize parameters (principally Strings) in my context.xml. Like this : I could read my xml file with Properties class like this: properties.load("context.xml") properti