Uhh, forget it ;)
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Levy,
Jeremy
Sent: Wednesday, February 07, 2007 11:16 AM
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Models and Pages
I have a bunch of labels on a page and I have associated the page with a
CompoundPropertyModel, however when I update the values in the model the
page doesn't reflect the change.. See the following code for an example:
--------------------------------
public View() {
super(new CompoundPropertyModel(new WorkRequestModel()));
WorkRequestModel theModel = (WorkRequestModel)getModelObject();
theModel.setProject_name("Project Name");
setModelObject(theModel);
Label project_name = new Label("project_name");
project_name.setOutputMarkupId(true);
add(project_name);
}
-----------------------
This works with forms usually, can this not be done with a regular page?
Jeremy
--------------------------------------------------------
Important Notice to Recipients:
It is important that you do not use e-mail to request, authorize or effect the
purchase or sale of any security or commodity, to send fund transfer
instructions, or to effect any other transactions. Any such request, orders, or
instructions that you send will not be accepted and will not be processed by
Morgan Stanley.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user