Unfriendly Model.ofList etc. methods; can anything be done?

2011-02-12 Thread Willis Blackburn
I'm constantly running into problems with this method: public static C IModelList? extends C ofList(final List? extends C list) This says that ofList takes, as a parameter, a List of C or some subclass of C, and returns a List of C or of some subclass of C. The problem that I keep having is

Re: Unfriendly Model.ofList etc. methods; can anything be done?

2011-02-12 Thread Jeremy Thomerson
On Sat, Feb 12, 2011 at 7:56 AM, Willis Blackburn wbo...@panix.com wrote: I'm constantly running into problems with this method: public static C IModelList? extends C ofList(final List? extends C list) This says that ofList takes, as a parameter, a List of C or some subclass of C, and

Re: Unfriendly Model.ofList etc. methods; can anything be done?

2011-02-12 Thread Willis Blackburn
jer...@wickettraining.com wrote: On Sat, Feb 12, 2011 at 7:56 AM, Willis Blackburn wbo...@panix.com wrote: As a side note, rarely should you ever use Model class for a list of things, especially things loaded from a database. If you then pass that model to a component, all the things

Re: File upload progress bar

2011-02-12 Thread Valentin Avksentyev
I want clarify that the issue on Mac OS X is only with webkit browsers, I tested Safari and Chrome There is no issue when using Firefox, progress bar tracks progress correctly. Added an issue ticket https://issues.apache.org/jira/browse/WICKET-3443 -Valentin On Feb 4, 2011, at 10:17 AM, Pedro

Page with no markup - can be done better than with empty TextTemplate?

2011-02-12 Thread Marcin Zajączkowski
Hi, In the application I need to have an util page which reloads application configuration. No markup is required, page implementation calls reload from service layer, set info message in a session and redirect to a homepage. I did it by creating EmptyMarkup class and returning it from

Re: Page with no markup - can be done better than with empty TextTemplate?

2011-02-12 Thread Igor Vaynberg
class mypage extends webpage { public mypage() { service.reset(); getsession().info(..); throw new restartResponseException(getapplication().gethomepage()); } } -igor 2011/2/12 Marcin Zajączkowski msz...@wp.pl: Hi, In the application I need to have an util page which

Re: Page with no markup - can be done better than with empty TextTemplate?

2011-02-12 Thread Marcin Zajączkowski
On 2011-02-12 23:26, Igor Vaynberg wrote: class mypage extends webpage { public mypage() { service.reset(); getsession().info(..); throw new restartResponseException(getapplication().gethomepage()); } } I knew there is a way :). Thanks Igor. Marcin 2011/2/12 Marcin