Try getString("alertmessage", Model.ofMap(Collections.singletonMap("pagetitle", "My page title")));
** Martin 2010/8/8 zoran <jeremy...@gmail.com>: > > Hi, > > I want to use key from properties file with wicket page property added in > this > value. I tried this way, but it doesn't work. > > String js="alert('"+getString("alertmessage")+"');"; > target.appendJavascript(js); > > alertmessage=Learning goal ${pagetitle} updated successfully. > > As result I got an alert with message: > > Learning goal ${pagetitle} updated successfully. > > What is wrong with this code? > > Zoran > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/how-to-dinamically-add-a-wicket-property-to-the-key-in-the-properties-file-tp2317893p2317893.html > Sent from the Wicket - User 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