non-serializable objects to feed a DropDownChoice
Hello there, my domain classes are mostly not serializable. Making use of LoadableDetachableModels I have no problems execpt of one situtation: I couldn't find an easy solution to place a list of domain objects in a DropDownChoice without getting serialization issues. The examples I found ignore this problem and I have only a pretty complicated work around. My domain classes have an id of type long (serializeable), which I use in my solution. This works, but the code confuses me everytime I have to touch it. My question now, how is this done the "wicket way" ? Is there an elegant solution out there? René - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Rendering a page for storage
Hello, most of my projects have a AppStatus Page containing some statistics. No I need to store this information on web server shut down and I was wondering, if I could just persist a freshly rendered page and have everything I need nicley formatted in a html file. The javadoc looked promising but the following code in my app class @Override protected void onDestroy() { ComponentRenderer cr = new ComponentRenderer(this); logStatus (cr.renderPage(AppStatus::new)); } gave me only a java.lang.IllegalArgumentException: Request must be ServletWebRequest What did I miss? Am I on the right path? René - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Recommenced way of dealing with non Serializable Objects in Forms
Hello, I simply wanna edit non Serializable domain objects in a html form. The Form should work for inserts (new objects) and updates. I created a LoadableDetachableModel for the given Domain which keeps a (database) id and has the following load method: @Override protected Testobject load() { if (DomainEntity.isPersistent(id)) { return Testobject.findOne(id); } else { return new Testobject(); } } So if the id indicates persistence, the Testobject is loaded from the data source. If not, a new Testobject is created. I put this Model in a CompoundPropertyModel and everythings works fine. But I wonder if there are other solutions? Regards, Rene - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
DatePicker in wicket 8
Hello everybody, I just realized the wicket-datetime module is gone in wicket 8 and with it my beloved DatePicker. Is it totally gone or just replaced or renamed? The Migration Guide for Wicket 8 does not mention anything about (wicket-)date/time. Best regards, René - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org