You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by harishpatarla <ha...@gmail.com> on 2013/02/26 13:30:14 UTC

How to add an image to a tapestry page?

Below is the file called LoginLayout.tml and i want to add our company LOGO
to this page in the top-left corner.Can anybody suggest me how to do it.


<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">

	<head>
		<title>${title}</title>
		<meta http-equiv="Content-Type"
			content="text/html; charset=iso-8859-1" />
		<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE" />
		<link type="text/css" rel="stylesheet"
			href="${request.contextPath}/css/regressionsystem.css" />
			
					

	</head>

	<body>

		
		<div>

			
				


				
				
				<div t:type="t5components/RoundCornerContainer" fgcolor="#B3D4FF">
					

						Regression Testing Framework
					

				</div>

			



			
			
			<div style="float:left;">
				<t:body />
			</div>
			<div style="clear:both"></div>
		</div>

	
	</body>


</html>



Thanks in advance



--
View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-add-an-image-to-a-tapestry-page-tp5720230.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to add an image to a tapestry page?

Posted by Bob Harner <bo...@gmail.com>.
Assuming you're willing to bundle the image with your application,
you'll probably want to use the ${context:...} binding prefix for the
URL of the image so that Tapestry will emit a far-future expires
header and automatic versioning of the URL.

    <img src="${context:images/logo.png}" alt="Banner"/>

See http://tapestry.apache.org/assets.html for more info.

On Tue, Feb 26, 2013 at 7:33 AM, Thiago H de Paula Figueiredo
<th...@gmail.com> wrote:
> On Tue, 26 Feb 2013 09:30:14 -0300, harishpatarla <ha...@gmail.com>
> wrote:
>
>> Below is the file called LoginLayout.tml and i want to add our company
>> LOGO to this page in the top-left corner.Can anybody suggest me how to do
>> it.
>
>
> Use the <img> HTML tag just like you'd do without Tapestry. By the way,
> anything you can do in ordinary HTML you can do in exactly the same way in a
> Tapestry template.
>
> --
> Thiago H. de Paula Figueiredo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to add an image to a tapestry page?

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Tue, 26 Feb 2013 09:30:14 -0300, harishpatarla  
<ha...@gmail.com> wrote:

> Below is the file called LoginLayout.tml and i want to add our company  
> LOGO to this page in the top-left corner.Can anybody suggest me how to  
> do it.

Use the <img> HTML tag just like you'd do without Tapestry. By the way,  
anything you can do in ordinary HTML you can do in exactly the same way in  
a Tapestry template.

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org