Re: Getting the model

2016-04-01 Thread Tobias Soloschenko
Cool - thanks! kind regards Tobias > Am 01.04.2016 um 14:56 schrieb Martin Grigorov : > > I've added an example with > https://github.com/apache/wicket/commit/2417322673238d57a794c237e84dd5dacf890804 > > I think we should explain that those are just convenience. It is

Re: Getting the model

2016-04-01 Thread Martin Grigorov
I've added an example with https://github.com/apache/wicket/commit/2417322673238d57a794c237e84dd5dacf890804 I think we should explain that those are just convenience. It is better to use the "old way" one cares about memory usage. I'll add it soon. Martin Grigorov Wicket Training and Consulting

Re: Getting the model

2016-04-01 Thread Tobias Soloschenko
Hi, would be great to see some information how to use lambda models in the user guide. kind regards Tobias > Am 01.04.2016 um 13:57 schrieb Martin Grigorov : > >> On Fri, Apr 1, 2016 at 12:45 AM, Sven Meier wrote: >> >> Hi, >> >> yeah, of course this

Re: Getting the model

2016-04-01 Thread Martin Grigorov
On Fri, Apr 1, 2016 at 12:45 AM, Sven Meier wrote: > Hi, > > yeah, of course this is right: > > protected void onComponentTag(final ComponentTag tag) { > > if (getModelObject().doubleValue() < 0.0) { > tag.put("class", " negative"); > } > } >

[7.2] ContextRelativeResourceReference

2016-04-01 Thread nino martinez wael
I am having a hard time getting the ContextRelativeResourceReference to work. I thought it was supposed to grab the specified resource from the web container relative to where the wicketapplication where mounted. In my case my directory layout are like the attached image. And I have configured