Re: Force Model to use getter

2017-12-01 Thread Andrew Geery
How about using an IConverter since the issue is not about the data itself but the representation of it? For example, you could create a Label class that overrides the getConverter() and return a BigDecimalConverter object that overrides the getNumberFormat method to return something like DecimalF

Re: Force Model to use getter

2017-12-01 Thread sorinev
I added a setter for each property, but it's still not working (tried matching field types as well). I guess I'll just have to stick with the IModel route, even though I don't like it. I changed the Doubles to BigDecimal, thanks for the reminder. -- Sent from: http://apache-wicket.1842946.n4.nabb

Re: Force Model to use getter

2017-12-01 Thread Martin Grigorov
Hi, The "problem" you face is that Wicket tries to find both getter and setter [1] and if any of them do not exist then it falls back to the field. I'd continue using a custom IModel for this use case. And I'd also change the type of the "amount" to BigDecimal! Doing math with doubles when deali

Re: Endless Redirect with tracking-mode COOKIE and Cookies Disabled in Browser

2017-12-01 Thread Martin Grigorov
Hi, Technically, this is not managed by Wicket. It is the web container (like Tomcat, Jetty, ...) that deals with these matters. Wicket just tries to bind a HttpSession and cannot find it after the redirect. There could be many reasons for this. The most common one is that the session has just exp

Force Model to use getter

2017-12-01 Thread sorinev
Wicket 7.9.0. I have a Java double that is linked to a Wicket Label. This double represents a dollar amount, so I want to work with it as a double for math purposes. When I display it on the page however, I want it to a be a currency formatted String. I figured I would just add a getter to my pag

Endless Redirect with tracking-mode COOKIE and Cookies Disabled in Browser

2017-12-01 Thread Conny Kühne
Hi, when I select COOKIE in the web.xml and disable cookies in the browser, I run into endless redirects for buffered responses. You can see this behavior, e.g., in the forminput example of the wicket-examples project. Not sure, whether this is a bug. After all, how should wicket know that the b

Re: IAjaxIndicatorAware AjaxBehavior for csv download

2017-12-01 Thread Kamil Paśko
I think he maent: https://issues.apache.org/jira/browse/WICKET-6448 together with: https://issues.apache.org/jira/browse/WICKET-6460 W dniu 2017-11-30 o 13:53, Maxim Solodovnik pisze: Since Wicket-8 you can use AjaxDownloadBehavior I believe it should be more ajax friendly ... On Thu, Nov 30