IPageMap in Wicket 6 ?

2014-04-14 Thread arnzel
Hi, i am migrating a wicket project from 1.3 to 1.6 i got in some classes references to the interface IPageMap. in the wiki i read Page map concept was discarded in Wicket 1.5 and is no longer part of the future releases. So i can delte any code relevant to IPageMap ? -- View this message

peculiarities with wicket hibernate

2014-04-14 Thread Yahoo
I serarated the hibernate part in an own maven modul. I the tests in this modul everything works well. I use a lot of many to one relationships. In the web application I get sometimes problems, that the key of a many to one relationship is not written or the DropDownChoice does'nt write the

Re: IPageMap in Wicket 6 ?

2014-04-14 Thread Martin Grigorov
Hi, Before deleting this code it would be safer if you explain how you use IPageMap. Maybe you need to migrate this code. Martin Grigorov Wicket Training and Consulting On Mon, Apr 14, 2014 at 10:39 AM, arnzel arne_zela...@gmx.de wrote: Hi, i am migrating a wicket project from 1.3 to 1.6

Re: Form component's model#setObject getting called twice per submit when inside a Border

2014-04-14 Thread Martin Grigorov
Hi, On Sun, Apr 13, 2014 at 7:44 PM, Sven Meier s...@meiers.net wrote: If the hierarchy is correct then the 1.4 logic is very confusing to me. Same way here ;). You know that Wicket 1.4 is no longer actively developed, so we won't improve this, even if it is a bug. I've read this thread

Re: peculiarities with wicket hibernate

2014-04-14 Thread Yahoo
I got a step further with the following definitions I succeded to Insert the ManyToOne relationships. Only the DropDownChoices don't write the changes back in the Model: In the hybernate model: @ManyToOne(cascade = CascadeType.REFRESH,fetch=FetchType.EAGER)

Download byte array

2014-04-14 Thread Christoph.Manig
Hello, Iam using a FileResourceStream to download a file. This needs an File, which I create on the fly like this: tempFile = File.createTempFile(SLA, .xls); InputStream data = new ByteArrayInputStream(ConsoleDataHandlerImpl.getInstance().getReportAsByteStream(beginDate,endDate));

Re: Download byte array

2014-04-14 Thread Carl-Eric Menzel
You can use a org.apache.wicket.request.resource.ByteArrayResource instead - It's an IResource implementation that takes a byte array. You can then use the resource in a DownloadLink, for example. Carl-Eric On Mon, 14 Apr 2014 12:11:06 +0200 christoph.ma...@t-systems.com wrote: Hello, Iam

Re: Download byte array

2014-04-14 Thread Martin Grigorov
Hi, On Mon, Apr 14, 2014 at 2:03 PM, Carl-Eric Menzel cmen...@wicketbuch.dewrote: You can use a org.apache.wicket.request.resource.ByteArrayResource instead - It's an IResource implementation that takes a byte array. You can then use the resource in a DownloadLink, for example.

Re: Introducing Croquet: Combining Wicket, Jetty, Hibernate, and Guice

2014-04-14 Thread Bill Speirs
Chris, sorry for not responding more quickly... was traveling back from ApacheCon NA. Honestly, it would be non-trivial to drop in a replacement to Hibernate. The JpaPersistService (http://goo.gl/FeI6xU) handles the configuration coming from persistence.xml and has nothing Hibernate specific. The

Re: Introducing Croquet: Combining Wicket, Jetty, Hibernate, and Guice

2014-04-14 Thread Maxim Solodovnik
In our project we have removed Hibernate because it's licence is not AL compatible We are using OpenJPA, was not so hard to replace On Mon, Apr 14, 2014 at 7:44 PM, Bill Speirs bill.spe...@gmail.com wrote: Chris, sorry for not responding more quickly... was traveling back from ApacheCon NA.

Re: Introducing Croquet: Combining Wicket, Jetty, Hibernate, and Guice

2014-04-14 Thread Chris Snyder
Thanks for the reply - no worries on the delay. In my case, I'm using EclipseLink. I originally was using Hibernate, but switched after encountering a known bug in Hibernate (the specifics of which I no longer recall). Since I was sticking to using the pure JPA API, it was a quick drop-in

TinyMCE InPlaceEditComponent on Wicket 6

2014-04-14 Thread Dirk Germonpré
Hello, I'm working on a large web application. Parts of the application are still running on Wicket 1.4, but I'm in the process of migrating them to Wicket 6. We used the wicket.contrib.tinymce.InPlaceEditComponent for inline editing of large texts. This worked fine on Wicket 1.4, but there seem

Re: TinyMCE InPlaceEditComponent on Wicket 6

2014-04-14 Thread Martin Grigorov
Hi, Do you use wicketstuff-tinymce 6.14 as well ? http://central.maven.org/maven2/org/wicketstuff/wicketstuff-tinymce/6.14.0/ Martin Grigorov Wicket Training and Consulting On Mon, Apr 14, 2014 at 5:54 PM, Dirk Germonpré dirk.germon...@gmail.comwrote: Hello, I'm working on a large web

Two Questions

2014-04-14 Thread Entropy
1) I have a feedback panel and when i add messages under info(), they do not show up. When I add the message via error(), it shows as expected. Why might this be? 2) I am using the @SpringBean annotation, works fine. But I want to inject a string property value that came from the properties

Re: TinyMCE InPlaceEditComponent on Wicket 6

2014-04-14 Thread Dirk Germonpré
Yes, I'm using version 6.14 of wicketstuff-tinymce. Dirk. 2014-04-14 16:59 GMT+02:00 Martin Grigorov mgrigo...@apache.org: Hi, Do you use wicketstuff-tinymce 6.14 as well ? http://central.maven.org/maven2/org/wicketstuff/wicketstuff-tinymce/6.14.0/ Martin Grigorov Wicket Training and

Validating multiple components as one

2014-04-14 Thread Christian Smolka
Hi to everybody! My little problem is about validating multiple input fields as a single one. So, I have three DoB fields (one for the day, one for the month and one for the year) that should be validated as a single date. While using Wicket 1.5 we overwrote AjaxEventBehavior#getEventHandler()

Re: TinyMCE InPlaceEditComponent on Wicket 6

2014-04-14 Thread Andrea Del Bene
It's a problem introduced with the workaround at https://issues.apache.org/jira/browse/WICKET-5248 and never removed. If you try working with version 6.9.0 (both Wicket and WicketStuff) you shouldn't have this problem. I'm committing a fix. Yes, I'm using version 6.14 of wicketstuff-tinymce.

Re: Validating multiple components as one

2014-04-14 Thread Sven Meier
Do I have to put the fields into a form and submit the whole form Wrapping all three inputs in a form with an AjaxFormSubmitBehavior is the easiest solution. Do you have any problems with it? Sven On 04/14/2014 07:45 PM, Christian Smolka wrote: Hi to everybody! My little problem is about

Re: Introducing Croquet: Combining Wicket, Jetty, Hibernate, and Guice

2014-04-14 Thread William Speirs
Off-topic a bit... on the JPA front, I'm still relatively new and finding it not as useful as I would have hoped. Beyond VERY simple read-by-primary-key and update/create/delete, anything else seems tedious. I'm having to learn the JPA query language (yes, you can use SQL but then you lose

Re: Wicket CDI application junit test

2014-04-14 Thread Duke
Hi all. Tried to build simple example with EntityManager injection: public class LoginPage extends BasePage { @Inject EntityManager em; ... } public class Application extends WebApplication { @Override protected void init() { super.init(); new