You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/07/10 22:59:10 UTC

[jira] Created: (TAPESTRY-394) Default for listener parameter of DirectLink, etc.

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@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Resolved: (TAPESTRY-394) Default for listener parameter of DirectLink, etc.

Posted by "Ben Dotte (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ben Dotte resolved TAPESTRY-394.
--------------------------------

    Resolution: Fixed

This is complete for the XTile, DirectLink, InvokeListener, and Suggest components. In each case, the listener parameter has been made optional, and if it is not used, Tapestry will attempt to find a listener whose name is composed of the capitalized component id, prefixed by "do". Added unit tests and updated the site documentation.

> 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
>            Assignee: Ben Dotte
>            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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


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

Posted by "Cyrille (JIRA)" <de...@tapestry.apache.org>.
    [ 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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-394) Default for listener parameter of DirectLink, etc.

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-394?page=all ]

Jesse Kuhnert updated TAPESTRY-394:
-----------------------------------

    Fix Version/s: 4.1.2

> Default for listener parameter of DirectLink, etc.
> --------------------------------------------------
>
>                 Key: TAPESTRY-394
>                 URL: http://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.2
>
>
> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-394) Default for listener parameter of DirectLink, etc.

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-394:
-----------------------------------

    Fix Version/s:     (was: 4.1.2)
                   4.1.3

> 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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Assigned: (TAPESTRY-394) Default for listener parameter of DirectLink, etc.

Posted by "Ben Dotte (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ben Dotte reassigned TAPESTRY-394:
----------------------------------

    Assignee: Ben Dotte

> 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
>            Assignee: Ben Dotte
>            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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


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

Posted by "Ben Dotte (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516081 ] 

Ben Dotte commented on TAPESTRY-394:
------------------------------------

I've got this implemented locally for components that have a required listener (XTile, DirectLink, InvokeListener, Suggest) but it isn't clear to me how or whether this should be used for components with non-required listeners. How would you tell if the user doesn't want a listener vs. assuming an implicit one? I suppose we could look for a listener and fail silently if we don't find one (for components with non-required listeners) but that seems less than ideal.

> 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
>            Assignee: Ben Dotte
>            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@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org