opensubscriber
   Find in this group all groups
 
Unknown more information…

d : dev@tapestry.apache.org 29 June 2007 • 2:54AM -0400

[jira] Commented: (TAPESTRY-394) Default for listener parameter of DirectLink, etc.
by Cyrille (JIRA)

REPLY TO AUTHOR
 
REPLY TO GROUP





    [ https://issues.apache.org/jira/browse/TAPESTRY-394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508904 ]

Cyrille commented on TAPESTRY-394:
----------------------------------


For exemple the t:loop component can generate t:actionLink url like I would like : the action is not the uniqueId of the component :

<t:loop source="1..3" value="guess">
<t:actionlink t:id="showStuff" t:context="guess">${guess}</t:actionlink>
</t:loop>

.../do.showStuff/1
.../do.showStuff/2
.../do.showStuff/3

with a t:listener I could do the same without the t:loop component.


> Default for listener parameter of DirectLink, etc.
> --------------------------------------------------
>
>                 Key: TAPESTRY-394
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-394
>             Project: Tapestry
>          Issue Type: New Feature
>          Components: Framework
>    Affects Versions: 4.0
>            Reporter: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 4.1.3
>
>
> The following is a common convention in Tapestry:
> <p>
>   <a href="#" jwcid="clear@DirectLink" listener="listener:doClear">clear counter</a>
> </p>
> Looking at this, it seems to me that the default for listener could be calculated; that is, capitalize the component id to "Clear" and prefix with "do".
> I.e.
> getContainer().getListeners().getListener("do" + capitalize(getId()));
> Of course, for auto-generated ids, this would be a failure (either no listener found, or something more explicit).

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tape...
For additional commands, e-mail: dev-help@tape...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.