Re: A question about cookie value loading

2008-07-02 Thread Timo Rantalaiho
On Mon, 30 Jun 2008, nate roe wrote: > I'm now using Wicket 1.3.3 but I'm still seeing this behavior, where when my > ListView is visited (from Form.loadPersistentFormComponentValues(),) my > listView's children is null when it is visited in > FormComponent.visitFormComponentsPostOrderHelper(). >

Re: A question about cookie value loading

2008-06-30 Thread nate roe
I'm now using Wicket 1.3.3 but I'm still seeing this behavior, where when my ListView is visited (from Form.loadPersistentFormComponentValues(),) my listView's children is null when it is visited in FormComponent.visitFormComponentsPostOrderHelper(). It is difficult to understand why the ListView

Re: A question about cookie value loading

2008-06-11 Thread Timo Rantalaiho
On Wed, 11 Jun 2008, nate roe wrote: > When exactly are ListView children created (or reused)? Use the source, Luke! onBeforeRender AFAIK. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > -

Re: A question about cookie value loading

2008-06-11 Thread nate roe
Hrm. This issue may well be what I've run up against. When exactly are ListView children created (or reused)? On Tue, Jun 10, 2008 at 8:04 PM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > On Tue, 10 Jun 2008, nate roe wrote: > > Don't forget that I'm using 1.2... this has maybe changed and that

Re: A question about cookie value loading

2008-06-10 Thread Timo Rantalaiho
On Tue, 10 Jun 2008, nate roe wrote: > Don't forget that I'm using 1.2... this has maybe changed and that's why > Eclipse isn't showing the call hierarchy? Before 1.3.0-beta3 there was trouble visiting repeater children before they are rendered, could your problem be caused by that? http://is

Re: A question about cookie value loading

2008-06-10 Thread nate roe
That's called from Page.setFormComponentValuesFromCookies(...) which is in turn called from .renderPage(...) Don't forget that I'm using 1.2... this has maybe changed and that's why Eclipse isn't showing the call hierarchy? On Tue, Jun 10, 2008 at 5:19 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
Form.loadPersisitentFormComponentValues() -igor On Tue, Jun 10, 2008 at 4:23 PM, nate roe <[EMAIL PROTECTED]> wrote: > I'm sorry, which method do you mean? > > On Tue, Jun 10, 2008 at 4:02 PM, Igor Vaynberg <[EMAIL PROTECTED]> > wrote: > >> what calls that method? call hieararchy for it is empty

Re: A question about cookie value loading

2008-06-10 Thread nate roe
I'm sorry, which method do you mean? On Tue, Jun 10, 2008 at 4:02 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > what calls that method? call hieararchy for it is empty in > eclipse...which is pretty strange... > > -igor > > On Tue, Jun 10, 2008 at 2:40 PM, nate roe <[EMAIL PROTECTED]> wrote: > >

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
what calls that method? call hieararchy for it is empty in eclipse...which is pretty strange... -igor On Tue, Jun 10, 2008 at 2:40 PM, nate roe <[EMAIL PROTECTED]> wrote: > I can't figure out why Wicket is not calling > Form.loadPersisitentFormComponentValues() for FormComponents that belong to >

Re: A question about cookie value loading

2008-06-10 Thread nate roe
I can't figure out why Wicket is not calling Form.loadPersisitentFormComponentValues() for FormComponents that belong to a ListView. Page.setFormComponentValuesFromCookies() calls visitChildren() inherited from MarkupContainer. I can see that visitChildren() is called for my ListView, but it look

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
form components inside listview are visited. -igor On Tue, Jun 10, 2008 at 1:40 PM, nate roe <[EMAIL PROTECTED]> wrote: > I believe it's because a ListView is not a FormComponent, and the Form only > visits its direct children. Does this sound plausible? How can I work > around this to cause a

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
listview rebuilds its components in the beginning of each request. setreuseitems inhibits that if the same page is redrawn, but if you change the page the items are not preserved. -igor On Tue, Jun 10, 2008 at 1:37 PM, nate roe <[EMAIL PROTECTED]> wrote: > I'm already using cookie names differen

Re: A question about cookie value loading

2008-06-10 Thread nate roe
I believe it's because a ListView is not a FormComponent, and the Form only visits its direct children. Does this sound plausible? How can I work around this to cause a Form's ListView's children to also be visited? On Tue, Jun 10, 2008 at 1:37 PM, nate roe <[EMAIL PROTECTED]> wrote: > > I'm al

Re: A question about cookie value loading

2008-06-10 Thread nate roe
I'm already using cookie names different from the component IDs. It's just that the components that belong to a ListView are never even checked for loading. Where does Wicket discard the ListView components when visiting its child FormComponents? On Tue, Jun 10, 2008 at 1:14 PM, Igor Vaynberg <[

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
i dont think cookie persistence is going to work for listviews out of the box. the problem is that components inside repeaters do not have stable component paths - and that is the key the cookie uses to store values. so you will need to roll your own solution for this usecase. -igor On Tue, Jun 1

Re: A question about cookie value loading

2008-06-10 Thread nate roe
Yes, I have. On Tue, Jun 10, 2008 at 11:48 AM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > On Tue, 10 Jun 2008, nate roe wrote: > > I have a form with several components. Some components are within a > > ListView. Cookie value persistence does not appear to be loading values > for > > componen

Re: A question about cookie value loading

2008-06-10 Thread Timo Rantalaiho
On Tue, 10 Jun 2008, nate roe wrote: > I have a form with several components. Some components are within a > ListView. Cookie value persistence does not appear to be loading values for > components in the ListView. I have a breakpoint in > Form.loadPersistentFormComponentValues(...) at line 261:

A question about cookie value loading

2008-06-10 Thread nate roe
I'm using Wicket 1.2. I have a form with several components. Some components are within a ListView. Cookie value persistence does not appear to be loading values for components in the ListView. I have a breakpoint in Form.loadPersistentFormComponentValues(...) at line 261: if (