You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Eric Tan <ne...@yahoo.com.hk> on 2005/05/30 03:25:30 UTC

add Update Delete image in @contrib:Table

Hi all,

    Can I use @contrib:Table to create data grid with
some picture.

    <table jwcid="abc@contrib:Table"
source="ognl:dataItems" columns="update_img,
delete_img, UserId, UserName"/>

  blank     , blank     , heading, heading2
  update_img, delete_img, column1, column2

Do I have to edit object in the ArrayList
"getDateItems()"?

Thanks and regards,
    Eric Tan

__________________________________
想即時收到新 email 通知?
下載 Yahoo! Messenger
http://messenger.yahoo.com.hk/

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


Re: add Update Delete image in @contrib:Table

Posted by Andreas Andreou <an...@di.uoa.gr>.
Ron Piterman wrote:

> You can use the "!" prefix for columns which render by block components,

The "!" prefix is for disabling sorting. You can always include blocks 
to customize how each
column is rendered

> and then add a block in the body of the table:
>
>
> <table jwcid="abc@contrib:Table"
>   source="ognl:dataItems"
>   columns="update_img,  delete_img, UserId, UserName, !image">
>     <span jwcid="imageColumnValue@Block">
>         here comes the image... (<img jwcid="@Image" ... >)
>     </span>
> </table>
>
> Cheers,
> Ron


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


How to override rendering of table components? [auf Viren geprueft]

Posted by Jonathan O'Connor <Jo...@xcom.de>.
Folks,
I want to change the html generated in table column headers to something 
like:
<thead><tr>
<th><a href="blah">col1</a><img src="uparrow.gif"/></th>
<th><a href="blah">col1</a><img src="uparrow.gif"/></th>
<th><a href="blah">col1</a><img src="uparrow.gif"/></th>
</tr></thead>

What is the standard way of overriding the rendering of table components?
What do I have to do? Can I simply replace the 
SimpleTableColumnComponent.html? If so, where do I put it? Or can I do 
something clever like defining my own foreach loop on columns?
<table jwcid="tableView@contrib:TableView"
        source="ognl:emailsModel"
        columns="ReceiptTime, From, To, Type, DocumentsImported, Subject, 
Status">
        <thead><tr jwcid="@Foreach" 
source="components.tableView.tableColumnModel.columns" value="tableColumn" 
>
                <th><span jwcid="@Insert" 
value="ognl:tableColumn.columnName"/>
                </th>
        </tr></thead>
        <tr jwcid="tableRows@contrib:TableRows" row="ognl:item" element=
"tr">
                <td jwcid="tableValues@contrib:TableValues" />
        </tr>
        <tr>
                <td jwcid="tablePages@contrib:TablePages" pagesDisplayed=
"ognl:8" />
        </tr>
</table>
Ciao,
Jonathan O'Connor
XCOM Dublin



IBM Workplace 2.5 Launch Events:
XCOM AG und IBM laden zum weltweiten Launch von IBM Workplace Collaboration Services 2.5 nach Duesseldorf, Frankfurt und Berlin: http://lotus.xcom.de/events

XCOM Express Programm:
Der schnelle Einstieg in neueste Technologien zum kleinen Preis - Portale, e-Mail Security und Mobility: http://lotus.xcom.de/express


*** XCOM AG Legal Disclaimer ***

Diese E-Mail einschliesslich ihrer Anhaenge ist vertraulich und ist allein fur den Gebrauch durch den vorgesehenen Empfaenger bestimmt. Dritten ist das Lesen, Verteilen oder Weiterleiten dieser E-Mail untersagt. Wir bitten, eine fehlgeleitete E-Mail unverzueglich vollstaendig zu loeschen und uns eine Nachricht zukommen zu lassen.

This email may contain material that is confidential and for the sole use of the intended recipient. Any review, distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.


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


Re: add Update Delete image in @contrib:Table

Posted by Ron Piterman <mp...@vollbio.de>.
You can use the "!" prefix for columns which render by block components,
and then add a block in the body of the table:


<table jwcid="abc@contrib:Table"
   source="ognl:dataItems"
   columns="update_img,  delete_img, UserId, UserName, !image">
	<span jwcid="imageColumnValue@Block">
		here comes the image... (<img jwcid="@Image" ... >)
	</span>
</table>

Cheers,
Ron

ציטוט Eric Tan:
> Hi all,
> 
>     Can I use @contrib:Table to create data grid with
> some picture.
> 
>     <table jwcid="abc@contrib:Table"
> source="ognl:dataItems" columns="update_img,
> delete_img, UserId, UserName"/>
> 
>   blank     , blank     , heading, heading2
>   update_img, delete_img, column1, column2
> 
> Do I have to edit object in the ArrayList
> "getDateItems()"?
> 
> Thanks and regards,
>     Eric Tan
> 
> __________________________________
> 想即時收到新 email 通知?
> 下載 Yahoo! Messenger
> http://messenger.yahoo.com.hk/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


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