Re: @Secure solution (was Re: [t5.0.18] Secure Annotation / BaseURLSource)

2010-02-09 Thread Geoff Callender
Thanks, Peter. That kind of practical advice is very good to know in advance. Geoff On 09/02/2010, at 10:20 PM, Peter Stavrinides wrote: > Hi Geoff, > > Yes thats a pretty robust configuration, we have Tapestry configured this way > in production for a couple of years now without issues, if yo

Re: How to flush cached pages for a user when locale is changed

2010-02-09 Thread Juan E. Maya
What r u trying to accomplish? If u want the pages to see the new locale u can use LocalizationSetter service. Normally what i do is to add a PageRenderRequestFilter that obtains the user locale (from database or cookie) and then u just need to call localizationSetter.setLocaleFromLocaleName(loca

Re: Adding textfields to a form dynamically

2010-02-09 Thread Michael Prescott
If you can't count on JavaScript, then you need to do a round trip to the server to add new form fields.. in which case, you should be okay using conventional techniques. (e.g. add a black entry to your List, re-render the page). Why don't you want to use @Persist? Michael On Tue, Feb 9, 2010 a

How to flush cached pages for a user when locale is changed

2010-02-09 Thread N T R PHANI KUMAR
hi I want to flush the cached pages when i change the locale for the user. how can i do that? thanks - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Memory Leaks

2010-02-09 Thread Howard Lewis Ship
Tapestry does allocate a good number of temporary objects when processing a request (i.e., the nodes in the DOM tree). These are very short lived and are quickly (and very efficiently ) reclaimed by the GC on the next collection. Objects in Tapestry tend to either be very short lived, or eternal (

Re: web service problem

2010-02-09 Thread Jun Tsai
JAX-WS 2010/2/9 Peter Stavrinides > Jun, what does your binding look like? > > regards, > Peter > > > - Original Message - > From: "Jun Tsai" > To: "Tapestry users" > Sent: Tuesday, 9 February, 2010 07:08:18 GMT +02:00 Athens, Beirut, > Bucharest, Istanbul > Subject: Re: web service pr

Re: T4 receiving calls from external web site

2010-02-09 Thread Ivano Luberti
Good to know! I was misleaded by the first sentence in the warning at http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html and I didn't want to make all the configuration only to know that it wouldn't work Andreas Andreou ha scritto: > just enable friendly url - > then > http://s

Re: T4 receiving calls from external web site

2010-02-09 Thread Andreas Andreou
just enable friendly url - then http://servername/appname?page=RispKo&service=page will become http://servername/RispKo.html So, if the PGS requests http://servername/RispKo.html?par1=value&par2=value you can get those values as normal (i.e. cycle.getParameter()) On Tue, Feb 9, 2010 at 13:51, Iva

T4 receiving calls from external web site

2010-02-09 Thread Ivano Luberti
Another issue about T4 The web site I'm developing must accept requests from an external web site. It is a payment gateway system (PGS) to whom I redirect the user and after payment has been (successfully or not) completed the pgs redirect the user browser to an appropriate link of my web site. Whe

RE: Memory Leaks

2010-02-09 Thread Jim O'Callaghan
Thiago, Thanks for the quick reply. I haven't configured the tapestry.page-pool.* symbols so am using the defaults for them. I'm not at the stage yet where I am profiling with some load testing software - this is just something I noticed when visually monitoring the relevant java process. It

Re: @Secure solution (was Re: [t5.0.18] Secure Annotation / BaseURLSource)

2010-02-09 Thread Peter Stavrinides
Hi Geoff, Yes thats a pretty robust configuration, we have Tapestry configured this way in production for a couple of years now without issues, if you can use a recent version of Apache, i.e.: 2.1 onwards then its best to use the built in mod_proxy_ajp module: http://httpd.apache.org/docs/2.1/m

Re: Memory Leaks

2010-02-09 Thread Thiago H. de Paula Figueiredo
What are your values for the tapestry.page-pool.* symbols? Have you tested making 1k or 10k request and then taking another used memory reading? Some time ago, someone here (sorry, I forgot the name) posted a test like the one I'm suggesting above (a load test). It found out that Tapestry,

Memory Leaks

2010-02-09 Thread Jim O'Callaghan
Looking at the memory (private working set) used by the java process my Tapestry 5 app is running under, I notice that when running through the same request cycle with PRODUCTION_MODE set to true, I am getting an increase of approx 4K per repeated request. Is this typical or something to be concer

Re: Adding textfields to a form dynamically

2010-02-09 Thread Ulrich Stärk
Honestly, I don't know. On 09.02.2010 09:43 schrieb Stephan Windmüller: Am 09.02.2010 09:40, schrieb Ulrich Stärk: My question is: How do I store the List of Strings until it is actually saved? Adding fields should not use the database. Does anyone know a solution for this other than @Persist?

Re: Adding textfields to a form dynamically

2010-02-09 Thread Stephan Windmüller
Am 09.02.2010 09:40, schrieb Ulrich Stärk: My question is: How do I store the List of Strings until it is actually saved? Adding fields should not use the database. Does anyone know a solution for this other than @Persist? Could the AjaxFormLoop component be of help? Would this also work if t

Re: Adding textfields to a form dynamically

2010-02-09 Thread Ulrich Stärk
Could the AjaxFormLoop component be of help? http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/AjaxFormLoop.html Uli On 09.02.2010 09:24 schrieb Stephan Windmüller: Hello! On a page I have a list of strings, each represented by a TextField in a f

Adding textfields to a form dynamically

2010-02-09 Thread Stephan Windmüller
Hello! On a page I have a list of strings, each represented by a TextField in a form. The user should be able to edit the Strings and add new ones. Also it should be possible to add many of them and fill them afterwards: Java: @Property private List values; @Property private String