Re: Failing test SpringBeanWithGenericsTest in 7.3.0.0 SNAPSHOT

2016-03-31 Thread Thorsten Schöning
Guten Tag Martin Grigorov, am Mittwoch, 30. März 2016 um 15:54 schrieben Sie: > Please create a patch / Pull Request and a ticket. https://issues.apache.org/jira/browse/WICKET-6133 Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de

Re: Getting the model

2016-03-31 Thread Sven Meier
Hi, yeah, of course this is right: protected void onComponentTag(final ComponentTag tag) { if (getModelObject().doubleValue() < 0.0) { tag.put("class", " negative"); } } Otherwise you'll end up with one additional behavior for each render - stupid

Re: Getting the model

2016-03-31 Thread Sven Meier
Hi, you can access a component's model with #getDefaultModel() or - if it is a generic component - with #getModel(). To properly 'bind' to a model you should delay invocation of #getObject() as late as possible, so better overwrite #onComponentTag(): protected void onComponentTag(final

Getting the model

2016-03-31 Thread Ron Smits
I have searched but I dont find a clear way of getting the model when one is creating a custom component: public MoneyLabel(String id) { super(id); add(new AttributeAppender("class", " number")); } public MoneyLabel(String id, Model bigDecimalModel) { super(id, bigDecimalModel);

Re: Getting the model

2016-03-31 Thread Martin Makundi
2016-03-31 17:06 GMT+03:00 Ron Smits : > I have searched but I dont find a clear way of getting the model when one > is creating a custom component: > > > public MoneyLabel(String id) { > super(id); > add(new AttributeAppender("class", " number")); > } > > public

Re: Getting the model

2016-03-31 Thread Martin Grigorov
Hi, On Thu, Mar 31, 2016 at 4:29 PM, Sven Meier wrote: > Hi, > > you can access a component's model with #getDefaultModel() or - if it is a > generic component - with #getModel(). > > To properly 'bind' to a model you should delay invocation of #getObject() > as late as

Re: Resources can't object HTTP request body

2016-03-31 Thread Илья Нарыжный
Martin, Ticket has been created: https://issues.apache.org/jira/browse/WICKET-6135 Will attach quick start today/tomorrow. Thanks, Ilia 2016-03-29 6:39 GMT-07:00 Martin Grigorov : > Please create a ticket at JIRA. > With a quickstart would be nice! > Thank you! > > Martin