Oh.. looks tedious.. 2011/10/2 Christian Huber <[email protected]>: > You can use a MapVariableInterpolator to replace the variable with it's > label value programmatically, e.g. resolve all nested variables using a > resolver (or Component#getString) put them as values into a map with the > variable name as key. > > String label = getString("link_label"); > > Map<String,String> map = new HashMap<String,String>(); > map.put("link_label", label); > > String result = > MapVariableInterpolator.interpolate(getString("link_instructions"),map); > > > When you use wicket:message tags you can use nested child components (see > the documentation on the message tag for further information). > > In both cases you have to specify all nested variables explicitly. > > > The Sanity Resort <http://sanityresort.blogspot.com/> > > Am 02.10.2011 10:09, schrieb Martin Makundi: >> >> Hi! >> >> Is it possible to crossreference in xx.properties files for label >> keys, in Wicket? >> >> For example: >> >> link_label=Mouse button >> link_instructions=Click '${link_label}' to start sequence >> >> Or something similar? >> >> ** >> Martin >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
