RE: path to referenced files

2007-08-24 Thread Marcus.Schulte
yourWebApp/images 

 -Original Message-
 From: Angelo Chen [mailto:[EMAIL PROTECTED] 
 Sent: Friday, August 24, 2007 1:07 PM
 To: users@tapestry.apache.org
 Subject: path to referenced files
 
 
 Hi,
 
 If I have something like following in the html, which 
 directory should i put so that it can be picked up during run time:
 
 /images/logo.jpg 
 
 Thanks,
 
 A.C.
 --
 View this message in context: 
 http://www.nabble.com/path-to-referenced-files-tf4322970.html#
 a12310389
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: path to referenced files

2007-08-24 Thread Michael Wölm

I use
path=context:/images/logo.jpg

to display the office emblem, for example. But I use T4, doesn't know if 
T5 has is still...
That has the small adavantage that renaming the application doesn't 
force a change to such links.


Regards,
Michael Wölm

[EMAIL PROTECTED] schrieb:
yourWebApp/images 

  

-Original Message-
From: Angelo Chen [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 24, 2007 1:07 PM

To: users@tapestry.apache.org
Subject: path to referenced files


Hi,

If I have something like following in the html, which 
directory should i put so that it can be picked up during run time:


/images/logo.jpg 


Thanks,

A.C.
--
View this message in context: 
http://www.nabble.com/path-to-referenced-files-tf4322970.html#

a12310389
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: path to referenced files

2007-08-24 Thread Angelo Chen

works, thanks.

I have to add this:

@Inject
@Path(context:/images/logo.jpg)

private Asset logo;

public Asset getLogo() {
return logo;
}

then in the Layout.html, add: 

img src=${logo}

is there a way to directly specify it in the html?



Marcus.Schulte wrote:
 
 yourWebApp/images 
 
 -Original Message-
 From: Angelo Chen [mailto:[EMAIL PROTECTED] 
 Sent: Friday, August 24, 2007 1:07 PM
 To: users@tapestry.apache.org
 Subject: path to referenced files
 
 
 Hi,
 
 If I have something like following in the html, which 
 directory should i put so that it can be picked up during run time:
 
 /images/logo.jpg 
 
 Thanks,
 
 A.C.
 --
 View this message in context: 
 http://www.nabble.com/path-to-referenced-files-tf4322970.html#
 a12310389
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/path-to-referenced-files-tf4322970.html#a12313869
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]