[Wicket-user] Graphics, css, html and classes
Hi, At the moment I have following project structure: [root] + [resources] | + style.css | + graphic/logo.png + [src] + [com.blabla.pages] + Index.java + Index.html Index.html references style.css and graphic/logo.png relative to [resources] (which is in the classpath) to ensure the resulting page can reach these resources. But when editing the Index.html, they are not reachable, because they are not available relative to the current package. How do you manage such resources? -- Cheers, Tom --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Graphics, css, html and classes
some ideasMake those resources also PackageResources so inside the src dir.Or set a hard path ../../../ in Index.html to style.css and logo.pngAnd then fix that path at runtime johan On 2/13/06, Tom S. [EMAIL PROTECTED] wrote: Hi,At the moment I have following project structure:[root]+ [resources]| + style.css| + graphic/logo.png+ [src] + [com.blabla.pages] + Index.java + Index.htmlIndex.html references style.css and graphic/logo.png relative to [resources](which is in the classpath) to ensure the resulting page can reach theseresources. But when editing the Index.html, they are not reachable, because they are not available relative to the current package.How do you manage such resources?--Cheers,Tom---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Graphics, css, html and classes
>From within style.css the references to images is always local to the style.So when I need to add a style.css to a wicket markup file, and I want previewability, I usually do something like this:wicket:remove style src="">/wicket:removestyle src=""> On 2/13/06, Johan Compagner [EMAIL PROTECTED] wrote: some ideasMake those resources also PackageResources so inside the src dir.Or set a hard path ../../../ in Index.html to style.css and logo.pngAnd then fix that path at runtime johan On 2/13/06, Tom S. [EMAIL PROTECTED] wrote: Hi,At the moment I have following project structure:[root]+ [resources]| + style.css| + graphic/logo.png+ [src] + [com.blabla.pages] + Index.java + Index.html Index.html references style.css and graphic/logo.png relative to [resources](which is in the classpath) to ensure the resulting page can reach theseresources. But when editing the Index.html, they are not reachable, because they are not available relative to the current package.How do you manage such resources?--Cheers,Tom---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1
Re: [Wicket-user] Graphics, css, html and classes
OK, for styles, this works, but how to do that with images? What about moving the html-files to the resources directory? Maybe there is an easy way to tell Wicket where it should search for them. Cheers, Tom Martijn Dashorst schrieb: From within style.css the references to images is always local to the style. So when I need to add a style.css to a wicket markup file, and I want previewability, I usually do something like this: wicket:remove style src=../../../../../../../webapp/style/style.css/style /wicket:remove style src=style/style.css/style On 2/13/06, *Johan Compagner* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: some ideas Make those resources also PackageResources so inside the src dir. Or set a hard path ../../../ in Index.html to style.css and logo.png And then fix that path at runtime johan On 2/13/06, *Tom S.* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, At the moment I have following project structure: [root] + [resources] | + style.css | + graphic/logo.png + [src] + [com.blabla.pages] + Index.java + Index.html Index.html references style.css and graphic/logo.png relative to [resources] (which is in the classpath) to ensure the resulting page can reach these resources. But when editing the Index.html, they are not reachable, because they are not available relative to the current package. How do you manage such resources? -- Cheers, Tom --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Graphics, css, html and classes
that is possible but then you have to writer youre own ResourceFinder or ResourceLocator.On 2/13/06, Thomas Singer [EMAIL PROTECTED] wrote:OK, for styles, this works, but how to do that with images? What about moving the html-files to the resources directory? Maybe there isan easy way to tell Wicket where it should search for them.Cheers,TomMartijn Dashorst schrieb:From within style.css the references to images is always local to the style. So when I need to add a style.css to a wicket markup file, and I want previewability, I usually do something like this: wicket:remove style src=""> /wicket:remove style src="" On 2/13/06, *Johan Compagner* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: some ideas Make those resources also PackageResources so inside the src dir. Or set a hard path ../../../ in Index.html to style.css and logo.png And then fix that path at runtime johan On 2/13/06, *Tom S.* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, At the moment I have following project structure: [root] + [resources] | + style.css | + graphic/logo.png + [src]+ [com.blabla.pages]+ Index.java+ Index.html Index.html references style.css and graphic/logo.png relative to [resources] (which is in the classpath) to ensure the resulting page can reach these resources. But when editing the Index.html, they are not reachable, because they are not available relative to the current package. How do you manage such resources? -- Cheers, Tom --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makes searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1--- This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user