Eelco Hillenius wrote:
>
>> Yes, as I said in my last post, I'm using 1.2.6, last stable version
>> as
>> of some two or three days ago.
>> Thanks for your example !!
>
> That's why those two URLs are so different.
>
> What is not clear to me is what exactly goes wrong? Do you get
> exceptions? Or do your models not get upated right?
>
> Eelco
>
>
The server log shows no exception trace or error message at all, and the
page turns to HTTP Status 404 (The requested resource () is not available.)
I've deleted the closing tag in the LT html
xmlns="http://www.w3.org/1999/xhtml" GT line, notice the lacking of a slash
sign just before the "greater than" sign. This way I've received a very long
Unexpected RuntimeException trace, and at the end, this dump (sorry for the
long size and formatting):
Page
[Page class = com.myapp.wicket.Home, id = 0]:
# Path Size Type Model Object
1 form 2,7K wicket.markup.html.form.Form
unable to get
object, model:
Model:classname=[wicket.model.CompoundPropertyModel]:attached=true:nestedModel=[legajo
= '0000@@@@@', nombre = 'sin nombre'], called with component
[MarkupContainer [Component id = form, page = com.myapp.wicket.Home, path =
0:form.Home$1, isVisible = true, isVersioned = false]]
2 form:legajo 625 bytes
wicket.markup.html.form.TextField
0000@@@@@
3 form:nombre 333 bytes wicket.markup.html.basic.Label
sin nombre
4 mainNavigation 1,4K
com.myapp.wicket.WicketExampleHeader
unable to get object, model:
Model:classname=[wicket.model.CompoundPropertyModel]:attached=true:nestedModel=[legajo
= '0000@@@@@', nombre = 'sin nombre'], called with component
[MarkupContainer [Component id = mainNavigation, page =
com.myapp.wicket.Home, path = 0:mainNavigation.WicketExampleHeader,
isVisible = true, isVersioned = false]]
5 mainNavigation:exampleTitle 457 bytes
wicket.markup.html.basic.Label wicket
6 mainNavigation:externalLink1 930 bytes
wicket.markup.html.link.ExternalLink unable to get object, model:
Model:classname=[wicket.model.CompoundPropertyModel]:attached=true:nestedModel=[legajo
= '0000@@@@@', nombre = 'sin nombre'], called with component
[MarkupContainer [Component id = externalLink1, page =
com.myapp.wicket.Home, path = 0:mainNavigation:externalLink1.ExternalLink,
isVisible = true, isVersioned = false]]
Regarding the "unable to get object, model" message, I believe it can be
related to this code:
public Home() {
this(null);
}
/**
* Construct.
* @param model
*/
public Home(IModel model) {
super(model);
// HERE FOLLOWS MY OWN CODE
}
This is copied from the example, as you can see, the first constructor
with no parameters calls the second one with null parameter, and the second
one starts calling super(model), so I guess the model is set to null, is
this right ?? But after that, I call setModel:
final Input input = new Input();
setModel(new CompoundPropertyModel(input));
Thanks for your help !!
Daniel
--
View this message in context:
http://www.nabble.com/Problem-following-TextField-example-tf4302594.html#a12261433
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]