Re: A problem with ListView in a StatelessForm

2010-01-14 Thread kirillkh
Thanks, I'll be checking that out.

On Thu, Jan 14, 2010 at 2:52 AM, Cemal Bayramoglu 
jweekend_for...@cabouge.com wrote:

 Kirill,

 You may get some useful ideas at http://wicketinaction.com/tag/listeditor/ .

 Regards - Cemal
 jWeekend
 OO  Java Technologies, Wicket
 Consulting, Development, Training
 http://jWeekend.com


 2010/1/13 kirillkh kiril...@gmail.com:
  Hi Per,
 
  I've seen this mentioned in the javadocs, but it can't possibly help, as
 the
  ListView.reuseItems variable is only used inside ListView.onPopulate(),
  which, as I pointed out, is called too late. Indeed, setting reuseItems
 on
  doesn't help.
 
  Thanks,
  -Kirill
 
  On Wed, Jan 13, 2010 at 8:49 AM, Per Newgro per.new...@gmx.ch wrote:
 
  Without going deeper to your problem. A common mistake is that people
  forgot to call setReuseItems on the listview.
  This is required with repeaters in form. See javadoc for details.
 
  Cheers
  Per
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: A problem with ListView in a StatelessForm

2010-01-13 Thread Cemal Bayramoglu
Kirill,

You may get some useful ideas at http://wicketinaction.com/tag/listeditor/  .

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com


2010/1/13 kirillkh kiril...@gmail.com:
 Hi Per,

 I've seen this mentioned in the javadocs, but it can't possibly help, as the
 ListView.reuseItems variable is only used inside ListView.onPopulate(),
 which, as I pointed out, is called too late. Indeed, setting reuseItems on
 doesn't help.

 Thanks,
 -Kirill

 On Wed, Jan 13, 2010 at 8:49 AM, Per Newgro per.new...@gmx.ch wrote:

 Without going deeper to your problem. A common mistake is that people
 forgot to call setReuseItems on the listview.
 This is required with repeaters in form. See javadoc for details.

 Cheers
 Per

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



A problem with ListView in a StatelessForm

2010-01-12 Thread kirillkh
Hi (again),

Another problem that I've encountered: ListView doesn't seem to play nicely
with StatelessForm. A stateless form is supposed to work and accept input no
matter if the page exists or not. Now the problem that I'm facing is when a
user logs into the system, views certain page with StatelessForm and
ListView inside it, then opens another tab, logs out, then logs in again,
returns to the first tab with the named StatelessForm and finally submits
it. The result is that the user's input is ignored, the form is constructed
anew and immediately after that its onSubmit() method is invoked. I've
debugged the code, and it seems that the reason for such behavior is that
ListView doesn't populate its children until the rendering phase, so the
input components that are located inside ListView don't get a chance to
update their values from the user's input. Calling form.beforeRender() from
the page's constructor works around the problem (though I'm not sure it
doesn't introduce other issues).

-Kirill


Re: A problem with ListView in a StatelessForm

2010-01-12 Thread Per Newgro
Without going deeper to your problem. A common mistake is that people 
forgot to call setReuseItems on the listview.

This is required with repeaters in form. See javadoc for details.

Cheers
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: A problem with ListView in a StatelessForm

2010-01-12 Thread kirillkh
Hi Per,

I've seen this mentioned in the javadocs, but it can't possibly help, as the
ListView.reuseItems variable is only used inside ListView.onPopulate(),
which, as I pointed out, is called too late. Indeed, setting reuseItems on
doesn't help.

Thanks,
-Kirill

On Wed, Jan 13, 2010 at 8:49 AM, Per Newgro per.new...@gmx.ch wrote:

 Without going deeper to your problem. A common mistake is that people
 forgot to call setReuseItems on the listview.
 This is required with repeaters in form. See javadoc for details.

 Cheers
 Per

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org