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

2011-07-27 Thread Martin Grigorov
Trust me! ;-) See the javadoc of org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler On Wed, Jul 27, 2011 at 4:52 PM, Peter Ertl wrote: >> Actually you just have to use "css/styles.css" and Wicket will >> "relativize" it for you. >> There is a special IMarkupFilter for that. > > but

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

2011-07-27 Thread eugenebalt
-wicket.1842946.n4.nabble.com/Static-Files-CSS-JPG-not-Found-by-Wicket-in-HTML-tp3697146p3698590.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

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

2011-07-27 Thread Peter Ertl
> Actually you just have to use "css/styles.css" and Wicket will > "relativize" it for you. > There is a special IMarkupFilter for that. but only if wrap it inside this will not work for resources in src/main/webapp but only for package resources without the markup will just be rendered as-i

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

2011-07-27 Thread Martin Grigorov
On Wed, Jul 27, 2011 at 3:54 PM, Peter Ertl wrote: > if your login page is mounted to path '/login/authenticate' and the > application is deployed to web application context '/myapp' your page will be > available at > > /myapp/login/authenticate > > and the css in src/main/webapp/styles.css must

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

2011-07-27 Thread Peter Ertl
e, which I described in > the first post? What is the Java code for that? > > I need to be able to reference img src="[img]" for example. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Static-Files-CSS-JPG-not-Found-

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

2011-07-27 Thread eugenebalt
erence img src="[img]" for example. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Static-Files-CSS-JPG-not-Found-by-Wicket-in-HTML-tp3697146p3698424.html Sent from the Users forum mailing list archive at Nabble.com. --

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

2011-07-27 Thread Peter Ertl
e(Images.class, >> "myimage.jpg").getSharedResourceKey()); >> >> and in html file do: >> >> >> No need to do something else in html. >> >> Hope this helps. >> >> Miro >> >> >> >> >>> -O

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

2011-07-27 Thread Peter Ertl
if your login page is mounted to path '/login/authenticate' and the application is deployed to web application context '/myapp' your page will be available at /myapp/login/authenticate and the css in src/main/webapp/styles.css must be referenced from your page via 1) ../../css/styles.css or

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

2011-07-27 Thread Dmitriy Ivanov
gt; -Original Message- > > From: eugenebalt [mailto:eugeneb...@yahoo.com] > > Sent: Wednesday, 27. July 2011 00:04 > > To: users@wicket.apache.org > > Subject: Static Files (CSS, JPG) not Found by Wicket in HTML > > > > My project structure looks like this

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

2011-07-27 Thread Peter Karich
Am 27.07.2011 14:21, schrieb Peter Ertl: > You can put your resources in src/main/webapp but I would not recommend to do > so (they will work by using an absolute path with the correct web app > context) but it's quite ugly *imho* no, you can just reference them via css/style.css eg. if you hav

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

2011-07-27 Thread Peter Ertl
need to do something else in html. > > Hope this helps. > > Miro > > > > >> -----Original Message----- >> From: eugenebalt [mailto:eugeneb...@yahoo.com] >> Sent: Wednesday, 27. July 2011 00:04 >> To: users@wicket.apache.org >> Subject: Static Files (CSS,

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

2011-07-27 Thread Miroslav F.
riginal Message- > From: eugenebalt [mailto:eugeneb...@yahoo.com] > Sent: Wednesday, 27. July 2011 00:04 > To: users@wicket.apache.org > Subject: Static Files (CSS, JPG) not Found by Wicket in HTML > > My project structure looks like this: > > .src > .java > ..

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

2011-07-26 Thread eugenebalt
oking 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-wick

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

2011-07-26 Thread eugenebalt
ied "/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 t