Re: Equivalent to WebResource in Wicket 1.5.8

2012-09-09 Thread Madasamy Sankarapandian
Thank you very much I used ByteArrayResource(String contentType, byte[] array, String filename) constructor.

Re: Setup Wicket in Eclipse without need to re-initialize the whole servlet container

2012-09-09 Thread zenith77
I use the simplest of setups - embedded Jetty in a Java main method, and run from within Eclipse in debug mode. I just point the root directory to my local project files, and off I go. No buggy plug-ins, or configuration - just plain old Java. Means you can edit java files and they automatically

Re: Issues with default type conversion in 1.5

2012-09-09 Thread Alec Swan
Perfect, thanks for your help! On Sun, Sep 9, 2012 at 3:13 PM, Sven Meier wrote: > Sorry, my statement was wrong: > If you register your converter for Object and Serializable, everything > should be fine. > > Sven > > > On 09/09/2012 07:21 PM, Alec Swan wrote: >> >> In which case can it cause a C

Re: Issues with default type conversion in 1.5

2012-09-09 Thread Sven Meier
Sorry, my statement was wrong: If you register your converter for Object and Serializable, everything should be fine. Sven On 09/09/2012 07:21 PM, Alec Swan wrote: In which case can it cause a ClassCastException? On Sun, Sep 9, 2012 at 6:25 AM, Sven Meier wrote: public Object convertToObje

Re: Setup Wicket in Eclipse without need to re-initialize the whole servlet container

2012-09-09 Thread Alec Swan
I had pretty good luck with JRebel. In addition I use RemoteSyncronizer IntelliJ plugin to automatically copy HTML/JS/CSS files from my source tree to webapp deployment dir. Alec On Sun, Sep 9, 2012 at 11:36 AM, Michael Mosmann wrote: > I have used run-jetty-run as eclipse plugin... If this is n

Re: Setup Wicket in Eclipse without need to re-initialize the whole servlet container

2012-09-09 Thread Michael Mosmann
I have used run-jetty-run as eclipse plugin... If this is not enough, you should use jrebel. Michael mosmann "seba.wag...@gmail.com" schrieb: >Hi, > >we have set up Wicket in OpenMeetings and it is working fine! > >However the development cycle is pretty long: >Every change requires us to re

Setup Wicket in Eclipse without need to re-initialize the whole servlet container

2012-09-09 Thread seba.wag...@gmail.com
Hi, we have set up Wicket in OpenMeetings and it is working fine! However the development cycle is pretty long: Every change requires us to recompile and restart the servlet container. As we use Wicket + Spring + openJPA a restart takes around 20 seconds + compilations time, it takes around 30 se

Re: Issues with default type conversion in 1.5

2012-09-09 Thread Alec Swan
In which case can it cause a ClassCastException? On Sun, Sep 9, 2012 at 6:25 AM, Sven Meier wrote: >> public Object convertToObject(String value, Locale locale) { return value; >> } > > That might fail badly causing a ClassCastException but as long as it works > for you ;). > > Thanks for creatin

Re: Issues with default type conversion in 1.5

2012-09-09 Thread Sven Meier
> public Object convertToObject(String value, Locale locale) { return value; } That might fail badly causing a ClassCastException but as long as it works for you ;). Thanks for creating the issue. Sven On 09/09/2012 09:22 AM, Alec Swan wrote: Here is a new JIRA https://issues.apache.org/jir

Re: Issues with default type conversion in 1.5

2012-09-09 Thread Alec Swan
Here is a new JIRA https://issues.apache.org/jira/browse/WICKET-4755 I added the following code in my application class to implement what you recommended as a fix. Maybe this will help other people who run into this problem. Does this look good to you? @Override protected IConverterLocato