Thanks Again !
                        I have tried the way you specified but the page
breaks .......... saying " Could not parse template context:/.....". Please
help !!!



Thanks & Regards
-----------------------------
Ananya Goswami
Software Developer

 


-----Original Message-----
From: Andreas Andreou [mailto:[EMAIL PROTECTED] 
Sent: 19 October 2005 21:46
To: Tapestry users
Subject: Re: How to customize the Contrib table?


You could use something like this (in your .html template) :

<table jwcid="[EMAIL PROTECTED]:Table" source="ognl:files"
    columns="thumbs, Name :name, Type :fileType,Upload Date:uploadDate,
Privacy: privacy"/>
<span jwcid="[EMAIL PROTECTED]">
    <img jwcid="@Any" src="ognl:components.myTable.tableRow.localPath"/>
</span>

This will customize the way the first column (the thumbnails) will get
displayed
(outputing an image, instead of the localPath string) .



Ananya Goswami wrote:

>Hi Andreas,
>               I will give you the scenario where I wanted the solutions.
>
>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 and display the thumbnails in the
>respective column.
>
>
>
>In .Page :-
>
><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 : -
>
><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>
>
>Thanks & Regards
>-----------------------------
>Ananya Goswami
>Software Developer
>
>
>-----Original Message-----
>From: Andreas Andreou [mailto:[EMAIL PROTECTED] 
>Sent: 19 October 2005 16:26
>To: Tapestry users
>Subject: Re: How to customize the Contrib table?
>
>  
>
>>      1. Does anybody have any idea how to customize the
>>pagination links displayed in the contrib table? I want to deactivate the
>>    
>>
>">>>" link
>  
>
>> 
>>
>>    
>>
>
>Not sure what you're trying to do there, but you'll probably have to
>create your own Table component (which is way easier than it sounds)
>
>  
>
>>      2. Also can contrib table display values other than that
>>obtained from the database?
>> 
>>
>>    
>>
>Yes! You can customize the content of each cell by including Block 
>components.
>Read the docs and the examples in
>http://jakarta.apache.org/tapestry/3.0.3/doc/ComponentReference/contrib.Tab
l
>e.html
>
>  
>
>>      3. How to apply stylesheet on the headers?
>>
>>    
>>
>See the generated markup. The headers are included in th, so it's easy 
>to create a css rule
>in order to style them.
>
>
>
>
>Ananya Goswami wrote:
>
>  
>
>>Hi Andreas!
>>      I went through the stuff at ur blog ... but m sorry to say that m
>>not being to get answers to any of my queries!!!!  Please could you give
>>some hints regarding my issues ?
>>       
>>
>>Thanks & Regards
>>-----------------------------
>>Ananya Goswami
>>Software Developer
>>
>>-----------------------------
>>mail: [EMAIL PROTECTED]
>>mob: 09886886320
>>ph: 080-57561000
>>extn:3720
>>
>>
>>
>>-----Original Message-----
>>From: Andreas Andreou [mailto:[EMAIL PROTECTED] 
>>Sent: 18 October 2005 19:20
>>To: Tapestry users
>>Subject: Re: How to customize the Contrib table?
>>
>>Check out
>>https://tapestrywebcomponentexamples.dev.java.net/
>>
>>I've also written some table related stuff at :
>>- 
>>http://andyhot.di.uoa.gr/blojsom/blog/default/java/2005/05/05/Tapestrys_Ta
b
>>    
>>
>l
>  
>
>>e.html
>>- 
>>http://andyhot.di.uoa.gr/blojsom/blog/default/java/2005/06/01/Tapestrys_Ta
b
>>    
>>
>l
>  
>
>>e_cont.html
>>- http://andyhot.di.uoa.gr/tapfx/app?service=page/FilteringTable
>>
>>Ananya Goswami wrote:
>>
>> 
>>
>>    
>>
>>>Hello All!
>>>             I am using the contrib. table but am unable to customize the
>>>same.
>>>             1. Does anybody have any idea how to customize the
>>>pagination links displayed in the contrib table? I want to deactivate the
>>>      
>>>
>"
>  
>
>>>   
>>>
>>>      
>>>
>>>>>" link displayed. 
>>>>>    
>>>>>
>>>>>       
>>>>>
>>>>>          
>>>>>
>>>             2. Also can contrib table display values other than that
>>>obtained from the database?
>>>             3. How to apply stylesheet on the headers?
>>>     If anyone knows the solution to any of these issues, please help!!!!
>>>
>>>
>>>
>>>
>>>
>>>
>>>Thanks & Regards
>>>-----------------------------
>>>Ananya Goswami
>>>Software Developer
>>>
>>>-----------------------------
>>>
>>>
>>>---------------------------------------------------------------------
>>>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]
>>
>>
>>
>> 
>>
>>    
>>
>
>---------------------------------------------------------------------
>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]

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

Reply via email to