Hey guys,
i got this strange issue, what I am doing at the moment is attempting to
pass an objectModel to a child panel thru panel.setModel() but i am getting
a null exception error.
I have run debugger and found that.... when i retrieve the ModelObject for
imageInfo in Csession, its not null. But when the ContentPanel renders, the
ModelObject IS null :S
any ideas??
public class csession extends Panel
{
Panel content;
public csession (String wicketId, MarkupContainer parent)
{
super(wicketId, parent);
content = new ContentPanel("content", this);
TabModel mod = new TabSessionModel(this);
content.setModel(new PropertyModel(mod, "imageInfo"));
}
}
public class ContentPanel extends Panel
{
Label name;
public ContentPanel (String wicketId, MarkupContainer parent)
{
super(wicketId, parent);
name = new Label("name", this);
name.setModel(new PropertyModel(getModel(), "name"));
}
}
--
View this message in context:
http://www.nabble.com/model-inheritence-issues-%3AS-tp15445920p15445920.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]