You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Manjith Kumar Adapa <ma...@aztec.soft.net> on 2005/10/04 12:46:18 UTC

How to render the thumbnails using the Contrib table?

Hi,

In our application I store the path of the file and other MetaData about the
file in database. Well I am able to retrieve all the metadata.
But the thing is that I need to render the images from the path specified in
the database table from the local machine.
Can somebody help me how to do that in Tapestry 4.

Well, the code I have used is: -

In .Page is:-

<component id="membersTableView" type="contrib:TableView">
     	<binding name="source" value="files"/>
        <binding name="columns">Thumbnail:localPath, Name :name, Type :
fileType,Upload Date:uploadDate, Privacy: privacy</binding>
        <binding name="pageSize" value="10"/>
        <binding name="initialSortColumn" value="'Upload Date'"/>
        <binding name="initialSortOrder" value="true"/>
    </component>
 	<component id="membersTableColumns" type="contrib:TableColumns" >
 	</component>
 	<component id="membersTablePages" type="contrib:TablePages">
 	</component>
 	<component id="membersTableRows" type="contrib:TableRows" >
 	</component>
 	<component id="membersTableValues" type="contrib:TableValues" >
	</component>

In .html is: -

<table  border="1" class="table" jwcid="membersTableView">
<span jwcid="membersTableColumns"/>
<span jwcid="membersTableRows">
<span jwcid="membersTableValues"/>
</span>
<tr>
<td colspan="7">
<span jwcid="membersTablePages"/>
</td>
</tr>
</table>

Can somebody suggest me how to achieve this using the above code?

Thanks
Manjith Kumar.

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