Hi,

you're probably holding on an outdated user object, use this instead:

  add(new Label("houses_amount",
      new AbstractReadOnlyModel<String>() {
        public String getObject() {
          return MySession.get().getUser().getVillage();
        }
      }));

Sven


On 10/06/2011 10:17 AM, Zeldor wrote:
> Hi,
> 
> I have a form with labels that use PropertyModel. They work fine when I test
> them locally - when I click on submit button I get proper refreshed values
> in labels. But when I deploy my app it does not work, I still get old
> values. Where can be the problem? I am using Wicket 1.4.17 and deploying on
> Google AppEngine. 
> 
> My code:
> 
> Form<String> buildHousesForm = new Form<String>("buildHousesForm", new
> Model<String>())
> ...
> ...
> add(new Label("houses_amount",  new PropertyModel(MySession.get().getUser(),
> "village")));
> ...
> ...
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/PropertyModel-not-refreshing-tp3877389p3877389.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to