Re: DirectLink in TableValue

2006-07-18 Thread Kosarev A.V.
Thanks a lot!

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



Re: DirectLink in TableValue

2006-07-17 Thread Murray Collingwood
I found this example somewhere, can't remember now... (I must keep bookmarking, 
I must 
keep bookmarking...)

[from A.html]

span jwcid=[EMAIL PROTECTED] 
span jwcid=editLinkspan key=link_editEdit/span/span 
span jwcid=deleteLinkspan 
key=link_deleteDel/span/span 
/span

[from A.page]

component id=editLink type=DirectLink
binding name=listener value=listener:edit/
binding name=parameters value=comp.id/
/component
component id=deleteLink type=DirectLink
binding name=listener value=listener:delete/
binding name=parameters value=comp.id/
/component

That wasn't hard.

The question you were probably wanting to know though was how to include a 
table value in 
the link text.

[from B.html]

span jwcid=[EMAIL PROTECTED] 
span jwcid=descLink 
span jwcid=descText / 
/span 
/span

[from B.page]

component id=descLink type=DirectLink
binding name=listener value=listener:select/
binding name=parameters value=comp.id/
/component
component id=descText type=InsertText
binding name=value value=comp.desc/
/component


You have to nest the spans here, one for the link and the second for the link 
text.

Now you have everything.

Cheers
mc


On 13 Jul 2006 at 13:46, Kosarev A.V. wrote:

 Update:
 I wish to place in a column two DirectLink components.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



FOCUS Computing - web design
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.1/390 - Release Date: 17/07/2006


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



Re: DirectLink in TableValue

2006-07-13 Thread Kosarev A.V.
Update:
I wish to place in a column two DirectLink components.


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



Re: DirectLink in TableValue

2006-07-13 Thread Kosarev A.V.
Mind Bridge wrote:
 Hi,

 Can you also send your XML (.page or .jwc), in particular the definition of
 the tableView component?

   

?xml version=1.0 encoding=UTF-8?
!DOCTYPE component-specification PUBLIC
  -//Apache Software Foundation//Tapestry Specification 4.0//EN
  http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd;
component-specification allow-body=no allow-informal-parameters=yes

bean name=rowClass class=org.apache.tapestry.bean.EvenOdd/

component id=form type=Form
!--binding name=listener value=listeners.formSubmit/--
/component

component id=checkboxGroup type=contrib:CheckboxGroup/

component id=controlCheckbox type=contrib:ControlCheckbox/

component id=checkbox type=contrib:ControlledCheckbox
binding name=value value=checkboxSelected/
/component

component id=deleteLink type=LinkSubmit
binding name=listener value=listener:deleteClientsConfirm/
binding name=parameters value=literal:delete/
/component
component id=lockLink type=LinkSubmit
binding name=listener value=listener:lockClientsConfirm/
binding name=parameters value=literal:lock/
/component
component id=unlockLink type=LinkSubmit
binding name=listener value=listener:unlockClientsConfirm/
binding name=parameters value=literal:unlock/
/component

component id=tableView type=contrib:TableView
binding name=source value=ognl:tableDataModel/
binding name=columns value=literal: * orgName:orgName,
=creationDateFormatColumn, =lastModifiedDateFormatColumn,
creator:creator.username, lastChanger:lastChanger.username, !edit/
binding name=pageSize value=ognl:pageSize/
binding name=row value=ognl:currentClient/
/component

component id=tableColumns type=contrib:TableColumns
binding name=element value=literal:th/
binding name=class value=literal:blabla/
/component

component id=tableValues type=contrib:TableValues/

component id=tableFormRows type=contrib:TableFormRows
binding name=row value=currentClient/
binding name=keyExpression value=literal:toString()/
binding name=class value=beans.rowClass.next/
/component

component id=directEdit type=DirectLink
binding name=listener value=listener:editClient/
binding name=parameters value=ognl:currentClient.id/
/component

context-asset name=addNewAsset path=/images/add_ico.gif/
context-asset name=deleteAsset path=/images/del_ico.gif/
context-asset name=lockAsset path=/images/lock_ico.gif/
context-asset name=unlockAsset path=/images/unlock_ico.gif/

/component-specification


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