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)" <de...@tapestry.apache.org> on 2007/03/18 17:58:09 UTC
[jira] Commented: (TAPESTRY-1370) Add a component event result
processor for Class instances
[ https://issues.apache.org/jira/browse/TAPESTRY-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481961 ]
Howard M. Lewis Ship commented on TAPESTRY-1370:
------------------------------------------------
Smart idea / split the difference between the name (not refactoring safe) and injecting a page instance.
> Add a component event result processor for Class instances
> ----------------------------------------------------------
>
> Key: TAPESTRY-1370
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1370
> Project: Tapestry
> Issue Type: New Feature
> Components: tapestry-core
> Affects Versions: 5.0
> Reporter: Daniel Gredler
> Priority: Minor
> Fix For: 5.0
>
>
> I find that my event handlers that need to redirect to other pages often return a string:
> return Start.class.getSimpleName();
> It would be nice if I could just return a Class instance:
> return Start.class;
> This change would involve a new class, ClassResultProcessor, implementing ComponentEventResultProcessor, plus a line in TapestryModule#contributeComponentEventResultProcessor to add it to the configuration.
--
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