I wonder what happened to the wicket:preview tag...

Another option is to use:

<html>
<head>
<wicket:remove>
<link src="../../../../../src/main/webapp/style.css" />
</wicket:remove>
</head>
<body>
etc.

But basically I've become quite proficient in reading HTML and classes
so I don't need the preview of the stylesheets anymore (it is not like
netbeans preview renders the same as, IE6 or IE5.5, which are browsers
from the 9th level of hell).

The best process I've come up with is:
 - make preview/dummy mockup of your site
 - ensure it is all CSS enabled, making development a blast
 - copy dummy site to your packages
 - split pages into panels, apply markup inheritance
 - move stuff around to fit a nice package model
 - sprinkle wicket:id's in each page/component
 - run the application in the debugger, dev mode and fill in the behavior.

Stylesheet and general javascript go into the context root. If
something special needs to be developed (geeky JS or such), I usually
do a spike/prototype and then incorporate back into the app.

Martijn

On 7/17/07, jonaqua <[EMAIL PROTECTED]> wrote:
>
> I'm just getting started with Wicket.
>
> I'm not sure how I should best link to stylesheets and images in my NetBeans
> project.
>
> For example, if I have the following code in my MyPage.html page:
>
> &lt;img src="images/logo.png"&gt;
>
> ...and I run the application, the image will reference web/images/logo.png.
> However, if I just quickly view that HTML file, it will reference
> src/java/package/images/logo.png and the image link will be broken.
>
> Is there a good way to set up the project besides keeping duplicate images
> and stylesheets both in the source code dir and the web dir?
>
> I realize if I move the HTML files to the web directory the problem will be
> solved but I'm trying to stick with the Wicket way of doing things for now
> (.HTML right next to .java in the source)
>
> Thanks
> --
> View this message in context: 
> http://www.nabble.com/Setting-up-project---images-and-stylesheets-tf4094209.html#a11641865
> 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
>


-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Apache Wicket 1.3.0-beta2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/

-------------------------------------------------------------------------
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

Reply via email to