Found another problem...was setting Labels with strings and expecting
them to behave as if they'd been passed model objects. :(
Funny, I was already at my silly mistake limit for the day...
kurt heston wrote:
I've got a page with two forms on it. They both use a
CompoundPropertyModel and work perfectly aside from one thing: they
don't update when their model changes.
I've passed a reference of the same POJO instance to each of them.
public class MyPage extends WebPage {
SomePojoClass pojo = new SomePojoClass();
...
public MyPage() {
add(new SearchForm(new CompoundPropertyModel(pojo)));
add(new ChangeRecForm(new CompoundPropertyModel(pojo)));
}
..
class SearchForm extends Form {
...
onSubmit() {
doStuffToModel((SomePojoClass)SearchForm.this.getModelObject());
this.getParent().get("ChangeRecForm").modelChanged();
}
I was hoping changing the properties in the object and calling
modelChanged on the not submitted would cause it to refresh its
fields, no such luck.
The code executes, but ChangeRecForm's fields do not change. Where is
the gap in my understanding of things?
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user