You might consider referencing the image from a Panel, then just using
the panel everywhere. In that case the image only needs to be kept in
the package that defines the Panel.

If it's something like a logo that appears at the top of every page, you
could also define a base page that renders the logo, then have every
other page extend your base page. In that case the image only needs to
be in same package as the base page.

In both cases, however, you do lose the ability to preview beyond the
panel or base page. As with any web framework, there's only so far you
can push previews. For me, though, the ability to package
Java+html+images+css+javascript into one re-usable component far
outweighs this limitation.

jk

On Thu, Apr 19, 2007 at 12:22:53AM -0700, nlif wrote:
> 
> Let me make sure I understand: you suggest that I place the img files along
> with the html and java files?
> But what if I have images that are used in many places in the application?
> Do I keep multiple copies of that gif files?
> This seems hard to maintain...
> 
> Naaman

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to