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

2011-07-26 Thread eugenebalt
>From googling this issue, it looks like in a Wicket project, "webapp" is under "src"... In my project, src and web are on the same level. Is this problem? This project was created by NetBeans and I'd prefer not to modify it, with all the web.xml dependencies etc. Looking at the rendered result,

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

2011-07-26 Thread eugenebalt
My project structure looks like this: .src .java ..com ...myapp ...[HTML & Java go here] .web .img .css .WEB-INF In my HTML, when I reference "img/image.jpg" or "css/main.css", these files are not found. I also tried "/img/image.jpg" and "/css

Re: Refreshing the page while running in eclipse

2011-07-26 Thread Niranjan Rao
Eclipse is already set up on that settings. And it does work from root hierarchy - e.g. it works from com.foo package, but not from com.foo.bar package. Thanks, Niranjan On Tue, 2011-07-26 at 14:12 -0700, Don Ferguson wrote: > Project/Build Automatically works for me. > > -Don > > On Jul

Re: Refreshing the page while running in eclipse

2011-07-26 Thread Don Ferguson
Project/Build Automatically works for me. -Don On Jul 26, 2011, at 2:08 PM, Niranjan Rao wrote: > Hi, > > Using Wicket 1.5-RC4.2. > > I have HTML/Java sitting in one of the child packages. When visiting the > page in the browser, the markup changes are not reflected unless I > restart

Refreshing the page while running in eclipse

2011-07-26 Thread Niranjan Rao
Hi, Using Wicket 1.5-RC4.2. I have HTML/Java sitting in one of the child packages. When visiting the page in the browser, the markup changes are not reflected unless I restart the application in eclipse. I am using Start class that is generated when wicket code hierarchy is created using maven.

Re: Problem in ListView populateItem()

2011-07-26 Thread eugenebalt
Ok. thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-in-ListView-populateItem-tp3695627p3696053.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mai

Re: Problem in ListView populateItem()

2011-07-26 Thread Carl-Eric Menzel
On Tue, 26 Jul 2011 06:10:29 -0700 (PDT) eugenebalt wrote: > li.add(new Label("bookId"), new Model("a")); You're adding: new Label("bookId"), new Model("a") That is a new Label and a new Model. You want: new Label("bookId", new Model("a")) which is a new Label with an id and

RE: Problem in ListView populateItem()

2011-07-26 Thread Wilhelmsen Tor Iver
> I have one comma. I followed the same example in the book, which is > add(Label,IModel). But something's wrong. Strange example if so: Try instead add(new Label(id, model)); The Model is for the Label. - Tor Iver - To unsubs

Re: Problem in ListView populateItem()

2011-07-26 Thread Martin Grigorov
I'm sure you can figure this alone. On Tue, Jul 26, 2011 at 4:42 PM, eugenebalt wrote: > I have one comma. I followed the same example in the book, which is > add(Label,IModel). But something's wrong. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Problem-in-

Re: Problem in ListView populateItem()

2011-07-26 Thread eugenebalt
I have one comma. I followed the same example in the book, which is add(Label,IModel). But something's wrong. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-in-ListView-populateItem-tp3695627p3695782.html Sent from the Users forum mailing list archive at Nabbl

Re: changing the background color of link on performing onclick event

2011-07-26 Thread Bruno Borges
You can use CssAttributeModifier to specify a different class. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Fri, Jul 22, 2011 at 4:56 AM, raju.ch wrote: > Hi, I'm using wicket 1.4 and my site contains one Template which > header,footer,hor.menu and it is common to all the pages no

Re: Problem in ListView populateItem()

2011-07-26 Thread Martin Grigorov
Read how many commas you have on this line. On Tue, Jul 26, 2011 at 4:10 PM, eugenebalt wrote: > I am overriding ListView and have the following issue: > >        add(new ListView("books", (IModel) books) { > >            @Override >            protected void populateItem(ListItem li) { > >      

Problem in ListView populateItem()

2011-07-26 Thread eugenebalt
I am overriding ListView and have the following issue: add(new ListView("books", (IModel) books) { @Override protected void populateItem(ListItem li) { li.add(new Label("bookId"), new Model("a")); } }); The li

RE: url for images from database

2011-07-26 Thread eugenebalt
I have the exact same problem. I have Images coming from the DB, along with other stuff, and I need to display them, per row, as , similar to how Amazon.com lists their books next to book title, etc. Is there an easy way to do it? Very common problem. Can someone show what the HTML and Java shou

Re: Javascript Compressor - JQuery 1.6.2 Minified

2011-07-26 Thread Martin Grigorov
I believe this is already fixed. And yes - I see no reason to run compressor over minified script. On Tue, Jul 26, 2011 at 1:25 PM, Rob Shepherd (DataCymru) wrote: > Hi Wicket Users, > > For those of you who use JQuery, the default DEPLOYMENT mode Javascript > compressor detects a comment within

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 ) and href (in ) 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:

Javascript Compressor - JQuery 1.6.2 Minified

2011-07-26 Thread Rob Shepherd (DataCymru)
Hi Wicket Users, For those of you who use JQuery, the default DEPLOYMENT mode Javascript compressor detects a comment within the MINIFIED version of JQuery 1.6.2 AFFECTED: http://code.jquery.com/jquery-1.6.2.min.js (231kB) UNAFFECTED: http://code.jquery.com/jquery-1.6.2.js(90kB) We f

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

2011-07-26 Thread Martin Grigorov
Actually by Servlet specification a Servlet/Filter can be destroyed at any time without destroying the ServletContext and later re-inited again. That means Application#init()/destroy() can be called without re-start/re-deploy of the application. On Tue, Jul 26, 2011 at 11:13 AM, Miroslav F. wrote

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: users@wic

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

2011-07-26 Thread Peter Ertl
1. I would recommend to use a connection pool, e.g. 'bonecp', 'c3p0' or 'dbcp' instead of a single connection. Using a single connection that stays connected to the db is a bad thing. You usually have to restart your web application when the database gets restarted (or goes offline for some time