opensubscriber
   Find in this group all groups
 
Unknown more information…

t : tapestry-dev@jakarta.apache.org 10 July 2005 • 4:59PM -0400

[jira] Created: (TAPESTRY-394) Default for listener parameter of DirectLink, etc.
by Howard M. Lewis Ship (JIRA)

REPLY TO AUTHOR
 
REPLY TO GROUP




Default for listener parameter of DirectLink, etc.
--------------------------------------------------

         Key: TAPESTRY-394
         URL: http://issues.apache.org/jira/browse/TAPESTRY-394
     Project: Tapestry
        Type: New Feature
  Components: Framework  
    Versions: 4.0    
    Reporter: Howard M. Lewis Ship
    Priority: Minor


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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

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