Re: [Wicket-user] absolute resource paths and asset servers

2007-06-08 Thread Igor Vaynberg

but those are still static resources, in the sense they are not generated on
the fly.

-igor


On 6/8/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:


On 6/8/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> for static assets it is simple enough to create a component that will
> generate those absolute urls.
>
> resource reference implies a dynamic asset or one that is packaged in
the
> java packages, does that make sense to use with an asset server?
>

I think it does make sense.  If you have static resources, I would use
standard HTML instead of wicket.

For example, I have scriptaculous ajax components that package
javascript with the application.  I would like the urls to load that
javascript to be balanced across asset servers.  CSS, Javascript and
Images are all candidates for this kind of loading.

Ryan

-
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


Re: [Wicket-user] absolute resource paths and asset servers

2007-06-08 Thread Ryan Sonnek
On 6/8/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> for static assets it is simple enough to create a component that will
> generate those absolute urls.
>
> resource reference implies a dynamic asset or one that is packaged in the
> java packages, does that make sense to use with an asset server?
>

I think it does make sense.  If you have static resources, I would use
standard HTML instead of wicket.

For example, I have scriptaculous ajax components that package
javascript with the application.  I would like the urls to load that
javascript to be balanced across asset servers.  CSS, Javascript and
Images are all candidates for this kind of loading.

Ryan

-
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


Re: [Wicket-user] absolute resource paths and asset servers

2007-06-08 Thread Igor Vaynberg

for static assets it is simple enough to create a component that will
generate those absolute urls.

resource reference implies a dynamic asset or one that is packaged in the
java packages, does that make sense to use with an asset server?

-igor


On 6/8/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:


I've seen a discussion over the past few days about relative vs
absolute paths in wicket.  I'd like to pose a similar question and see
if wicket can support this usecase.

Ruby on Rails has this new feature where they will automatically
convert images and javascript references to use a different domain
name (a.k.a. asset server).  This allows for the application to bypass
the browser limitation of "two resources per domain at a time".

I would like to know if I can do something similar in wicket.

for example, I have several servers (asset1.myserver.com,
asset2.myserver.com), and I would like to use a wicket
ResourceReference that will automatically (or randomly) choose between
my servers for improved performance.

Something like:
add(new AssetResourceReference(MyClass.class, "javascript.js", new
String[] {"asset1.myserver.com", "asset2.myserver.com"}));

The question is, can something like this work?  can wicket generate
absolute urls, or does wicket only deal with relative urls?

This would be a big deal for working with "high traffic" wicket sites.

Ryan

-
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


[Wicket-user] absolute resource paths and asset servers

2007-06-08 Thread Ryan Sonnek
I've seen a discussion over the past few days about relative vs
absolute paths in wicket.  I'd like to pose a similar question and see
if wicket can support this usecase.

Ruby on Rails has this new feature where they will automatically
convert images and javascript references to use a different domain
name (a.k.a. asset server).  This allows for the application to bypass
the browser limitation of "two resources per domain at a time".

I would like to know if I can do something similar in wicket.

for example, I have several servers (asset1.myserver.com,
asset2.myserver.com), and I would like to use a wicket
ResourceReference that will automatically (or randomly) choose between
my servers for improved performance.

Something like:
add(new AssetResourceReference(MyClass.class, "javascript.js", new
String[] {"asset1.myserver.com", "asset2.myserver.com"}));

The question is, can something like this work?  can wicket generate
absolute urls, or does wicket only deal with relative urls?

This would be a big deal for working with "high traffic" wicket sites.

Ryan

-
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