Re: auto dirty and widget factory

2007-10-01 Thread Eelco Hillenius
On 10/1/07, Sam Hough <[EMAIL PROTECTED]> wrote: > > Are Component.onAttach and onDetach legitimate places for customising wicket > behaviour? Yep. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: auto dirty and widget factory

2007-10-01 Thread Sam Hough
n we could have something like >> > >> >> componentChanged(component) on a page (or somekind of listener) >> > >> >> and that component did trigger it self what ever did happen on it >> > >> >> (getting a >> > >> >> child, settting the visibility, or setting an internal none >> wicket >> > >> core

Re: auto dirty and widget factory

2007-10-01 Thread Sam Hough
child, settting the visibility, or setting an internal none >> wicket >> > >> core >> > >> >> property) >> > >> >> >> > >> >> johan >> > >> >> >> > >> >> >> > >&

Re: auto dirty and widget factory

2007-09-30 Thread Johan Compagner
ettting the visibility, or setting an internal none wicket > > >> core > > >> >> property) > > >> >> > > >> >> johan > > >> >> > > >> >> > > >> >> > > >> >> On 9/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > >> >> &g

Re: auto dirty and widget factory

2007-09-29 Thread Martijn Dashorst
> >> >> On 9/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > >> >> > > >> >> > On 9/26/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > >> >> > > but this discussion is not just about getter/setters (i don't care > >> >> about > >> >> &g

Re: auto dirty and widget factory

2007-09-29 Thread Martijn Dashorst
/26/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > >> >> > > but this discussion is not just about getter/setters (i don't care > >> >> about > >> >> > > those) > >> >> > > but also for add and remove.

Re: auto dirty and widget factory

2007-09-29 Thread Sam Hough
rs (i don't care >> >> about >> >> > > those) >> >> > > but also for add and remove.. then we are getting into some other >> >> stuff >> >> > >> >> > Yes. Getters/ setters are

Re: auto dirty and widget factory

2007-09-29 Thread Sam Hough
t;> >> > > but also for add and remove.. then we are getting into some other >> >> stuff >> >> > >> >> > Yes. Getters/ setters are less tricky. Though I'm still not breaking >> >&

Re: auto dirty and widget factory

2007-09-29 Thread Matej Knopp
Yeah, something like that. either dirty() or something else. Point it it would be just one call without tracking each change. And for HttpSessionStore, we could still support it, but only with one (most recent) version per page instance. Thus no page versioning without secondlevelcachesessionstore.

Re: auto dirty and widget factory

2007-09-29 Thread Johan Compagner
And then dirty bumps up the version number? again VersionManager is still used extensively even with the slc It takes care of the version numbers (normal and ajax) so if you have page.dirty() which contracts is now update in the session then we also suddenly bump up the version number?? of course

Re: auto dirty and widget factory

2007-09-29 Thread Johan Compagner
remove. > >> > > >> > Eelco > >> > > >> > - > >> > To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > For additional commands, e-mail: [EMAIL PROTECTED] > >

Re: auto dirty and widget factory

2007-09-29 Thread Martijn Dashorst
; >> > in sweat when I imagine removing final on add and remove. > >> > > >> > Eelco > >> > > >> >

Re: auto dirty and widget factory

2007-09-29 Thread Sam Hough
>> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > > ---

Re: auto dirty and widget factory

2007-09-29 Thread Matej Knopp
Much more performant is very relative. Not to mention that it's much more memory heavy, and when GC starts to kick in, the performance is decreased significantly. Apart from that, HTTP session store has significant undo/redo problems, and accessstackpagemap leads to unexpected page expiration prob

Re: auto dirty and widget factory

2007-09-29 Thread Martijn Dashorst
But the second level cache session store is not the only viable option: we still have the HTTP session store, which clearly is much more performant than any other store, especially if you don't have to cluster. Martijn On 9/29/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > On 9/27/07, Johan Compagn

Re: auto dirty and widget factory

2007-09-28 Thread Matej Knopp
On 9/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > yeah, so we keep the actual core events we support in the interface, like > oncomponentadded(component) but remove all the Change objects. > > when a user changes the property they then have to call dirty(); personally > i think we can just ser

Re: auto dirty and widget factory

2007-09-28 Thread Matej Knopp
sure. you can hook whatever you want there. My remark was solely about ditching the version manager. Unless someone really wants it there, but then we have to fix it to support redo, etc. I dont' think it's worth it. -Matej On 9/29/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > but then still w

Re: auto dirty and widget factory

2007-09-28 Thread Igor Vaynberg
yeah, so we keep the actual core events we support in the interface, like oncomponentadded(component) but remove all the Change objects. when a user changes the property they then have to call dirty(); personally i think we can just serialize every time and not require the user to call dirty() jus

Re: auto dirty and widget factory

2007-09-28 Thread Igor Vaynberg
or just getPage().dirty(); -igor On 9/28/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > newVersion(); > looks much better to me than addStateChange(new > ChangeThatIsNotUsedAnyway() { public void undo() }); > > -Matej > > On 9/29/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > yes we do >

Re: auto dirty and widget factory

2007-09-28 Thread Johan Compagner
but then still we have the event.. johan On 9/29/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > newVersion(); > looks much better to me than addStateChange(new > ChangeThatIsNotUsedAnyway() { public void undo() }); > > -Matej > > On 9/29/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > ye

Re: auto dirty and widget factory

2007-09-28 Thread Matej Knopp
newVersion(); looks much better to me than addStateChange(new ChangeThatIsNotUsedAnyway() { public void undo() }); -Matej On 9/29/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > yes we do > we use it still extensively > we dont cache the changes anymore those are gone, but we still uses it t

Re: auto dirty and widget factory

2007-09-28 Thread Johan Compagner
yes we do we use it still extensively we dont cache the changes anymore those are gone, but we still uses it to bump up the versions else how can we do that? johan On 9/29/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > On 9/27/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > the problem is th

Re: auto dirty and widget factory

2007-09-28 Thread Igor Vaynberg
we might remove the change tracking, but the interface can stay. maybe it wont be called a versionmanager anymore... -igor On 9/28/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > On 9/27/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > the problem is that that still not really does auto dirty..

Re: auto dirty and widget factory

2007-09-28 Thread Matej Knopp
On 9/27/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > the problem is that that still not really does auto dirty.. > Because where does it end? just add/remove/visitble/enable? > The nice thing is we have already something like that: thats page versioning > with the undo/change map. Don't get to

Re: auto dirty and widget factory

2007-09-28 Thread Sam Hough
;t care >> about >> >> those) >> >> but also for add and remove.. then we are getting into some other >> stuff >> > >> > Yes. Getters/ setters are less tricky. Though I'm still not breaking >> > in sweat when I imagine removing final on add and remove. >> >

Re: auto dirty and widget factory

2007-09-28 Thread Johan Compagner
--------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/auto-dir

Re: auto dirty and widget factory

2007-09-28 Thread Sam Hough
ugh I'm still not breaking > in sweat when I imagine removing final on add and remove. > > Eelco > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] &

Re: auto dirty and widget factory

2007-09-27 Thread Sam Hough
t; >> >> Meant to say we have our first case where we want a component to >> update >> >> because the model has changed. It is a field that only gets updated on >> >> the >> >> server not directly through an HTML form... Since it is only one

Re: auto dirty and widget factory

2007-09-27 Thread Johan Compagner
r not directly through an HTML form... Since it is only one so far > a > >> hand coded Dirty.mark(this) is not too evil. > >> > >> Sorry, talking to myself again. > >> -- > >> View this message in context: > >> > http://www.nabble.com/auto

Re: auto dirty and widget factory

2007-09-27 Thread Sam Hough
d Dirty.mark(this) is not too evil. >> >> Sorry, talking to myself again. >> -- >> View this message in context: >> http://www.nabble.com/auto-dirty-and-widget-factory-tf4421187.html#a12899100 >> Sent from the Wicket - User mailing list archive at Nabble.com. &g

Re: auto dirty and widget factory

2007-09-27 Thread Johan Compagner
the problem is that that still not really does auto dirty.. Because where does it end? just add/remove/visitble/enable? The nice thing is we have already something like that: thats page versioning with the undo/change map. If we extend that a little bit then we could have something like componentC

Re: auto dirty and widget factory

2007-09-27 Thread Martijn Dashorst
> > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/auto-dirty-and-widget-factory-tf4421187.html#a12917546 > Sent fr

Re: auto dirty and widget factory

2007-09-27 Thread Sam Hough
--- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/auto-dirty-and-widget-factory-tf4421187.h

Re: auto dirty and widget factory

2007-09-26 Thread Eelco Hillenius
On 9/26/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > but this discussion is not just about getter/setters (i don't care about > those) > but also for add and remove.. then we are getting into some other stuff Yes. Getters/ setters are less tricky. Though I'm still not breaking in sweat when I

Re: auto dirty and widget factory

2007-09-26 Thread Johan Compagner
but this discussion is not just about getter/setters (i don't care about those) but also for add and remove.. then we are getting into some other stuff johan On 9/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > On 9/26/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > I disagree. We nee

Re: auto dirty and widget factory

2007-09-26 Thread Eelco Hillenius
On 9/26/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > I disagree. We need to keep an eye out for those that begin to use the > framework. We have seen enough people that randomly start to override > methods just to work around some perceived wall that typically isn't > there if they actually th

Re: auto dirty and widget factory

2007-09-26 Thread Martijn Dashorst
I disagree. We need to keep an eye out for those that begin to use the framework. We have seen enough people that randomly start to override methods just to work around some perceived wall that typically isn't there if they actually thought about their problem in the first place. I am glad we are

Re: auto dirty and widget factory

2007-09-26 Thread Eelco Hillenius
On 9/26/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > yep, a nicer way to support this might be to add recordenablechange, record > visibilitychange to version manager interface I have very mixed feelings about this as well. Maybe we're too spastic/ protective sometimes. Another way of going abou

Re: auto dirty and widget factory

2007-09-26 Thread Igor Vaynberg
> > hand coded Dirty.mark(this) is not too evil. > > > > Sorry, talking to myself again. > > -- > > View this message in context: > > > http://www.nabble.com/auto-dirty-and-widget-factory-tf4421187.html#a12899100 > > Sent from the Wicket - User mailing lis

Re: auto dirty and widget factory

2007-09-26 Thread Johan Compagner
is only one so far a > hand coded Dirty.mark(this) is not too evil. > > Sorry, talking to myself again. > -- > View this message in context: > http://www.nabble.com/auto-dirty-and-widget-factory-tf4421187.html#a12899100 > Sent fr

Re: auto dirty and widget factory

2007-09-26 Thread Sam Hough
anel and >> FancyTabbedPanel >> >> > etc). Perhaps the bigger problem is that if a Panel that is meant to >> be >> >> > inside a TabbedPanel and needs to alter another component (e.g. >> update >> >> > navigation compon

Re: auto dirty and widget factory

2007-09-26 Thread Igor Vaynberg
inside a TabbedPanel and needs to alter another component (e.g. > update > >> > navigation component) the TabbedPanel has to ask it for changes. > >> > Presumably a component should be self contained as possible so it > >> doesn't > >> > matter what other comp

Re: auto dirty and widget factory

2007-09-26 Thread Sam Hough
myself again. -- View this message in context: http://www.nabble.com/auto-dirty-and-widget-factory-tf4421187.html#a12899100 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: auto dirty and widget factory

2007-09-26 Thread Sam Hough
>> > Presumably a component should be self contained as possible so it >> doesn't >> > matter what other component it is contained within. >> > >> > Factory pattern is a pain but presumably many people don't want the >> > overhead of A

Re: auto dirty and widget factory

2007-09-12 Thread Igor Vaynberg
ntained within. > > > > Factory pattern is a pain but presumably many people don't want the > > overhead of AjaxFallbackXXX. It would also make it possible to program > > against interfaces which might give more power to Igor, Eelco etc > > > > Please don

Re: auto dirty and widget factory

2007-09-12 Thread Sam Hough
e don't get me wrong GWT is still my true love but Wicket is a > fabulous framework taking us out of the dark ages of struts. > > > -- View this message in context: http://www.nabble.com/auto-dirty-and-widget-factory-tf4421187.html#a12640270 Sent from the Wicket - User mailing l

auto dirty and widget factory

2007-09-11 Thread Sam Hough
y true love but Wicket is a fabulous framework taking us out of the dark ages of struts. -- View this message in context: http://www.nabble.com/auto-dirty-and-widget-factory-tf4421187.html#a12610663 Sent from the Wicket - User mailing l