True, but this example is also a good lead to start from.
And giving advice like buy Kent's book renders the purporse of the mailing
list useless, me thinks.
On 5/3/06, Andreas Bulling <[EMAIL PROTECTED]> wrote:
On 03. Mai 2006 - 11:29:36, Mike Snare wrote:
| Seriously, you need to buy kent's book. Or maybe look at the
| documentation for the TableView component and/or the For component.
No offence, but all those "buy Kent's book and read it" advices don't
help if one needs a _quick_ answer to his question.
So... For example in your .page file:
<component id="personList" type="contrib:Table">
<binding name="source" value="modelSource.getPersonTableModel
(queryParameters)"/>
<binding name="columns" value="literal:
lastname:lastname:lastName, firstname:firstname:firstName, email, usertype,
!profile"/>
<binding name="initialSortColumn" value="literal: lastname"/>
<binding name="pageSize" value="10"/>
<binding name="rowsClass" value="beans.evenOdd.next"/>
<binding name="columnsClass" value="literal:table_head"/>
</component>
<component id="contactUser" type="DirectLink">
<binding name="parameters" value="
components.personList.tableRow.email"/>
<binding name="listener" value="listener:contactUser"/>
</component>
In your .html file:
<span jwcid="personList">
<span jwcid="[EMAIL PROTECTED]">
<a href="#" jwcid="contactUser"><span jwcid="@Insert"
value="ognl:components.personList.tableRow.email"/></a>
</span>
</span>
You should search the list anyway as most of the questions (escpecially
yours)
have been asked and answered many times before... ;)
Hope it helps,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Cumprimentos,
Rui Pacheco