Re: Displaying Images Stored in DB on Openshift

2014-07-14 Thread Martin Grigorov
Hi, Is it possible to attach remote debugger to OpenShift and see what happens ? If it is not possible then add some logging statements and see what is returned from the DB (byte[]) and whether Wicket creates a proper BufferedImage, whether it is written down in the resource's WriteCallback, etc.

item.getModelObject() result cannot be cast to

2014-07-14 Thread sorinev
I'm using the Wicket Quickstart (latest as of yesterday) as a base and I'm trying to do a very simple loop through data I've grabbed from a database (Hibernate, MySQL, no Spring). I'm following the various DataView, ListView, etc examples to the letter and every time I restart the server and

Re: item.getModelObject() result cannot be cast to

2014-07-14 Thread Martin Grigorov
Hi, Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jul 14, 2014 at 12:05 PM, sorinev sori...@gmail.com wrote: I'm using the Wicket Quickstart (latest as of yesterday) as a base and I'm trying to do a very simple loop through data I've grabbed from a

Re: item.getModelObject() result cannot be cast to

2014-07-14 Thread sorinev
I'm not even sure HOW to get into a debuggable environment. The wicket framework and whole environment is so bizzare and unfamiliar, i'm not sure how (it took me 2 days to get the environment set up to even begin programming). I current develop it in IntelliJ IDEA. When I'm ready, I hit rebuild

Re: item.getModelObject() result cannot be cast to

2014-07-14 Thread Martin Grigorov
Wicket Quickstart comes with embedded Jetty for much easier development. In IDEA open class Start.java (it is in src/test/java/...), right click somewhere in the body of the class and choose Debug Start.main() from the context menu. Consult with http://www.jetbrains.com/idea/webhelp/debugging.html

Re: item.getModelObject() result cannot be cast to

2014-07-14 Thread sorinev
Ok, that was simple enough (running in Jetty for debug purposes). It shows the objects as: /contactList = {java.util.ArrayList@3397} size = 4/ and then each element in the list is shown as /java.lang.Object/ So I guess I need to get some converting going on for the list and/or it's elements.

Re: item.getModelObject() result cannot be cast to

2014-07-14 Thread Martin Grigorov
On Mon, Jul 14, 2014 at 12:53 PM, sorinev sori...@gmail.com wrote: Ok, that was simple enough (running in Jetty for debug purposes). It shows the objects as: /contactList = {java.util.ArrayList@3397} size = 4/ and then each element in the list is shown as /java.lang.Object/ So I guess I

Re: item.getModelObject() result cannot be cast to

2014-07-14 Thread sorinev
I found a way to do it. I just had to change the line from /ListContact contactList = session.createSQLQuery(select * from wicket.contacts).list();/ to /ListContact contactList = session.createSQLQuery(select * from wicket.contacts).addEntity(Contact.class).list();/ meaning the only thing

OT: statistics about open source contributors

2014-07-14 Thread Ernesto Reinaldo Barreiro
Hi, I know this is a bit off topic... but any of the smart guys over here knows some god statistics about what percentage of developers world wide is directly contributing to open-source? I mean forking projects on github, *bitbucket, * etc, and/or contributing patches, documentation and so on?

Re: OT: statistics about open source contributors

2014-07-14 Thread Michael Haitz
ohloh has a lot of interesting statistics, maybe there’s one that shows your numbers. Link: http://www.ohloh.net/people Am 14.07.2014 um 15:25 schrieb Ernesto Reinaldo Barreiro reier...@gmail.commailto:reier...@gmail.com: Hi, I know this is a bit off topic... but any of the smart guys over

Re: OT: statistics about open source contributors

2014-07-14 Thread Ernesto Reinaldo Barreiro
Thanks for your answer! Yes I know http://www.ohloh.net/ http://www.ohloh.net/people. I know they have some global statistics on projects. But not I have not seen something similar for developers. Mind that they list developers participating on open source. But, I;m interested in ratio

Re: equals() method for LoadableDetachableModels

2014-07-14 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-5642 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sat, Jul 12, 2014 at 7:22 PM, Martin Grigorov mgrigo...@apache.org wrote: I'll test with IdentityHashMap with our main app soon. Martin Grigorov Wicket

Re: Custom Pagination

2014-07-14 Thread Paul Bors
You're half way home. You extended PagingNavigator but forgot to read its code. See line 150 of PagingNavigator or better said the newNavigation() method: /** * Create a new PagingNavigation. May be subclassed to make us of specialized PagingNavigation. * *

Lightbox2 Integration

2014-07-14 Thread Jered Myers
I am having trouble getting the wicketstuff Lightbox2 plugin integration working. I am using the basic example with image resources at the bottom of https://github.com/wicketstuff/core/wiki/Lightbox2-Plugin-Integration. The thumbnail displays just fine, but when I click on the thumbnail only

Re: factory method to create the DataGridView in DataTable

2014-07-14 Thread diegomottas
I have the same problem, have you found a solution? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/factory-method-to-create-the-DataGridView-in-DataTable-tp4664458p413.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Displaying Images Stored in DB on Openshift

2014-07-14 Thread David Beer
Hi Martin Thanks for your reply. Attaching a debugger is really easy with OpenShift and is what I did. I was able to see that storing the file was in fact producing the wrong set of image bytes, hibernate postgresql issue. Once fixed I was able to check the file and image properly. All seemed to

Re: An extensive RIA technology comparison matrix including Wicket

2014-07-14 Thread arronlee
Hi, As for me, I am testing the related .net barcode generator http://www.keepautomation.com/guide/dotnet_barcode_generator.html these days. Do you have any ideas about it? Or any good suggestion? I am totally a green hand on barcode generating field. Any suggestion will be appreciated. Thanks

Re: Displaying Images Stored in DB on Openshift

2014-07-14 Thread Ernesto Reinaldo Barreiro
Hi, On Mon, Jul 14, 2014 at 10:38 PM, David Beer david.m.b...@gmail.com wrote: Hi Martin Thanks for your reply. Attaching a debugger is really easy with OpenShift and is what I did. I was able to see that storing the file was in fact producing the wrong set of image bytes, hibernate