database

2011-06-04 Thread Miroslav F.
Hi folks, I'm newbie in wicket. I would like to make my wicket app to store images in database. No problem but I don't know how to configure tomcat + wicket for database. I'm using database in other java apps (I'm Java SWING programmer). Should I use pure JDBC and manage my connections in wicket

RE: database

2011-06-04 Thread Miroslav F.
Hi Martin, ok, so can I use Hibernate as in my Swing apps? And Hibernate .jars just to incude in same place as wicket .jar? Where to store Hibernate config file? Miro -Original Message- From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] Sent: Saturday, 04. June 2011

RE: database

2011-06-04 Thread Miroslav F.
wicket project and swing project. Also you should keep swing project and wicket project sparate. ** Martin 2011/6/4 Miroslav F. mir...@seznam.cz: Hi Martin, ok, so can I use Hibernate as in my Swing apps? And Hibernate .jars just to incude in same place as wicket .jar? Where

RE: database

2011-06-07 Thread Miroslav F.
The original question was I would like to make my wicket app to store images in database. No problem but I don't know how to configure tomcat + wicket for database. No is it good idea to store images in database? ;-) Still don't know how to work with database in wicket. Is anywhere examples?

RE: database

2011-06-09 Thread Miroslav F.
hit: http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ Hielke -Original Message- From: Miroslav F. [mailto:mir...@seznam.cz] Sent: dinsdag 7 juni 2011 11:42 To: users@wicket.apache.org Subject: RE: database The original question was I would like to make

image from data

2011-07-02 Thread Miroslav F.
Hi folks, I have images in database as BLOBs and retrieving it with JDBC (not good code, just test at the moment) with this (just snip of the code): conn = Utils.makeConnection();//make connection with JDBC try { conn.setAutoCommit(false); st = conn.createStatement(); rs

RE: image from data

2011-07-03 Thread Miroslav F.
-Original Message- From: Adam Gray [mailto:adam.j.g...@gmail.com] Sent: Saturday, 02. July 2011 14:42 To: users@wicket.apache.org Subject: Re: image from data Perhaps check out DynamicImageResource? On Sat, Jul 2, 2011 at 7:39 AM, Miroslav F. mir...@seznam.cz wrote: Hi

error - serialization

2011-07-03 Thread Miroslav F.
Folks, another problem of my testing app - I have this error in tomcat console (looks like app is stil working): ... 9094 [http-80-1] ERROR org.apache.wicket.util.lang.Objects - Error serializing object class com.mypackage.Index [object=[Page class = com.mypackage.Index, id = 2, version = 0]]

RE: error - serialization

2011-07-03 Thread Miroslav F.
Alexander, it (of course..) works, thanks for pointing me right direction. Miro -Original Message- From: Alexander Morozov [mailto:alexander.v.moro...@gmail.com] Sent: Sunday, 03. July 2011 11:27 To: users@wicket.apache.org Subject: Re: error - serialization You have JDBC

FW: error - serialization

2011-07-03 Thread Miroslav F.
Still problem with no suitable driver found Does someone has experience with this and solved it? Miro -Original Message- From: Miroslav F. [mailto:mir...@seznam.cz] Sent: Sunday, 03. July 2011 10:14 To: users@wicket.apache.org Subject: error - serialization Folks, another

RE: error - serialization

2011-07-04 Thread Miroslav F.
, and initialize it. Carl-Eric www.wicketbuch.de On Sun, 3 Jul 2011 23:08:40 +0200 Miroslav F. mir...@seznam.cz wrote: Still problem with no suitable driver found Does someone has experience with this and solved it? Miro

RE: error - serialization

2011-07-05 Thread Miroslav F.
? Carl-Eric On Mon, 4 Jul 2011 08:02:16 +0200 Miroslav F. mir...@seznam.cz wrote: Driver is in classpath and is initialized. When I start tomcat, it works (load images from database) but when i redeploy or reload page (F5) it complains about java.sql.SQLException: No suitable driver

RE: error - serialization

2011-07-05 Thread Miroslav F.
Miroslav F. mir...@seznam.cz wrote: Code or project layout? Driver for ostgreSQL JDBC is in tomcat lib directory and code is standard init and usage code from jdbc.postgresql.org examples. It works but from some reason just for first time. When I do F5 on page or redeploy project error

RE: error - serialization

2011-07-06 Thread Miroslav F.
, 2011 at 11:35 AM, Miroslav F. mir...@seznam.cz wrote: ImagesIndex.java: public class ImagesIndex extends LoadableDetachableModelObject {        private DBImage myImage;        @Override        protected Object load()        {                myImage = new DBImage

RE: error - serialization

2011-07-07 Thread Miroslav F.
+0200 Miroslav F. mir...@seznam.cz wrote: Index.java: public class Index extends WebPage { public Index() { add(new Image(obrazokzdb, new ImagesIndex())); } } ImagesIndex.java: public class ImagesIndex extends LoadableDetachableModelObject

getSession() in LDM

2011-07-08 Thread Miroslav F.
Hi, is it possible to getSession() in load() in LDM? Miro - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

RE: getSession() in LDM

2011-07-08 Thread Miroslav F.
Thanks, was confused that getSessions() didn't work. -Original Message- From: Alexander Morozov [mailto:alexander.v.moro...@gmail.com] Sent: Friday, 08. July 2011 19:01 To: users@wicket.apache.org Subject: Re: getSession() in LDM Yep, use Session.get() method. - --

url for images from database

2011-07-10 Thread Miroslav F.
Hi folks, please direct me to right docu with following problem: I have image as byte[] from database which I display on pages. Works fine, on image atribute src is somethink like this: img src=?wicket:interface=:0:repeater:1:obrazok::IResourceListener::/ For lightbox I need make this ugly src

RE: url for images from database

2011-07-12 Thread Miroslav F.
-igor On Sun, Jul 10, 2011 at 6:44 AM, Miroslav F. mir...@seznam.cz wrote: Hi folks, please direct me to right docu with following problem: I have image as byte[] from database which I display on pages. Works fine, on image atribute src is somethink like this: img src

RE: url for images from database

2011-07-14 Thread Miroslav F.
for images from database https://cwiki.apache.org/WICKET/uploaddownload.html -igor On Tue, Jul 12, 2011 at 2:54 AM, Miroslav F. mir...@seznam.cz wrote: Is there example? How to get shared resource key from byte[] (image from DB)? In my App class i do for several shared resources

RE: url for images from database

2011-07-25 Thread Miroslav F.
of that page -igor On Thu, Jul 14, 2011 at 6:50 AM, Miroslav F. mir...@seznam.cz wrote: Still be lost :-( This code I have in AppStart class: mountSharedResource(/images/image1.jpg, new ResourceReference(Images.class, image1.jpg).getSharedResourceKey()); Now after reading

RE: Problems with Wicket JARs: jcl-over-slf4j

2011-07-25 Thread Miroslav F.
put just slf4j-simple-1.6.1.jar and slf4j-api-1.6.1.jar in WEB-INF/lib -Original Message- From: eugenebalt [mailto:eugeneb...@yahoo.com] Sent: Tuesday, 26. July 2011 03:10 To: users@wicket.apache.org Subject: Re: Problems with Wicket JARs: jcl-over-slf4j I resolved all my

RE: How to Catch WebApplication's Destroy()?

2011-07-25 Thread Miroslav F.
Bad. Wicket application start when you deploy it into Tomcat (it's time when WebApplication.init() is executed) and stop when you undeploy it or when you stop Tomcat - it should be very long time ;-) My scenario is: In WebPage class i do LoadableDetachableModel.load() and here I load all data

RE: RE: How to Catch WebApplication's Destroy()?

2011-07-25 Thread Miroslav F.
to Catch WebApplication's Destroy()? are you prohibited from using a DI framework such as guice or spring? it can help you manage your object scope and lifecycle On 26 Jul 2011 07:41, Miroslav F. mir...@seznam.cz wrote: Bad. Wicket application start when you deploy it into Tomcat (it's

RE: How to Catch WebApplication's Destroy()?

2011-07-26 Thread Miroslav F.
As I understand it's called when app is undeployed or servlet container (Tomcat, Jetty,...) is going down. And it should be very long time after app is started. -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Tuesday, 26. July 2011 08:21 To:

RE: url for images from database

2011-07-26 Thread Miroslav F.
No one has experience with LightBox/Slimbox/Shadowbox/Other? How do you implement same src (in img) and href (in a) attributes to make it works? -Original Message- From: Miroslav F. [mailto:mir...@seznam.cz] Sent: Monday, 25. July 2011 21:55 To: users@wicket.apache.org Subject: RE

RE: Static Files (CSS, JPG) not Found by Wicket in HTML

2011-07-27 Thread Miroslav F.
Use structure: .src .java ..com ...myapp ...[HTML Java go here] ...img ...css ...somethink else you would like In img dir put Images.class, in css put Styles.class and so on, for example: package com.myapp.images; public

RE: I am having trouble mounting shared resources

2011-08-05 Thread Miroslav F.
Project dirs: . com.myapp . MyStartAppPoint.java . com.myapp.resources . MyResources.java . fancybox-123.js In MyStartAppPoint.init() do: mountSharedResource(/js/fancybox.js, new ResourceReference(MyResources.class, fancybox-123.js).getSharedResourceKey());

tomcat eats memory

2011-08-05 Thread Miroslav F.
Hi folks, I have these classes: package com.myapp; public class Minerals extends WebPage{ public Minerals(){ RepeatingView repeater = new RepeatingView(repeater); //data from database - images and descriptions ArrayList dataFromDB = (new

RE: tomcat eats memory

2011-08-05 Thread Miroslav F.
://wicketstuff.org/wicket/images/ On Fri, Aug 5, 2011 at 9:20 AM, Miroslav F. mir...@seznam.cz wrote: Hi folks, I have these classes: package com.myapp; public class Minerals extends WebPage{ public Minerals(){ RepeatingView repeater = new RepeatingView(repeater

RE: I am having trouble mounting shared resources

2011-08-05 Thread Miroslav F.
5, 2011 at 11:51 AM, Miroslav F. mir...@seznam.cz wrote: Project dirs: . com.myapp .      MyStartAppPoint.java . com.myapp.resources .      MyResources.java .      fancybox-123.js In MyStartAppPoint.init() do: mountSharedResource(/js/fancybox.js, new

RE: tomcat eats memory

2011-08-05 Thread Miroslav F.
images and there are on around 100 pages (every page has around 10 images). For me it looks crazy in Application.init() take all images from DB and mount them. -Original Message- From: Miroslav F. [mailto:mir...@seznam.cz] Sent: Friday, 05. August 2011 18:54 To: users@wicket.apache.org

RE: tomcat eats memory

2011-08-05 Thread Miroslav F.
It sounds like a shared resource is not the right solution for your problem. Just throw a wicket:id on your Lightbox image tag and create a Wicket Image like image5 of the wicketstuff examples link I sent. On Fri, Aug 5, 2011 at 10:46 AM, Miroslav F. mir...@seznam.cz wrote: Answer myself

filter feedback messages

2011-09-28 Thread Miroslav F.
hi folks, i have this problem: have panel: wicket:panel ba href=cart.htmlcart:/a/b span wicket:id=cartItems[0]/span items,nbsp;nbsp;nbsp;bspan wicket:id=cartPrice[0]/span $/b /span /div /wicket:panel then implementing class: package

RE: filter feedback messages

2011-09-28 Thread Miroslav F.
? On Wed, Sep 28, 2011 at 11:33 AM, Miroslav F. mir...@seznam.cz wrote: hi folks, i have this problem: have panel: wicket:panel        ba href=cart.htmlcart:/a/b                span wicket:id=cartItems[0]/span items,nbsp;nbsp;nbsp;bspan wicket:id=cartPrice[0]/span $/b

RE: filter feedback messages

2011-09-28 Thread Miroslav F.
: manuelbarzi [mailto:manuelba...@gmail.com] Sent: 28. September 2011 12:02 To: users@wicket.apache.org Subject: Re: filter feedback messages have you tried ContainerFeedbackMessageFilter instead? 2011/9/28 Miroslav F. mir...@seznam.cz:   Page1     \     +--- PanelCart

RE: filter feedback messages

2011-09-28 Thread Miroslav F.
[mailto:manuelba...@gmail.com] Sent: 28. September 2011 12:22 To: users@wicket.apache.org Subject: Re: filter feedback messages what's the feedback message filter you've added to the form? 2011/9/28 Miroslav F. mir...@seznam.cz: yes. it doesn't matter if i do: this.add(new FeedbackPanel

RE: filter feedback messages

2011-09-28 Thread Miroslav F.
@wicket.apache.org Subject: Re: filter feedback messages form may need a filter too. 2011/9/28 Miroslav F. mir...@seznam.cz: i think that form doesn't need filter - or to be precise i don't want to filter messages in form. i only need to filter messages in panelcart (which extends

RE: filter feedback messages

2011-09-28 Thread Miroslav F.
feedback messages how is your composite? page |-Form (with own FeedbackPanel) ||-Panel (with own FeedbackPanel) | |-Other stuff ? On Wed, Sep 28, 2011 at 11:33 AM, Miroslav F. mir...@seznam.cz wrote: hi folks, i have this problem: have

FW: filter feedback messages

2011-09-28 Thread Miroslav F.
same with 1.4.18 -Original Message- From: Miroslav F. [mailto:mir...@seznam.cz] Sent: 28. September 2011 13:26 To: users@wicket.apache.org Subject: RE: filter feedback messages 1.4.13 -Original Message- From: Andrea Del Bene [mailto:adelb...@ciseonweb.it] Sent

RE: filter feedback messages

2011-09-28 Thread Miroslav F.
and one on panelcart. message is on panelcart and it seems that add(new FeedbackPanel(feedback, new ComponentFeedbackMessageFilter(this))); is on panelcart. not know what doing wrong. -Original Message- From: Miroslav F. [mailto:mir...@seznam.cz] Sent: 28. September 2011 14:46

replace asterix (FormComponentFeedbackBorder)

2011-10-01 Thread Miroslav F.
Hello, how to replace red asterix in FormComponentFeedbackBorder my own markup? Is there example? Any hints would be appreciated. Thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

RE: replace asterix (FormComponentFeedbackBorder)

2011-10-01 Thread Miroslav F.
Finaly I do subclassing with custom markup and it works :-) -Original Message- From: Miroslav F. [mailto:mir...@seznam.cz] Sent: 01. October 2011 12:06 To: users@wicket.apache.org Subject: replace asterix (FormComponentFeedbackBorder) Hello, how to replace red asterix

missing page

2011-10-11 Thread Miroslav F.
Hi guys, I need a help - have my custom class PageNotFound based on this help: https://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html In my PageNotFound class I have: this.add(new Label(missingPage, _put_pagename_which_was_not_found)); but I have no idea how to find-out pagename.

RE: missing page

2011-10-12 Thread Miroslav F.
mafulaf...@googlemail.com wrote: is RequestCycle.get().getRequest().getUrl() what you are looking for? mf 2011/10/11 Miroslav F. mir...@seznam.cz Hi guys, I need a help - have my custom class PageNotFound based on this help: https://cwiki.apache.org/WICKET/error