Re: Clear PersistentFieldConduit cached value

2016-12-12 Thread David Diaz
Figured it out. You can invoke the conduit_set_[fieldname] method using reflection (declared, not regular) and this will reflect the value in the PerthreadMap. This function takes a singular argument with the type of the field. Cheers On Mon, Dec 12, 2016 at 5:45 PM, David Diaz wrote: > Hi all,

Clear PersistentFieldConduit cached value

2016-12-11 Thread David Diaz
Hi all, I am trying to set a persistent value of a field in my application on a XHR request. I am using tynamo's tapestry-conversation and I want to copy the old conversation's values to the new conversation. I am iterating through each field in the old conversation and setting the value for the n

Re: @Cached

2013-12-06 Thread Thiago H de Paula Figueiredo
On Fri, 06 Dec 2013 11:33:05 -0200, Dusko Jovanovski wrote: It works both in pages and components. Just remember that @Cached only caches method return values during a request, but not between requests. I'm planning to do provide some caching (not just in a single thread) i

Re: @Cached

2013-12-06 Thread Dusko Jovanovski
It works both in pages and components. On Fri, Dec 6, 2013 at 2:20 PM, John wrote: > does @Cached work in only pages, or should it work in components too?

@Cached

2013-12-06 Thread John
does @Cached work in only pages, or should it work in components too?

Re: Page is getting cached in Tapestry 5.0.18

2011-10-17 Thread ManuPK
Thanks Thiago and Wulf's for helping. I don't get this issue every time but happens too-often in some machines and pages. Is there any settings possible in browser? If I use the "no-cache" attributes even t he images will not be cached? Will it create any performance issue?

Re: Page is getting cached in Tapestry 5.0.18

2011-10-17 Thread Thiago H. de Paula Figueiredo
On Sat, 15 Oct 2011 07:54:18 -0300, ManuPK wrote: I am using tapestry version 5.0.18. In my application the tapestry pages are getting cached. ie, when I hit the URL to load the page the request is not reaching the server. I need to press ctrl+F5 to get the valid page. Is it because of

RE: Page is getting cached in Tapestry 5.0.18

2011-10-15 Thread Wechsung, Wulf
Hi Manu, It helps to set the following meta tags: Kind Regards, Wulf -Original Message- From: ManuPK [mailto:manupk.t...@gmail.com] Sent: Samstag, 15. Oktober 2011 12:54 To: users@tapestry.apache.org Subject: Page is getting cached in Tapestry 5.0.18 I am using tapestry version

Re: Page is getting cached in Tapestry 5.0.18

2011-10-15 Thread Muhammad Gelbana
If the request isn't initiated by the browser to the server, then shouldn't this be a browser issue ? On Sat, Oct 15, 2011 at 12:54 PM, ManuPK wrote: > I am using tapestry version 5.0.18. In my application the tapestry pages > are > getting cached. ie, when I hit the URL t

Page is getting cached in Tapestry 5.0.18

2011-10-15 Thread ManuPK
I am using tapestry version 5.0.18. In my application the tapestry pages are getting cached. ie, when I hit the URL to load the page the request is not reaching the server. I need to press ctrl+F5 to get the valid page. Is it because of the page pooling? Or how can I make sure always the

Re: T5: @Cached(watch) parameter requires public property

2011-04-28 Thread Thiago H. de Paula Figueiredo
On Thu, 28 Apr 2011 17:38:01 -0300, Adam Zimowski wrote: Hi Again - Hi! Is there a specific reason why watch parameter for @Cached annotation requires public property when using default prop binding? I'd guess the JVM bytecode verifier would complain about invalid access, as the

T5: @Cached(watch) parameter requires public property

2011-04-28 Thread Adam Zimowski
Hi Again - Is there a specific reason why watch parameter for @Cached annotation requires public property when using default prop binding? This is an inconvenient limitation IMO, as I don't necessarily want to expose my watch property publicly. For example, my watch on getShoppingCart m

Re: @Cached method called multiple times

2010-10-04 Thread Thiago H. de Paula Figueiredo
On Mon, 04 Oct 2010 14:18:19 -0300, Tobias Marx wrote: Hello everyone! Hi! I am using Tapestry 5.1.5 and I noticed that a method annotated as @Cached is executed several times for a single pageview. I am using a "BaseComponent" class that contains this method. It is c

@Cached method called multiple times

2010-10-04 Thread Tobias Marx
Hello everyone! I am using Tapestry 5.1.5 and I noticed that a method annotated as @Cached is executed several times for a single pageview. I am using a "BaseComponent" class that contains this method. It is called from component that extends this. Or is it possible @Cached is n

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

2010-02-09 Thread Juan E. Maya
nt 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 > >

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

Re: where would I start if I wanted to add support for cached javascript minification?

2009-06-03 Thread Andreas Andreou
No real answers, but if you want to run jawr 'offline' check out http://github.com/andyhot/maven-jawr-plugin/ or this thread in jawr ML http://markmail.org/message/ef4vtu7xl75fe3ra On Thu, Jun 4, 2009 at 5:56 AM, Josh Long wrote: > Where would I start if I wanted to add suppo

where would I start if I wanted to add support for cached javascript minification?

2009-06-03 Thread Josh Long
Where would I start if I wanted to add support for cached javascript minification a la JAWR? I know that Tapestry 5.1 ships with intrinsic support for combined JS files. Does that combination happen on each request? Or is it cached? What of the gzip support? Cached or not cached in memory? Finally

Re: Cached and Self-Calls

2009-03-26 Thread Howard Lewis Ship
I believe self-calls are handled; you can use @Cached on non-public methods as well. On Thu, Mar 26, 2009 at 12:54 PM, Geoffrey Wiseman wrote: > Does tapestry manipulate the page class enough that @Cached affects > self-calls? > > That is, if I wrote this code: > &

Cached and Self-Calls

2009-03-26 Thread Geoffrey Wiseman
Does tapestry manipulate the page class enough that @Cached affects self-calls? That is, if I wrote this code: @Cached List getSomeExpensiveResult() { ... } String getSummary() { if( getSomeExpensiveResult().isEmpty() ) return "nothing"; else { String summary = "&qu

Re: Cached Annotation watch property seems to use '==' instead of 'equals'

2008-12-22 Thread Howard Lewis Ship
? @Cached was written by Dan Adams. On Mon, Dec 22, 2008 at 4:44 PM, Doug Hauge wrote: > I'm trying to use the '@Cached' annotation with a watch expression > to cache results of methods in a form contained within a loop. For > some watch expressions, I construct a strin

Cached Annotation watch property seems to use '==' instead of 'equals'

2008-12-22 Thread Doug Hauge
I'm trying to use the '@Cached' annotation with a watch expression to cache results of methods in a form contained within a loop. For some watch expressions, I construct a string, so the code basically looks like @Cached(watch="watchKey") Object getData() {

Re: tacos @Cached in t4

2008-09-07 Thread Filip S. Adamsen
I'm sorry, but what do you expect Tapestry to do about that? You're explicity setting the property each time the page is loaded. @Persist doesn't change that. You'll need to check whether or not persistThisOne is not null before assigning to it for this to work. -Filip On 2008-09-07 08:39,

Re: tacos @Cached in t4

2008-09-06 Thread michael lim
i tried this. whenever i press f5, pagebeginrender will still be called and db will be hit @Persist("session") public abstract Collection getPersistThisOne(); public abstract void setPersistThisOne(Collection persistThisOne); public void pageBeginRender(PageEvent event) { System.out.prin

Re: tacos @Cached in t4

2008-09-06 Thread Kalle Korhonen
You've misunderstood the purpose of @Cached. The documentation ( http://tacos.sourceforge.net/tacos4.1/tacos-annotations/index.html) says: "The Cached <http://tacos.sourceforge.net/tacos4.1/apidocs/net/sf/tacos/annotations/Cached.html>annotation allows you to cache the results of

Re: tacos @Cached in t4

2008-09-06 Thread michael lim
my .application look like this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

tacos @Cached in t4

2008-09-06 Thread michael lim
in my page, i do like below, but when i press refresh F5 on page, i keep on getting database hit. when using cached, aren't it not suppose to call getFromDB() for subsequent call ? @Cached public String getGenerateMenuCached() { return dao.getFromDb(); } //in my dao p

Tables being cached by IE

2008-07-03 Thread Moritz Gmelin
Hi, one of our clients has noticed, that when he accesses a simple page with a grid through IE7, hitting the Pagers on the grid does not show the requested Grid-Page but still the old one. Refreshing the page thereafter show the right grid-page. I can imagine that IE is doing some caching h

Re: @Cached and caching in general

2008-03-25 Thread Davor Hrg
caching every method by default is definitely too error prone, and unexpected for most people. On Tue, Mar 25, 2008 at 3:23 PM, Francois Armand <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Yes, you are right. But loops are usually inside of components and pages > contain those compo

Re: @Cached and caching in general

2008-03-25 Thread Francois Armand
[EMAIL PROTECTED] wrote: Yes, you are right. But loops are usually inside of components and pages contain those componentsbut all methods in the page itself could be @Cache methods in my opinion if you do a "component based approach" and always package logical widgets into a component.

Re: @Cached and caching in general

2008-03-25 Thread superoverdrive
-Nachricht > Datum: Tue, 25 Mar 2008 13:33:19 +0100 > Von: Francois Armand <[EMAIL PROTECTED]> > An: Tapestry users > Betreff: Re: @Cached and caching in general > Tobias Marx wrote: > > Wouldn't it be useful to make the @Cache annotation the default >

Re: @Cached and caching in general

2008-03-25 Thread Francois Armand
Tobias Marx wrote: Wouldn't it be useful to make the @Cache annotation the default annotation for all methods? I can not imagine a case where it would make sense that during the rendering of a page returns different results... Just an example : you are in a loop (or grid or a beaneditor any

Re: AW: @Cached and caching in general

2008-03-19 Thread Davor Hrg
good idea. Do you mean requesting a page and cut > it out or grabbing part of the DOM during same request. Just wondering... . > > -Ursprüngliche Nachricht- > Von: Davor Hrg [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 19. März 2008 10:42 > An: Tapestry user

Re: AW: @Cached and caching in general

2008-03-19 Thread Andreas Andreou
is kind of cache is the jsessionid parameter that may be cached in url (though we / many people completely remove them nowadays) On Wed, Mar 19, 2008 at 1:55 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > I'm generally against these approached. > > Cache the data, ma

AW: AW: @Cached and caching in general

2008-03-19 Thread Martin Kersten
-- Von: Davor Hrg [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. März 2008 10:42 An: Tapestry users Betreff: Re: AW: @Cached and caching in general I agree that this is not something to take on lightly, and data should be cached, and rendering left as is. but besides caching this king of compon

Re: AW: @Cached and caching in general

2008-03-19 Thread Davor Hrg
I agree that this is not something to take on lightly, and data should be cached, and rendering left as is. but besides caching this king of component is useful for capturing output so it can be sent via email for example. I like to keep most things stateless (only dependant on parameters), so

Re: AW: @Cached and caching in general

2008-03-18 Thread Fernando Padilla
er properly, I would have cached and replayed those already.. but i couldn't easily do that.. But on second thought, you're right, maybe I should have cached a DOM tree.. since it would have a much better guarantees for replaying. But on most cases, this component works pretty darn

Re: AW: @Cached and caching in general

2008-03-18 Thread Howard Lewis Ship
lty of Tapestry. Components inside that cached zone are not just rendering a character stream, they are generating JavaScript, assigning unique ids (via PageRenderSupport) interacting with an enclosing Form components, and doing other user-specific things. I would always look elsewhere first for p

Re: @Cached and caching in general

2008-03-18 Thread Howard Lewis Ship
would make sense that during the rendering > of a page returns different results... > > Original-Nachricht > > Datum: Tue, 18 Mar 2008 11:53:09 -0500 > > Von: "Adam Zimowski" <[EMAIL PROTECTED]> > > > An: "Tapestry users&q

Re: AW: @Cached and caching in general

2008-03-18 Thread Davor Hrg
gt; (e.g. cache only content not markup). Never the less I am in doupt, > >> > if such a solution is necessary (dynamically cache results of > >> > database queries in memory or on disk). > >> > > >> > So after all you might want to po

Re: AW: @Cached and caching in general

2008-03-18 Thread Fernando Padilla
just go for > optimization. Since you have a fallback solution at hand (cron-jobs + > disk fragments) you are at the safe side. But I am in doupt if you > really need the markup being cached. Caching the database results > and recreate markup sounds more reasonable. You might sa

Re: AW: @Cached and caching in general

2008-03-18 Thread Davor Hrg
s. > > Once you see any problems (performance is below required) just go for > > optimization. Since you have a fallback solution at hand (cron-jobs + > > disk fragments) you are at the safe side. But I am in doupt if you > > really need the markup being cac

Re: AW: @Cached and caching in general

2008-03-18 Thread Andreas Andreou
cation. As always use > > the simpliest solution first. So database queries without any caches. > > Once you see any problems (performance is below required) just go for > > optimization. Since you have a fallback solution at hand (cron-jobs + > > disk fragments) you are at the

Re: AW: @Cached and caching in general

2008-03-18 Thread Fernando Padilla
side. But I am in doupt if you really need the markup being cached. Caching the database results and recreate markup sounds more reasonable. You might save you lots of seeking time. But you always know: Only the code / application will tell you! Cheers, Martin (Kersten) -Ursprüngliche

RE: @Cached and caching in general

2008-03-18 Thread Jonathan Barker
. Mimic what is done currently, but perhaps schedule refreshes with Quartz and keep it within the same app. Jonathan > -Original Message- > From: Tobias Marx [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 18, 2008 1:35 PM > To: Tapestry users > Subject: AW: @Cached and cac

Re: AW: @Cached and caching in general

2008-03-18 Thread Davor Hrg
ly only in some intervals and produce cached raw output otherwise. this would be very similar to output_buffer tricks in php. Davor Hrg On Tue, Mar 18, 2008 at 6:25 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > That's a special case, really. Do what you want. > > -Filip > &

AW: @Cached and caching in general

2008-03-18 Thread Tobias Marx
Hibernate as long as you can use your objects directly...but using Hibernate for joins and unions is not much fun So such a table would benefit a lot if is was cached...even if the individual queries would be cached you still had to do all the loops and parsing of the templates. Original

Re: AW: @Cached and caching in general

2008-03-18 Thread Filip S. Adamsen
4:28 +0100 Von: "Filip S. Adamsen" <[EMAIL PROTECTED]> An: Tapestry users Betreff: Re: AW: @Cached and caching in general A factor 100?? C'mon. If, and I stress IF, your application would benefit that much from this, fine. But Tapestry 5 applications in general would - I

AW: @Cached and caching in general

2008-03-18 Thread Martin Kersten
context and event handling. But for displaying 'cached' content it might be an option. If you go ahead and try it you may post your benchmarks. I don't know who has stretched it before but I guess caching is always a hot topic so if you can provide new insides your are welcome. Cheers,

Re: AW: @Cached and caching in general

2008-03-18 Thread Tobias Marx
Ok...let's say factor 10 (unless you have many loops inside of loops inside of loops that use queries on large tables). Original-Nachricht > Datum: Tue, 18 Mar 2008 18:14:28 +0100 > Von: "Filip S. Adamsen" <[EMAIL PROTECTED]> > An: Tapestry users

AW: @Cached and caching in general

2008-03-18 Thread Tobias Marx
> The problem is context I guess. Usally your component depends on lots > of stuff. Parameters, URL, Services, Page-state, component state, > HTTP-Parameters and so on. Yes...but it must be possible somehow as some PHP template engines also do it. Isn't there already some mechanism in the inte

Re: AW: @Cached and caching in general

2008-03-18 Thread Filip S. Adamsen
08 18:01:40 +0100 Von: "Martin Kersten" <[EMAIL PROTECTED]> An: "Tapestry users" Betreff: AW: @Cached and caching in general @Chached is only used during a single page rendering cycle. It would not apply to your situation. (as far as I know) Source: http://sqllyw.wordpr

Re: @Cached and caching in general

2008-03-18 Thread Filip S. Adamsen
ginal-Nachricht Datum: Tue, 18 Mar 2008 11:53:09 -0500 Von: "Adam Zimowski" <[EMAIL PROTECTED]> An: "Tapestry users" Betreff: Re: @Cached and caching in general @Cache works on per request basis, so that anything you return from a method which has @Cache annotatio

AW: @Cached and caching in general

2008-03-18 Thread Tobias Marx
. Original-Nachricht > Datum: Tue, 18 Mar 2008 18:01:40 +0100 > Von: "Martin Kersten" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: AW: @Cached and caching in general > @Chached is only used during a single page rendering cycle. It would not >

AW: @Cached and caching in general

2008-03-18 Thread Martin Kersten
needed. But as far as I know Tapestry and its agility, all you need -Ursprüngliche Nachricht- Von: Tobias Marx [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 18. März 2008 17:58 An: Tapestry users Betreff: Re: @Cached and caching in general Ok. Thanks...this is what I wanted to know. What

AW: @Cached and caching in general

2008-03-18 Thread Martin Kersten
. So database queries without any caches. Once you see any problems (performance is below required) just go for optimization. Since you have a fallback solution at hand (cron-jobs + disk fragments) you are at the safe side. But I am in doupt if you really need the markup being cached. Caching the

Re: @Cached and caching in general

2008-03-18 Thread Tobias Marx
00 > Von: "Adam Zimowski" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: Re: @Cached and caching in general > @Cache works on per request basis, so that anything you return from a > method which has @Cache annotation will get actually "built"

Re: @Cached and caching in general

2008-03-18 Thread Tobias Marx
y hour it would re-generate/refresh its output and this way save lots of performance. Original-Nachricht > Datum: Tue, 18 Mar 2008 17:52:11 +0100 > Von: "Davor Hrg" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: Re: @Cached and

Re: @Cached and caching in general

2008-03-18 Thread Adam Zimowski
@Cache works on per request basis, so that anything you return from a method which has @Cache annotation will get actually "built" or "retrieved" only once - but only once per http request. So if you're building an expensive HTML fragment: @Cached public String b

Re: @Cached and caching in general

2008-03-18 Thread Davor Hrg
@Cached is an annotation that caches method call result per request. so while page is rendering if multiple pieces of template require that property it gets called only once... Davor Hrg On Tue, Mar 18, 2008 at 5:44 PM, Tobias Marx <[EMAIL PROTECTED]> wrote: > I have not used T5 yet,

@Cached and caching in general

2008-03-18 Thread Tobias Marx
I have not used T5 yet, but would @Cached use the file system for caching HTML fragments similiar to caching mechanisms in some php frameworks? Or is this a pure memory-based cache? I am thinking about migrating an old PHP application to T5 - it has really a lot of traffic and any users are

##T4##Is tapestry service cached?!

2008-03-02 Thread Oliver Lee
i wrote my own service,but i found that when i request a service from one window only first time,i can debug,then every time request the service from the same window will response directly,i cant stop at the break point,the situation like serivice is cached,so ,i want ask does the service i

RE: propertyselection not cached

2007-10-11 Thread Ken nashua
component on the same page. I could then force this thing to behave correctly. Best regards Ken in nashua From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: propertyselection not cached Date: Tue, 9 Oct 2007 15:48:22 -0400 Folks, I have a propertyselection component rigged

RE: propertyselection not cached

2007-10-09 Thread Jonathan Barker
PROTECTED] > Sent: Tuesday, October 09, 2007 3:48 PM > To: users@tapestry.apache.org > Subject: propertyselection not cached > > > Folks, > > I have a propertyselection component rigged with 1,2,3,4,5... > > Everytime I select from my propertyselection... the this.

propertyselection not cached

2007-10-09 Thread Ken nashua
Folks, I have a propertyselection component rigged with 1,2,3,4,5... Everytime I select from my propertyselection... the this.form.submit() listener gets called... but my property gets reset. Nothing sticks... Gallery.JAVA public IPage onFormSubmit (IRequestCycle cycle) { IPage pag

Re: Dojo error on Yahoo search or Live search cached pages

2007-02-13 Thread Christian Dutaret
componentry+demo&hl=en&gl=gr&ct=clnk&cd=1&client=firefox-a >> >> >> We'll need to do some js debugging to figure out this... >> >> >> >> Christian Dutaret wrote: >> > Hi all, >> > >> > I deployed a brand new web

Re: Dojo error on Yahoo search or Live search cached pages

2007-02-13 Thread andyhot
web site which is based on T4.1.1 last week. > It has just began to be indexed on Yahoo search and Live search. > > On both these search engines, whenever I request the cached page from the > search results, an alert box tells me "Permission refused to obtain the > Window.dojo p

Re: Dojo error on Yahoo search or Live search cached pages

2007-02-13 Thread Christian Dutaret
on Yahoo search and Live search. > > On both these search engines, whenever I request the cached page from the > search results, an alert box tells me "Permission refused to obtain the > Window.dojo property" (freely translated from French actually). > I understand that the s

Re: Dojo error on Yahoo search or Live search cached pages

2007-02-01 Thread andyhot
need to do some js debugging to figure out this... Christian Dutaret wrote: Hi all, I deployed a brand new web site which is based on T4.1.1 last week. It has just began to be indexed on Yahoo search and Live search. On both these search engines, whenever I request the cached page from the

Dojo error on Yahoo search or Live search cached pages

2007-02-01 Thread Christian Dutaret
Hi all, I deployed a brand new web site which is based on T4.1.1 last week. It has just began to be indexed on Yahoo search and Live search. On both these search engines, whenever I request the cached page from the search results, an alert box tells me "Permission refused to obtai

Re: Parameter values are cached?

2006-06-20 Thread Dan Adams
It was a dumb question on my part. I should have replied when I saw it. @Parameter has a 'cache' parameter. duh. :) On Tue, 2006-06-20 at 14:30 -0400, Kevin Menard wrote: > Have you looked at the source for the For component? If that can do it, > you should be able to with your While. > -- Da

Re: Parameter values are cached?

2006-06-20 Thread Norbert Sándor
Parameters are cached by default but it can be turned off using its "cache" property. BR, Norbi Dan Adams wrote: I want to write a @While component that takes a condition just like @If does. The problem is that you can't give an ognl expression for the condition and have it

Re: Parameter values are cached?

2006-06-20 Thread Kevin Menard
Have you looked at the source for the For component? If that can do it, you should be able to with your While. -- Kevin On Tue, 20 Jun 2006 14:15:08 -0400, Dan Adams <[EMAIL PROTECTED]> wrote: I want to write a @While component that takes a condition just like @If does. The problem is that

Parameter values are cached?

2006-06-20 Thread Dan Adams
I want to write a @While component that takes a condition just like @If does. The problem is that you can't give an ognl expression for the condition and have it evaluated each time I call getCondition(). Anyone know a way to do this? -- Dan Adams Software Engineer Interactive Factory 617.235.585