Re: the choices is key instead of value when using DropDownChoice component

2018-01-29 Thread extraquoo
Hi ,just ignore my last reply. I should not override localizeDisplayValues to return true so as not to execute display = getLocalizer().getString(displayValue, this, displayValue);. your code is really helpful. Thank you very much indeed. -- Sent from: http://apache-wicket.1842946.n4.nabble.com

Re: the choices is key instead of value when using DropDownChoice component

2018-01-29 Thread extraquoo
yes, it is hard to explain the issue. the situation is if I put the key in the choices, then the i18n works fine for the front page ( when I click the locale change button ,the option got translated correctly), however ,since the key is in the choices, in pdf, it prints the verbiage key "forms.cf3

Re: Please friends

2018-01-29 Thread Илья Нарыжный
Hi! If you need CRUD with bootstrap and inventory I recommend you to take a look to http://orienteer.org. Some quick presentation about functionality can be found there: https://gitpitch.com/OrienteerBAP/Orienteer/gitpitch Orienteer is based on Apache Wicket: if needed you can deploy your own comp

Re: Migrating from Wicket 1.4 to 6 - Serialization

2018-01-29 Thread Leonardo D'Alimonte
Hello Martin, absolutely Hibernate is not injecting classes anywhere in Wicket classes. Interceptor is used to inject a Spring-configured class, ViaggioService, into a specific domain class, Viaggio.java. This code builds a DataTable of Viaggio entities inside the page that throws the NotSerializa

Re: the choices is key instead of value when using DropDownChoice component

2018-01-29 Thread Sven Meier
You wrote: "However, the choices object carries the key instead of the value in the backend." What do you want written into your object? The key, e.g. "forms.cf37.question8.oneTimeOrMonthly"? Then your first solution should work. If you want the value in your object's property, e.g. "One tim

Re: the choices is key instead of value when using DropDownChoice component

2018-01-29 Thread extraquoo
thanks for replying. Looks like it still put the value in the choices object. Maybe I am describing the issue incorrectly. so if put value in the choices object , construct the DropDownChoice and override localizeDisplayValues DropDownChoice selector = new DropDownChoice(fieldName, choices){

Re: Migrating from Wicket 1.4 to 6 - Serialization

2018-01-29 Thread Martin Grigorov
Hi Leonardo, How Hibernate Interceptor injects classes in Wicket classes ?! Wicket serializes the Page instance and everything in it, i.e. components, their models, etc. For some reason you pass non-serializable instance of one of your Viaggio*** classes to a Wicket component/model. Show us the