Re: Multiple persistance strategy

2014-09-18 Thread Charlouze
Sure, I will ! 2014-09-18 14:21 GMT+02:00 Thiago H de Paula Figueiredo : > On Wed, 17 Sep 2014 20:40:28 -0300, Charlouze wrote: > > Hey again ! >> > > Hi! > > Sorry for bothering everyone but I just wanted to say that I think I >> found my perfect solution. I was looking at >> the EntityAppli

Re: Multiple persistance strategy

2014-09-18 Thread Thiago H de Paula Figueiredo
On Wed, 17 Sep 2014 20:40:28 -0300, Charlouze wrote: Hey again ! Hi! Sorry for bothering everyone but I just wanted to say that I think I found my perfect solution. I was looking at the EntityApplicationStatePersistenceStrategy class and it just gave me my answer... Maybe my new soluti

Re: Multiple persistance strategy

2014-09-17 Thread Charlouze
Hey again ! Sorry for bothering everyone but I just wanted to say that I think I found my perfect solution. I was looking at the EntityApplicationStatePersistenceStrategy class and it just gave me my answer... Maybe my new solution should replace the clumsy EntityPersistentFieldStrategy of tapest

Re: Multiple persistance strategy

2014-09-17 Thread Charlouze
Hello everybody, I'm really not sure about what I did and I really appreciate a feedback from people who knows how persistent fields works. If i'm not clear enough or anything about my issue, just let me know. Cheers, Charles. 2014-09-16 17:13 GMT+02:00 Charlouze : > As for now, I solved my pr

Re: Multiple persistance strategy

2014-09-16 Thread Charlouze
As for now, I solved my problem using a new PersistentFieldStrategy and I want your opinion about it: public class MultiplePersistentFieldStrategy implements PersistentFieldStrategy { private final Logger logger; private final List delegates; public MultiplePersistentFieldStrategy(f

Multiple persistance strategy

2014-09-16 Thread Charlouze
Hello Tapestry users & devs, I have a component which does lots of ajax requests. Parameters setted at the first render are not available upon ajax requests so I decided to persist them in specific properties. One of those parameter is a database entity (I use tapestry-jpa) so I decided to use the

Re: Objects session persistance and validation

2010-10-28 Thread Anton Mezerny
" email validation starts to work properly. >> Looks >> > like some magic :). However, I get sometimes user data lost. I can't >> > reproduce this bug with 100% probability, but it occurs sometimes. I >> tried >> > also to change @Persist(PersistenceConstants.

Re: Objects session persistance and validation

2010-10-25 Thread Anton Mezerny
bug with 100% probability, but it occurs sometimes. I > tried > > also to change @Persist(PersistenceConstants.FLASH) to default @Persist. > > But > > it gives me behavior I don't want - it renders user data even if I > refresh > > the pag

Re: Objects session persistance and validation

2010-10-25 Thread Mark Shead
s bug with 100% probability, but it occurs sometimes. I tried > also to change @Persist(PersistenceConstants.FLASH) to default @Persist. > But > it gives me behavior I don't want - it renders user data even if I refresh > the page (I want to show blank form in that case). So FLASH persis

Re: Objects session persistance and validation

2010-10-25 Thread Anton Mezerny
s. I tried also to change @Persist(PersistenceConstants.FLASH) to default @Persist. But it gives me behavior I don't want - it renders user data even if I refresh the page (I want to show blank form in that case). So FLASH persistance is what I want, but sometimes data are lost

Re: Objects session persistance and validation

2010-10-25 Thread Mark
o your current problem, but to > tell > > > > > Tapestry which constructor to use for the bean editor, you should > > > > annotate > > > > > the default (no args) constructor with @Inject - this will allow > the > > > BEF > > >

Re: Objects session persistance and validation

2010-10-25 Thread Anton Mezerny
hich constructor to use for the bean editor, you should > > > annotate > > > > the default (no args) constructor with @Inject - this will allow the > > BEF > > > to > > > > create the relevant entity if none if present. Hope this helps. >

Re: Objects session persistance and validation

2010-10-25 Thread Mark
ards, > > > Jim. > > > > > > -Original Message- > > > From: Anton Mezerny [mailto:anton.meze...@gmail.com] > > > Sent: 23 October 2010 17:02 > > > To: Tapestry users > > > Subject: Objects session persistance and validation > > &

Re: Objects session persistance and validation

2010-10-25 Thread Anton Mezerny
reate the relevant entity if none if present. Hope this helps. > > > > Regards, > > Jim. > > > > -Original Message- > > From: Anton Mezerny [mailto:anton.meze...@gmail.com] > > Sent: 23 October 2010 17:02 > > To: Tapestry users > > Subject: O

Re: Objects session persistance and validation

2010-10-23 Thread Mark W. Shead
riginal Message- > From: Anton Mezerny [mailto:anton.meze...@gmail.com] > Sent: 23 October 2010 17:02 > To: Tapestry users > Subject: Objects session persistance and validation > > Hi all, > I'm trying to write simple registration form using beaneditor component. > If I fullfill

RE: Objects session persistance and validation

2010-10-23 Thread Jim O'Callaghan
gards, Jim. -Original Message- From: Anton Mezerny [mailto:anton.meze...@gmail.com] Sent: 23 October 2010 17:02 To: Tapestry users Subject: Objects session persistance and validation Hi all, I'm trying to write simple registration form using beaneditor component. If I fullfill all reqi

Objects session persistance and validation

2010-10-23 Thread Anton Mezerny
Hi all, I'm trying to write simple registration form using beaneditor component. If I fullfill all reqired fields in the form and submit it - everything works fine, but if server validation occurs (for example passwords don't match), then all data is lost and Registration page renders with validati

Re: T5 Page field persistance and multithread problems

2009-07-21 Thread Sergey Didenko
I think that can be done on a framework level with optional parameter or annotation such as: @Persist("lazy-thread-safe-session") that locks in the beginning of the request and unlocks in the end. However I don't think it's a priority feature. As for me it's enough to just put reminder to "Pers

Re: T5 Page field persistance and multithread problems

2009-07-17 Thread Ivano Luberti
age - > From: "Robert Zeigler" > To: "Tapestry users" > Sent: Tuesday, 14 July, 2009 17:03:22 GMT +02:00 Athens, Beirut, Bucharest, > Istanbul > Subject: Re: T5 Page field persistance and multithread problems > > Alfie, actually, many people have

Re: T5 Page field persistance and multithread problems

2009-07-16 Thread Otho
Wizard SSOs are a typical example of the temporary state I mentioned. No one else should be able to write to it and thus you don't need guards against concurrent writes. Especially not, since you validate the business objects before comitting them. But still it could be a neat idea in some circumst

Re: T5 Page field persistance and multithread problems

2009-07-15 Thread P . Stavrinides
rut, Bucharest, Istanbul Subject: Re: T5 Page field persistance and multithread problems 2009/7/15 > Other than a flag that the framework will have to manage, I really don't > see it being such a big deal... maybe I am naive and missing something, but > do you think it is better for T

Re: T5 Page field persistance and multithread problems

2009-07-15 Thread Otho
2009/7/15 > Other than a flag that the framework will have to manage, I really don't > see it being such a big deal... maybe I am naive and missing something, but > do you think it is better for Tapestry users to manage this? having Atomic > references and Synchronized blocks all over our code, i

Re: T5 Page field persistance and multithread problems

2009-07-15 Thread Kristian Marinkovic
nd modules through a facade where all the transaction handling,locking, ... is done. g, kris p.stavrini...@albourne.com 15.07.2009 09:15 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema Re: T5 Page field persistance and multithread problems > I suppose

Re: T5 Page field persistance and multithread problems

2009-07-15 Thread P . Stavrinides
:08:04 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: T5 Page field persistance and multithread problems On Tue, Jul 14, 2009 at 3:10 AM, kristjankelt wrote: > > Hi, > > > Peter Stavrinides wrote: >> >> Kristjan, as Nille has explained to you that is simply not t

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread Otho
2009/7/14 Howard Lewis Ship > I am loathe to have the framework manage this automatically because it > causes its own problems. > > For example, it is reasonable to process multiple Ajax requests in > parallel if they only read data. Exactly. Concurrent write access to data should be handled wh

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread Howard Lewis Ship
nce is set to Integer(1). > > Now this example involved only one variable and this was immutable (you can > not change it's innerstate). Having multiple variables or immutable > variables (like entity beans) will introduce more problems. > > Regards, > Kristjan Kelt > -- > V

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread kristjankelt
many times you see DIFFERENT. Regards, Kristjan Kelt -- View this message in context: http://www.nabble.com/T5-Page-field-persistance-and-multithread-problems-tp24468298p24485700.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread P . Stavrinides
ss to the ServletContext. Peter - Original Message - From: "Robert Zeigler" To: "Tapestry users" Sent: Tuesday, 14 July, 2009 17:03:22 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: T5 Page field persistance and multithread problems Alfie, actually, ma

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread Robert Zeigler
tiple submits of a form? Although this would not affect your test as you have multiple browser windows. Hope this makes sense, Alfie. -Original Message- From: kristjankelt [mailto:kristjank...@hotmail.com] Sent: 14 July 2009 11:11 To: users@tapestry.apache.org Subject: Re: T5 Page

RE: T5 Page field persistance and multithread problems

2009-07-14 Thread Alfie Kirkpatrick
lt [mailto:kristjank...@hotmail.com] Sent: 14 July 2009 11:11 To: users@tapestry.apache.org Subject: Re: T5 Page field persistance and multithread problems Hi, Peter Stavrinides wrote: > > Kristjan, as Nille has explained to you that is simply not the case, what > is happening is multiple requests

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread kristjankelt
> inherently > stateless. > I think that my case is working because no care has been taken to make this code thread safe. Regards, Kristjan Kelt -- View this message in context: http://www.nabble.com/T5-Page-field-persistance-and-multithread-problems-tp24468298p24478142.html Sent fro

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread Otho
is reading from the session then it will still see > the > reference to Integer(1) and it's corrensponding page object private > variable > reference is set to Integer(1). > > Now this example involved only one variable and this was immutable (you can > not change it&#

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread kristjankelt
this was immutable (you can not change it's innerstate). Having multiple variables or immutable variables (like entity beans) will introduce more problems. Regards, Kristjan Kelt -- View this message in context: http://www.nabble.com/T5-Page-field-pe

Re: T5 Page field persistance and multithread problems

2009-07-14 Thread Peter Stavrinides
uesday, 14 July, 2009 11:14:20 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Re: T5 Page field persistance and multithread problems Hi, I think that this is definitelly thread issue because data is shared between multiple threads. Even when every page instance would have it'

Re: Re: T5 Page field persistance and multithread problems

2009-07-14 Thread kristjankelt
> > The only problem observed here is the double submit problem. That is not a > bug of Tapestry but must be handled by every webapp no matter what > framework. Ways to do this are unique ids for forms or a state field. > > Regards, nillehammer > == > http://www.winfonet.eu &

Re: Re: T5 Page field persistance and multithread problems

2009-07-13 Thread nille hammer
Ways to do this are unique ids for forms or a state field. Regards, nillehammer == http://www.winfonet.eu - original Nachricht Betreff: Re: T5 Page field persistance and multithread problems Gesendet: Di, 14. Jul 2009 Von: Robert Zeigler > Well, it /is/ the case that page fi

Re: T5 Page field persistance and multithread problems

2009-07-13 Thread Robert Zeigler
as about this problem then I'm more than thankful to hear about them. Regards, Kristjan Kelt -- View this message in context: http://www.nabble.com/T5-Page-field-persistance-and-multithread-problems-tp24468298p24468298.html Sent from the Tapes

T5 Page field persistance and multithread problems

2009-07-13 Thread kristjankelt
ge in context: http://www.nabble.com/T5-Page-field-persistance-and-multithread-problems-tp24468298p24468298.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapest

Re: Persistance

2009-01-14 Thread Kalle Korhonen
ces and each page can overwrite the another. My searches didn't >>>> >>> come >>> >>>> up with a definitive answer although I did see that the question has >>>> been >>>> asked several times. Can anyone comment on this or provide a

Re: Persistance

2009-01-14 Thread Kalle Korhonen
ion has > >> been > >> > asked several times. Can anyone comment on this or provide a > >> workaround? > >> > > >> > > >> > > >> > Peter Stavrinides wrote: > >> > > >

Re: Persistance

2009-01-14 Thread Ville Virtanen
ugh >>>>> information to >>>>> run >>>>> the report again. If the report page needed to be refreshed >>>>> (such as >>>>> sorting something on the page, non-async), the client side key >>>>> would look >

Re: Persistance

2009-01-14 Thread Geoff Callender
ational state covers some of this ground (the difference being a conversation is tied to not only the page, but the window so each tab is treated as a new conversation)... -- View this message in context: http://www.nabble.com/Persistance-tp20732003p20743522.html Sent from the Tapestry - U

Re: Persistance

2009-01-14 Thread Ville Virtanen
gt;> up with a definitive answer although I did see that the question >>>> has been >>>> asked several times. Can anyone comment on this or provide a >>>> workaround? >>>> >>>> >>>> >>>> Peter Stavrinides wrote: &g

Re: Persistance

2009-01-14 Thread Geoff Callender
articularly the way pages are pooled, but since conversational state covers some of this ground (the difference being a conversation is tied to not only the page, but the window so each tab is treated as a new conversation)... -- View this message in context: http

Re: Persistance

2009-01-14 Thread Ville Virtanen
user leaves the page. >> In >> > > truth someone posted such a solution which used a cookie, and it >> seemed >> > to >> > > behave exactly as it should, nevertheless I am still against relying >> on >> a >> > > cookie. I understand this

Re: Persistance

2009-01-13 Thread Kalle Korhonen
olution which used a cookie, and it seemed > > to > > > behave exactly as it should, nevertheless I am still against relying on > a > > > cookie. I understand this may be difficult to implement due to > Tapestry's > > > inner workings, particularly t

Re: Persistance

2008-12-12 Thread Daniel Jue
me of this ground (the difference being a > > conversation is tied to not only the page, but the window so each tab is > > treated as a new conversation)... > > > > -- > View this message in context: > http://www.nabble.com/Persistance-tp20732003p20743522.html > Se

Re: Persistance

2008-12-11 Thread Peter Stavrinides
mber, 2008 12:52:37 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Persistance I myself have found the need for such a persistence strategy. I would suggest creating an issue for this so that people can vote and follow it. On Fri, Nov 28, 2008 at 10:23 AM, Peter Stavrinides

Re: Persistance

2008-12-11 Thread Hugo Palma
I myself have found the need for such a persistence strategy. I would suggest creating an issue for this so that people can vote and follow it. On Fri, Nov 28, 2008 at 10:23 AM, Peter Stavrinides < [EMAIL PROTECTED]> wrote: > Hi, > > I have been thinking about persistence lately... and after movi

Re: Persistance

2008-11-29 Thread Patrick Moore
Hi Yeah in our T4 app we don't use @Persist at all and we really control the session-size ... we have been setting up to open source this code that handles the session issues. I have been wanting to get the code in better shape before releasing back to the community ... but it is good enough

Re: Persistance

2008-11-29 Thread Marcelo Lotif
I think this is very interesting too, and I have implemented something like this in a menu component I've made, but the solution is specific to my case. This persistence strategy would be a nice improvement, and would solve some problems we had with the session size. On Fri, Nov 28, 2008 at 7:23

Re: Persistance

2008-11-28 Thread thermus
tion)... > -- View this message in context: http://www.nabble.com/Persistance-tp20732003p20743522.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Persistance

2008-11-28 Thread Peter Stavrinides
Hi, I have been thinking about persistence lately... and after moving all our apps from Tapestry 4 to Tapestry 5 this past year, I have noticed distinct patterns emerge in the way pages fit together and use persistence, and I have been searching all the while for best practices... here are some

Re: session persistance?

2007-04-10 Thread Stephane PAQUET
Yes, from what I understand persist is just to keep value between request. so every-time you request the page the object is in this case recreated. If you want to keep this object across a session you need ASO (see T5 doc on persistence). You can also (but will not be kept a session level

Re: session persistance?

2007-04-09 Thread Howard Lewis Ship
That is correct behavior, and if you update the property (not the set stored in the property), then the Set will be stored into the session, and restored on the next request. On 4/8/07, Patrick Moore <[EMAIL PROTECTED]> wrote: Hi there -- does anyone have some thoughts on why: @Persist

session persistance?

2007-04-08 Thread Patrick Moore
Hi there -- does anyone have some thoughts on why: @Persist @InitialValue("new java.util.HashSet()") public abstract Set getFollowUpMessages(); public abstract void setFollowUpMessages(Set set); keeps on resetting the set to a new HashSet between http requests? It looks like accord

session persistance?

2007-04-08 Thread Patrick Moore
Hi there -- does anyone have some thoughts on why: @Persist @InitialValue("new java.util.HashSet()") public abstract Set getFollowUpMessages(); public abstract void setFollowUpMessages(Set set); keeps on resetting the set to a new HashSet between http requests? It looks like accord