Re: Url resolve...

2008-05-13 Thread James Carman
Have you tried surrounding that stylesheet link with a wicket:link?

On Tue, May 13, 2008 at 4:25 AM, danielepiras [EMAIL PROTECTED] wrote:

  Hi,

  I'm developing an application that run on www.myserver.com/myapplication/
  In my Index.html page, I include a css:
  link rel=stylesheet type=text/css href=css/style.css/

  The problem is that wicket transform href url and if I give a look to the
  page source I find:
  link rel=stylesheet type=text/css href=../css/style.css/

  So the css is not found because is refer to www.myserver.com/css/style.css
  and not www.myserver.com/myapplication/css/style.css

  What I have to do?
  Thank you very much
  Daniele
  --
  View this message in context: 
 http://www.nabble.com/Url-resolve...-tp17203548p17203548.html
  Sent from the Wicket - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Url resolve...

2008-05-13 Thread Doug Donohoe

That actually looks to be correct behavoir.If your URL is
www.myserver.com/myapplication/ , then going to .. takes you to
www.mysesrver.com/myapplication  (no trailing slash).  Then going to
/css/styles.css takes you to www.myserver.com/myapplication/css/styles.css

Where is your CSS file stored?  It should be in webapp/css.

If you go to http://www.myserver.com/myapplication/css/style.css in your
browser, is the file found?

-Doug


danielepiras wrote:
 
 Hi,
 
 I'm developing an application that run on www.myserver.com/myapplication/
 In my Index.html page, I include a css:
 link rel=stylesheet type=text/css href=css/style.css/
 
 The problem is that wicket transform href url and if I give a look to the
 page source I find:
 link rel=stylesheet type=text/css href=../css/style.css/
 
 So the css is not found because is refer to www.myserver.com/css/style.css
 and not www.myserver.com/myapplication/css/style.css
 
 What I have to do?
 Thank you very much
 Daniele
 

-- 
View this message in context: 
http://www.nabble.com/Url-resolve...-tp17203548p17206860.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Url resolve...

2008-05-13 Thread danielepiras

I've the same behavour describe 
http://www.nabble.com/is-it-a-bug--(using-beta-4)-td13284326.html#a13321146
here .

I've solved my problem using:
mountBookmarkablePage(/home, getHomePage());   


-- 
View this message in context: 
http://www.nabble.com/Url-resolve...-tp17203548p17207838.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]