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
-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
> 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
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
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-
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.
--
e(Images.class,
>> "myimage.jpg").getSharedResourceKey());
>>
>> and in html file do:
>>
>>
>> No need to do something else in html.
>>
>> Hope this helps.
>>
>> Miro
>>
>>
>>
>>
>>> -O
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
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
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
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,
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
> ..
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
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
14 matches
Mail list logo