You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Mayne, Peter" <Pe...@ap.spherion.com> on 2003/08/14 07:05:28 UTC

Specifying width + height for image assets

I have a context-asset containing an image which I use with

    <img jwcid="@Image" image="ognl:assets.myImage" border="0"/>

If I want to be neat and tidy I can add width="" and height="" to the <img>
tag. However, it seems to me that the width and height would be better
specified with the asset definition. Otherwise, if the image asset changes,
I would also have to change the HTML.

Is there a way of doing this, or do I have to live with specifying the image
in the .page/.jwc, and it's attributes in the .html?

PJDM
-- 
Peter Mayne
Technology Consultant
Spherion Technology Solutions
Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602
T: 61 2 62689727  F: 61 2 62689777

The information contained in this email and any attachments to it:

(a) may be confidential and if you are not the intended recipient, any interference with, 
use, disclosure or copying of this material is unauthorised and prohibited; and

(b) may contain personal information of the recipient and/or the sender as defined 
under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to 
collect, hold and use such information and any personal information contained in a 
response to this email, for any reasonable purpose in the ordinary course of 
Spherion's 
business, including forwarding this email internally or disclosing it to a third party. All 
personal information collected by Spherion will be handled in accordance with 
Spherion's Privacy Policy. If you have received this email in error, please notify the 
sender and delete it.

(c) you agree not to employ or arrange employment for any candidate(s) supplied in 
this email and any attachments without first entering into a contractual agreement with 
Spherion. You further agree not to divulge any information contained in this document 
to any person(s) or entities without the express permission of Spherion.



Re: Specifying width + height for image assets

Posted by Marilen Corciovei <le...@nemesisit.rdsnet.ro>.
Hi,

If you want only to change things to the page/jwc file then maybe you
should consider not using the @Image form but the old way

define the image component in the page/jwc and use it by name in html.

Leb

On Thu, 2003-08-14 at 08:05, Mayne, Peter wrote:
> I have a context-asset containing an image which I use with
> 
>     <img jwcid="@Image" image="ognl:assets.myImage" border="0"/>
> 
> If I want to be neat and tidy I can add width="" and height="" to the
> <img> tag. However, it seems to me that the width and height would be
> better specified with the asset definition. Otherwise, if the image
> asset changes, I would also have to change the HTML.
> 
> Is there a way of doing this, or do I have to live with specifying the
> image in the .page/.jwc, and it's attributes in the ..html?
> 
> PJDM
> -- 
> Peter Mayne
> Technology Consultant
> Spherion Technology Solutions
> Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602
> T: 61 2 62689727  F: 61 2 62689777
> 
> The information contained in this email and any attachments to it:
> 
> (a) may be confidential and if you are not the intended recipient, any interference with, 
> use, disclosure or copying of this material is unauthorised and prohibited; and
> 
> (b) may contain personal information of the recipient and/or the sender as defined 
> under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to 
> collect, hold and use such information and any personal information contained in a 
> response to this email, for any reasonable purpose in the ordinary course of 
> Spherion's 
> business, including forwarding this email internally or disclosing it to a third party. All 
> personal information collected by Spherion will be handled in accordance with 
> Spherion's Privacy Policy. If you have received this email in error, please notify the 
> sender and delete it.
> 
> (c) you agree not to employ or arrange employment for any candidate(s) supplied in 
> this email and any attachments without first entering into a contractual agreement with 
> Spherion. You further agree not to divulge any information contained in this document 
> to any person(s) or entities without the express permission of Spherion.
> 
> 
> 
> ______________________________________________________________________
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org