You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by v1nc3nt <sc...@googlemail.com> on 2012/12/27 18:12:48 UTC

Updating a self-made Panel

Hey there,

my self-made video-class (extending Panel) doesnt get updated, if its model
changes. 

I got a Class  "ClassA", which gets new Information through a Model,
whenever i select a choice in a List on my Webpage. That already works. In
this Class "A", there is a MultiLineLabel, which gets perfectly updated,
showing a descreption depending on which choice is selected on the website.

Also, in this Class "A", there is my self-made Video-Class. It's called like
this:


		Video test = new Video("myVideo", new Model<ClassB>(){
			@Override 
			public ClassB getObject() {  
				if (ClassA.this.getModel().getObject() != null){
					return ClassA.this.getModel().getObject();
				}
				else return new ClassB();
			}

		});

ClassB holds the Source of the VideoFile and some other Information.
The Videosource is always Null, which means, though the MultiLineLabel gets
the Updated Model of ClassA, the Video-Class doesnt get updated.

Ive been searching through the internet for hours now, without finding
anything helpful.

Hope you guys are able to give me some solution to this problem. Thanks in
regard.

Greetings
Benny




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Updating-a-self-made-Panel-tp4655087.html
Sent from the Users forum 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