You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ballist1c <le...@msn.com> on 2008/02/13 00:36:11 UTC
model inheritence issues :S
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org