true Is there a reason why Wicket does not process imports?
igor.vaynberg wrote: > > so it was never the link element that was the problem, it was the @imports > because wicket doesnt process those. > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> <link rel="stylesheet" type="text/css" href="/dmWicket/css/app.css" >> media="screen"/> >> <link rel="stylesheet" type="text/css" href="/dmWicket/css/box.css" >> media="screen"/> >> >> The answer is yes. >> >> >> igor.vaynberg wrote: >> > >> > what does your output markup look like though? did wicket rewrite >> > css/app.css to /contextpath/css/app.css for you? >> > >> > -igor >> > >> > >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Well, I changed imports to links and the same definition in both pages >> >> works >> >> well without using ../: >> >> >> >> <link rel="stylesheet" type="text/css" media="screen" >> href="css/app.css" >> >> /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/box.css" /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/cite.css" >> >> /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/code.css" >> >> /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/def.css" /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/form.css" >> >> /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/layout.css" >> >> /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/layout2c.css" /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/layout3c.css" /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/link.css" >> >> /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/list.css" >> >> /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/marker.css" >> >> /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/menu.css" >> >> /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/msg.css" /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/page.css" >> >> /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/section.css" /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/slide.css" >> >> /> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/table.css" >> >> /> >> >> >> >> >> >> igor.vaynberg wrote: >> >> > >> >> > link and import have not changed behavior >> >> > >> >> > what has changed is that wicket now always appends a / after the >> >> servlet >> >> > mapping, where as before it only did so sometimes. so now it is more >> >> > consistent but is messing with your context path. >> >> > >> >> > -igor >> >> > >> >> > >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> I have found out what the problem is: >> >> >> >> >> >> In HomePage.html I use: >> >> >> >> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/app.css" >> >> >> /> >> >> >> <style type="text/css" media="screen"> >> >> >> @import "css/box.css"; >> >> >> @import "css/cite.css"; >> >> >> @import "css/code.css"; >> >> >> @import "css/def.css"; >> >> >> @import "css/form.css"; >> >> >> @import "css/layout.css"; >> >> >> @import "css/layout2c.css"; >> >> >> @import "css/layout3c.css"; >> >> >> @import "css/link.css"; >> >> >> @import "css/list.css"; >> >> >> @import "css/marker.css"; >> >> >> @import "css/menu.css"; >> >> >> @import "css/msg.css"; >> >> >> @import "css/page.css"; >> >> >> @import "css/section.css"; >> >> >> @import "css/slide.css"; >> >> >> @import "css/table.css"; >> >> >> </style> >> >> >> >> >> >> and it works. >> >> >> >> >> >> In the AboutPage.html I use: >> >> >> >> >> >> <link rel="stylesheet" type="text/css" media="screen" >> >> href="css/app.css" >> >> >> /> >> >> >> <style type="text/css" media="screen"> >> >> >> @import "../css/box.css"; >> >> >> @import "../css/cite.css"; >> >> >> @import "../css/code.css"; >> >> >> @import "../css/def.css"; >> >> >> @import "../css/form.css"; >> >> >> @import "../css/layout.css"; >> >> >> @import "../css/layout2c.css"; >> >> >> @import "../css/layout3c.css"; >> >> >> @import "../css/link.css"; >> >> >> @import "../css/list.css"; >> >> >> @import "../css/marker.css"; >> >> >> @import "../css/menu.css"; >> >> >> @import "../css/msg.css"; >> >> >> @import "../css/page.css"; >> >> >> @import "../css/section.css"; >> >> >> @import "../css/slide.css"; >> >> >> @import "../css/table.css"; >> >> >> </style> >> >> >> >> >> >> and it works. >> >> >> >> >> >> It seems that link element works as in 1.2.5, but the import >> element >> >> has >> >> >> a >> >> >> changed behavior in 1.2.6. In 1.2.5 I did not need ../ in import >> >> >> elements. >> >> >> >> >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> >> > >> >> >> > try changing this: >> >> >> > >> >> >> > <link rel="stylesheet" type="text/css" media="screen" >> >> >> href="css/box.css" >> >> >> > /> >> >> >> > >> >> >> > to >> >> >> > >> >> >> > <link rel="stylesheet" type="text/css" media="screen" >> >> >> > href="../css/box.css" >> >> >> > /> >> >> >> > >> >> >> > notice the ../ in href. that should fix that. >> >> >> > >> >> >> > also note that this isnt the greatest way to include css because >> it >> >> >> will >> >> >> > break if you use a mounted page. >> >> >> > >> >> >> > -igor >> >> >> > >> >> >> > >> >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> Sorry, >> >> >> >> >> >> >> >> It is the 1.2.6 url and the url is: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> http://localhost:8081/dmWicket/app/?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> >> >> >> >> >> >> When the page is displayed there is no CSS formatting for the >> page. >> >> In >> >> >> >> the >> >> >> >> log there is a warning message: >> >> >> >> >> >> >> >> the resource requested by request [method = GET, protocol = >> >> HTTP/1.1, >> >> >> >> requestURL = http://localhost:8081/dmWicket/app/css/box.css, >> >> >> contentType >> >> >> >> = >> >> >> >> null, contentLength = -1, contextPath = /dmWicket, pathInfo = >> >> >> >> /css/box.css, >> >> >> >> requestURI = /dmWicket/app/css/box.css, servletPath = /app, >> >> >> >> pathTranslated >> >> >> >> = >> >> >> >> D:\software\tomcat6\webapps\dmQuiz-2.0\css\box.css] was not >> found >> >> >> >> >> >> >> >> The translated path is the correct one for the CSS file. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> >> >> > >> >> >> >> > is that the 1.2.6 or the 1.2.5 url? >> >> >> >> > >> >> >> >> > -igor >> >> >> >> > >> >> >> >> > >> >> >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Yes, it seems that this is the problem: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> http://localhost:8081/dmWicket/app?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> >> >> >> >> >> >> >> >> But I do not know how to correct it since my servlet mapping >> is: >> >> >> >> >> >> >> >> >> >> <url-pattern>/app/*</url-pattern> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> >> >> >> > >> >> >> >> >> > maybe it is because wicket now always adds a / to the end >> of >> >> the >> >> >> >> >> servlet >> >> >> >> >> > mapping. this was inconsistent in the past, sometimes urls >> >> were >> >> >> >> >> > /context/mapping?wicket:id... and sometimes they were >> >> >> >> >> > /context/mapping/?wicket:id=... >> >> >> >> >> > >> >> >> >> >> > the problem was that /context/mapping?wicket:id urls did >> not >> >> >> always >> >> >> >> get >> >> >> >> >> > mapped to the servlet properly, but the /context/mapping/? >> >> did, >> >> >> so >> >> >> >> that >> >> >> >> >> is >> >> >> >> >> > the option we went with. >> >> >> >> >> > >> >> >> >> >> > is that the problem? the browser thinks you are in >> >> >> /context/mapping >> >> >> >> >> while >> >> >> >> >> > your link assumes you are in /context ? >> >> >> >> >> > >> >> >> >> >> > what is your servlet mapping? >> >> >> >> >> > >> >> >> >> >> > -igor >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> >> wrote: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Not a single line of code has been changed between the two >> >> >> >> versions. >> >> >> >> >> The >> >> >> >> >> >> version with Wicket 1.2.5 jars displays property web pages >> >> using >> >> >> >> css >> >> >> >> >> >> files >> >> >> >> >> >> in the css subdirectory of the web application root >> >> directory, >> >> >> and >> >> >> >> the >> >> >> >> >> >> version with Wicket 1.2.6 jars cannot find the css files >> that >> >> >> are >> >> >> >> in >> >> >> >> >> the >> >> >> >> >> >> same directory as in the previous version. >> >> >> >> >> >> -- >> >> >> >> >> >> View this message in context: >> >> >> >> >> >> >> >> >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10202910 >> >> >> >> >> >> Sent from the Wicket - User mailing list archive at >> >> Nabble.com >> >> . >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> >> >> >> >> This SF.net email is sponsored by DB2 Express >> >> >> >> >> >> Download DB2 Express C - the FREE version of DB2 express >> and >> >> >> take >> >> >> >> >> >> control of your XML. No limits. Just data. Click to get it >> >> now. >> >> >> >> >> >> http://sourceforge.net/powerbar/db2/ >> >> >> >> >> >> _______________________________________________ >> >> >> >> >> >> Wicket-user mailing list >> >> >> >> >> >> Wicket-user@lists.sourceforge.net >> >> >> >> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> >> >> >> >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> >> >> >> > This SF.net email is sponsored by DB2 Express >> >> >> >> >> > Download DB2 Express C - the FREE version of DB2 express >> and >> >> take >> >> >> >> >> > control of your XML. No limits. Just data. Click to get it >> >> now. >> >> >> >> >> > http://sourceforge.net/powerbar/db2/ >> >> >> >> >> > _______________________________________________ >> >> >> >> >> > Wicket-user mailing list >> >> >> >> >> > Wicket-user@lists.sourceforge.net >> >> >> >> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> >> >> >> >> >> -- >> >> >> >> >> View this message in context: >> >> >> >> >> >> >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10204234 >> >> >> >> >> Sent from the Wicket - User mailing list archive at >> Nabble.com >> . >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> >> >> >> This SF.net email is sponsored by DB2 Express >> >> >> >> >> Download DB2 Express C - the FREE version of DB2 express and >> >> take >> >> >> >> >> control of your XML. No limits. Just data. Click to get it >> now. >> >> >> >> >> http://sourceforge.net/powerbar/db2/ >> >> >> >> >> _______________________________________________ >> >> >> >> >> Wicket-user mailing list >> >> >> >> >> Wicket-user@lists.sourceforge.net >> >> >> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> >> >> >> >> >> >> > >> >> >> >> > >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> >> >> > This SF.net email is sponsored by DB2 Express >> >> >> >> > Download DB2 Express C - the FREE version of DB2 express and >> take >> >> >> >> > control of your XML. No limits. Just data. Click to get it >> now. >> >> >> >> > http://sourceforge.net/powerbar/db2/ >> >> >> >> > _______________________________________________ >> >> >> >> > Wicket-user mailing list >> >> >> >> > Wicket-user@lists.sourceforge.net >> >> >> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> >> > >> >> >> >> > >> >> >> >> >> >> >> >> -- >> >> >> >> View this message in context: >> >> >> >> >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10205161 >> >> >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> >> >> This SF.net email is sponsored by DB2 Express >> >> >> >> Download DB2 Express C - the FREE version of DB2 express and >> take >> >> >> >> control of your XML. No limits. Just data. Click to get it now. >> >> >> >> http://sourceforge.net/powerbar/db2/ >> >> >> >> _______________________________________________ >> >> >> >> Wicket-user mailing list >> >> >> >> Wicket-user@lists.sourceforge.net >> >> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> >> >> >> >> > >> >> >> > >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> >> > This SF.net email is sponsored by DB2 Express >> >> >> > Download DB2 Express C - the FREE version of DB2 express and take >> >> >> > control of your XML. No limits. Just data. Click to get it now. >> >> >> > http://sourceforge.net/powerbar/db2/ >> >> >> > _______________________________________________ >> >> >> > Wicket-user mailing list >> >> >> > Wicket-user@lists.sourceforge.net >> >> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> > >> >> >> > >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10205966 >> >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> >> This SF.net email is sponsored by DB2 Express >> >> >> Download DB2 Express C - the FREE version of DB2 express and take >> >> >> control of your XML. No limits. Just data. Click to get it now. >> >> >> http://sourceforge.net/powerbar/db2/ >> >> >> _______________________________________________ >> >> >> Wicket-user mailing list >> >> >> Wicket-user@lists.sourceforge.net >> >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> >> >> > >> >> > >> >> >> ------------------------------------------------------------------------- >> >> > This SF.net email is sponsored by DB2 Express >> >> > Download DB2 Express C - the FREE version of DB2 express and take >> >> > control of your XML. No limits. Just data. Click to get it now. >> >> > http://sourceforge.net/powerbar/db2/ >> >> > _______________________________________________ >> >> > Wicket-user mailing list >> >> > Wicket-user@lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10206375 >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> This SF.net email is sponsored by DB2 Express >> >> Download DB2 Express C - the FREE version of DB2 express and take >> >> control of your XML. No limits. Just data. Click to get it now. >> >> http://sourceforge.net/powerbar/db2/ >> >> _______________________________________________ >> >> Wicket-user mailing list >> >> Wicket-user@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by DB2 Express >> > Download DB2 Express C - the FREE version of DB2 express and take >> > control of your XML. No limits. Just data. Click to get it now. >> > http://sourceforge.net/powerbar/db2/ >> > _______________________________________________ >> > Wicket-user mailing list >> > Wicket-user@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wicket-user >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10207275 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10207500 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user