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

2011-07-26 Thread Martin Grigorov
org.apache.wicket.Application.onDestroy()

On Tue, Jul 26, 2011 at 4:34 AM, eugenebalt eugeneb...@yahoo.com wrote:
 To clarify, this is not per-request, it should be per-application.

 I have a static Connection object in my WebApplication, and it's used for
 all transactions in the app. I construct it initially in the init(), and was
 just wondering where to close the Connection at the end of the app.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-Catch-WebApplication-s-Destroy-tp3694556p3694614.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Replacing Spring MVC with Wicket in Existing Spring/Hibernate project

2011-07-26 Thread Zilvinas Vilutis
No,

It's an off-topic for wicket, but maven just helps standardize things
for development and make it easier to manage dependencies  stuff. It
enables you to forget all the little details required to run a project
based on open source libraries  frameworks - just add a dependency
definition and let maven do the job.

Once you build the project - maven gives you an output ( jar, war or
ear - whatever appropriate ) package which you can transfer anywhere
you need.

Thanks to maven we now have so many open source projects 
contributions, because it made things much easier.

Regards

Žilvinas Vilutis

E-mail:   cika...@gmail.com



On Tue, Jul 26, 2011 at 12:16 AM, eugenebalt eugeneb...@yahoo.com wrote:
 I have a question, what if I'm not using Maven?

 I have a hard time believing I need Maven to run Wicket. I just looked at
 the installation instructions for Maven, they're pretty complicated and
 involve setting some environment vars, are you kidding me??

 I need a simple project that I can send to my teacher and he will be able to
 build/run the Web app on his laptop without any problems. Does he also have
 to set up Maven on his end??

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Replacing-Spring-MVC-with-Wicket-in-Existing-Spring-Hibernate-project-tp3693395p3694118.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

2011-07-26 Thread Martin Grigorov
It's 21st century, use Maven!
It will download ONLY the needed jars.

On Tue, Jul 26, 2011 at 4:10 AM, eugenebalt eugeneb...@yahoo.com wrote:
 I resolved all my issues, but I had to add a ton of JAR's that were never
 mentioned anywhere. Thanks anyway.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Problems-with-Wicket-JARs-jcl-over-slf4j-tp3694328p3694554.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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).
2. You can manage the lifetime of your pool using a web application factory, 
too. Use org.apache.wicket.protocol.http.IDestroyableWebApplicationFactory 
instead of org.apache.wicket.protocol.http.IWebApplicationFactory to handle 
destruction of the resource in method 
IDestroyableWebApplicationFactory#destroy().

Am 26.07.2011 um 08:21 schrieb Martin Grigorov:

 org.apache.wicket.Application.onDestroy()
 
 On Tue, Jul 26, 2011 at 4:34 AM, eugenebalt eugeneb...@yahoo.com wrote:
 To clarify, this is not per-request, it should be per-application.
 
 I have a static Connection object in my WebApplication, and it's used for
 all transactions in the app. I construct it initially in the init(), and was
 just wondering where to close the Connection at the end of the app.
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-Catch-WebApplication-s-Destroy-tp3694556p3694614.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 -- 
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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@wicket.apache.org
 Subject: Re: How to Catch WebApplication's Destroy()?
 
 org.apache.wicket.Application.onDestroy()
 
 On Tue, Jul 26, 2011 at 4:34 AM, eugenebalt 
 eugeneb...@yahoo.com wrote:
  To clarify, this is not per-request, it should be per-application.
 
  I have a static Connection object in my WebApplication, and 
 it's used 
  for all transactions in the app. I construct it initially in the 
  init(), and was just wondering where to close the 
 Connection at the end of the app.
 
  --
  View this message in context: 
  
 http://apache-wicket.1842946.n4.nabble.com/How-to-Catch-WebApplication
  -s-Destroy-tp3694556p3694614.html Sent from the Users forum mailing 
  list archive at Nabble.com.
 
  
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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. mir...@seznam.cz wrote:
 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@wicket.apache.org
 Subject: Re: How to Catch WebApplication's Destroy()?

 org.apache.wicket.Application.onDestroy()

 On Tue, Jul 26, 2011 at 4:34 AM, eugenebalt
 eugeneb...@yahoo.com wrote:
  To clarify, this is not per-request, it should be per-application.
 
  I have a static Connection object in my WebApplication, and
 it's used
  for all transactions in the app. I construct it initially in the
  init(), and was just wondering where to close the
 Connection at the end of the app.
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/How-to-Catch-WebApplication
  -s-Destroy-tp3694556p3694614.html Sent from the Users forum mailing
  list archive at Nabble.com.
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 found this problem when pushing the application to the pre-production 
cluster with the application built for deployment mode.


It break the execution of the main JQuery script.

I located the problem using this online tool for showing side-by-side 
colored character differences

http://www.raymondhill.net/finediff/viewdiff-ex.php

- because of course the minifed versions of these libraries are all 
squashed onto just a few long lines, so the normal diff tools are not 
much use.



Here's a screen-shot of the diff showing where wicket has stripped the 
code.

(I couldn't post it to the list)
http://dug.im/d6f16


NOTE: The diff-tool has cosmetically wrapped the lines of the source, so 
it all appears on one line.



I'm not sure what can be done about this.  As the majority of our 
libraries have MINIFIED versions anyway, we'll just turn off
the javascript compress funcitons and make sure the minified versions 
are loaded in deployment configuration.


I still have all the pieces of diagnostic work lying around so if 
anybody feels it's worth raising an issue report - I can do it, let me know.


All the best,

Rob



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: url for images from database
 
 Thanks, was looking on classes :-)
 
 Now I have code:
 
 HTML:
 div style=  border: 1px solid #DCD4A7;
   float: left; position: relative;
   width: 207px; height: 340px;
   margin-top: 5px; margin-right: 20px; 
 margin-bottom:
 10px;
   a  href=# wicket:id=anchor
   rel=zbox
   title=
   imgstyle=border: 3px solid 
 #DCD4A7; padding:
 1px 1px 1px 1px; width: 199px; height: 149px; alt= src=
   wicket:id=image
   /a
 
 Wicket:
 DBImage image = new DBImage();
 image.setImageData((byte[]) dataFromDB.get(dataOffset));
 
 //not to cache images in browser
 Double random = Math.random();
 
 //put image into shared resources
 Start.get().getSharedResources().add(image+((String)
 dataFromDB.get(textOffset)) + random.toString() + .jpg, 
 image); ResourceReference imageResource = new 
 ResourceReference(image+((String)
 dataFromDB.get(textOffset))+ random.toString()+.jpg); 
 String url=RequestCycle.get().urlFor(imageResource).toString();
 
 //make href in a and src in img point to the same 
 location for zbox to make work ExternalLink odkaz = new 
 ExternalLink(anchor, url); WebMarkupContainer 
 imageSrcAttribute = new WebMarkupContainer(image); 
 imageSrcAttribute.add(new AttributeModifier(src, new 
 ModelString(url))); odkaz.add(imageSrcAttribute); 
 odkaz.add(new SimpleAttributeModifier(title, (String) 
 nazvy.get(i)));
 
 this.add(odkaz); 
 
 
 This works, not know if code is good from point of right way 
 to do this in wicket..
 
 Miro
 
 
 
  -Original Message-
  From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
  Sent: Thursday, 14. July 2011 18:11
  To: users@wicket.apache.org
  Subject: Re: url for images from database
  
  look at the very bottom 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 recomended example still not idea how to
  replace new
   ResourceReference(... in above code snippet in a way in 
 which I get 
   from byte[] shared resource key.
  
   Please be kindfull, I'm in low level in java and greenhorn
  in wicket
   :-D
  
   Miro
  
  
  
   -Original Message-
   From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
   Sent: Tuesday, 12. July 2011 17:09
   To: users@wicket.apache.org
   Subject: Re: url 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:
mountSharedResource(/styles/style.css, new 
ResourceReference(Styles.class,
   style.css).getSharedResourceKey());
   
Is is possible in this code getsharedResource() for byte[]
   (image from
DB) in some way?
   
   
-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
Sent: Sunday, 10. July 2011 18:16
To: users@wicket.apache.org
Subject: Re: url for images from database
   
use a shared resource to output the images instead of 
 an Image 
component
   
-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=?wicket:interface=:0:repeater:1:obrazok::IResourceListener::/
 

 For lightbox I need make this ugly src atribute
  transform to
 something like src=/images/xxx.jpg and mount it
on-the-fly but don't
 know how to do it.

 Is somewhere related example please?

 Thanks in advance,

 Miro



   
   
  
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: 
 users-h...@wicket.apache.org


   
   
   
  
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
   
   
   
  
 -

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)
r...@datacymru.net wrote:
 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 found this problem when pushing the application to the pre-production
 cluster with the application built for deployment mode.

 It break the execution of the main JQuery script.

 I located the problem using this online tool for showing side-by-side
 colored character differences
 http://www.raymondhill.net/finediff/viewdiff-ex.php

 - because of course the minifed versions of these libraries are all squashed
 onto just a few long lines, so the normal diff tools are not much use.


 Here's a screen-shot of the diff showing where wicket has stripped the code.
 (I couldn't post it to the list)
 http://dug.im/d6f16


 NOTE: The diff-tool has cosmetically wrapped the lines of the source, so it
 all appears on one line.


 I'm not sure what can be done about this.  As the majority of our libraries
 have MINIFIED versions anyway, we'll just turn off
 the javascript compress funcitons and make sure the minified versions are
 loaded in deployment configuration.

 I still have all the pieces of diagnostic work lying around so if anybody
 feels it's worth raising an issue report - I can do it, let me know.

 All the best,

 Rob



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 should look like to support this dynamic image display?

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/url-for-images-from-database-tp3657615p3695546.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 line li.add is flagged as an error,
Cannot find symbol add(Label,Model)

I tried the direct string, as in a, and also new Model(a), and none of
these work. Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-in-ListView-populateItem-tp3695627p3695627.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 eugeneb...@yahoo.com wrote:
 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 line li.add is flagged as an error,
 Cannot find symbol add(Label,Model)

 I tried the direct string, as in a, and also new Model(a), and none of
 these work. Thanks.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Problem-in-ListView-populateItem-tp3695627p3695627.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 raju.challagun...@gmail.comwrote:

 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 now, my req is
 onclicking the hor menu item, i want to show the active link with some
 background.. I tried with a:active but it is not working as it is a common
 template to all the pages..Can any one help in doing this?..here is my Hor
 menu

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/changing-the-background-color-of-link-on-performing-onclick-event-tp3686180p3686180.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




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 Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 eugeneb...@yahoo.com 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-ListView-populateItem-tp3695627p3695782.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problem in ListView populateItem()

2011-07-26 Thread Carl-Eric Menzel
On Tue, 26 Jul 2011 06:10:29 -0700 (PDT)
eugenebalt eugeneb...@yahoo.com 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 a model.

Carl-Eric
www.wicketbuch.de

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

It does work for the pages in root hierarchy, so I am thinking it's some
settings issue. However not able to figure out which settingsI need to
change.

Which settings do I need to change so that wicket reloads my changes in
the markup? I tried setting the setResourcePollFrequency, but that did
not help. 

Thanks in advance for the help.

Regards,

Niranjan


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 the application in eclipse. I am using Start class that is
 generated when wicket code hierarchy is created using maven.
 
 It does work for the pages in root hierarchy, so I am thinking it's some
 settings issue. However not able to figure out which settingsI need to
 change.
 
 Which settings do I need to change so that wicket reloads my changes in
 the markup? I tried setting the setResourcePollFrequency, but that did
 not help. 
 
 Thanks in advance for the help.
 
 Regards,
 
 Niranjan
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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 the application in eclipse. I am using Start class that is
  generated when wicket code hierarchy is created using maven.
  
  It does work for the pages in root hierarchy, so I am thinking it's some
  settings issue. However not able to figure out which settingsI need to
  change.
  
  Which settings do I need to change so that wicket reloads my changes in
  the markup? I tried setting the setResourcePollFrequency, but that did
  not help. 
  
  Thanks in advance for the help.
  
  Regards,
  
  Niranjan
  
  
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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/main.css and that
doesn't work either.

Thanks


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Static-Files-CSS-JPG-not-Found-by-Wicket-in-HTML-tp3697146p3697146.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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, I see that the references got rendered with
a .. before them:

img src=../img/banner.JPG
href=../css/main.css

Is there any way to prevent that initial .. rendering?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Static-Files-CSS-JPG-not-Found-by-Wicket-in-HTML-tp3697146p3697254.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org