Re: [wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-21 Thread Per Newgro
Thanks Timo, didn't saw the list model. Is it 1.4-only? Have to investigate the diffs between 1.3 and 1.4 more detailed. Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: [wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-21 Thread Igor Vaynberg
1.3? in 1.3 the model is not generified... -igor On Wed, Jan 21, 2009 at 10:38 AM, Per Newgro per.new...@gmx.ch wrote: Thanks Timo, didn't saw the list model. Is it 1.4-only? Have to investigate the diffs between 1.3 and 1.4 more detailed. Cheers Per

Re: [wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-21 Thread Per Newgro
Oh sure. Thanks for clearing this. Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: [wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-20 Thread Per Newgro
BasePanel is public abstract class BasePanelT extends Panel implements IChangeHandler { /** * Constructor of BasePanel * @param pId wicket id of component */ public BasePanel(String pId) { super(pId); } /** * Constructor of BasePanel * @param pId wicket

Re: [wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-20 Thread Matej Knopp
You declare the class with MySerializableClass as generic parameter to BasePanel, but try to put ListMySerializableClass in constructor. That can't work. Why can't you use ListMySerializableClass as generic parameter when extending BasePanel? -Matej On Tue, Jan 20, 2009 at 7:22 PM, Per Newgro

Re: [wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-20 Thread Per Newgro
Do you mean that way? public class MyPanel extends BasePanelListMySerializableClass { public MyPanel(String pId) { super(pId, new ModelListMySerializableClass(new ArrayListMySerializableClass())); } } That way i get Bound mismatch: The type ListMySerializableClass is not a valid

Re: [wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-20 Thread James Carman
A Model is serialized, therefore the object contained within it must be serializable. Perhaps you need a LoadableDetachableModel of some sort? On Tue, Jan 20, 2009 at 2:03 PM, Per Newgro per.new...@gmx.ch wrote: Do you mean that way? public class MyPanel extends

Re: [wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-20 Thread Per Newgro
Sure thats what i've red in the docs to. But i don't see it for my special case. I will get a NoSerializableException if it's not. So where is the problem? But as i wrote - i can deal with that implementation, if i get out of my problem. Thanks Per

Re: [wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-20 Thread Timo Rantalaiho
On Tue, 20 Jan 2009, Per Newgro wrote: super(pId, new ModelListMySerializableClass(new ArrayListMySerializableClass())); super(pId, new ListModelMySerializableClass(new ArrayListMySerializableClass())); https://issues.apache.org/jira/browse/WICKET-1745 Best wishes, Timo -- Timo

Re: [wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-20 Thread Marat Radchenko
2009/1/20 James Carman jcar...@carmanconsulting.com: A Model is serialized, therefore the object contained within it must be serializable. Uh? What about stateless pages? - To unsubscribe, e-mail:

[wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-19 Thread Per Newgro
Hi *, i would like to know how i should get this to work: class MyPanel extends BasePanelMySerializableClass { public MyPanel(String id) { super(id, new ModelListMySerializableClass(new ArrayListMySerializableClass())); } } Compiler says: The constructor

Re: [wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-19 Thread Igor Vaynberg
how is basepanel declared? -igor On Mon, Jan 19, 2009 at 12:35 PM, Per Newgro per.new...@gmx.ch wrote: Hi *, i would like to know how i should get this to work: class MyPanel extends BasePanelMySerializableClass { public MyPanel(String id) { super(id, new