You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Bob Schellink (JIRA)" <ji...@apache.org> on 2010/01/21 09:18:57 UTC
[jira] Closed: (CLK-149) Passing listeners to ActionLink
[ https://issues.apache.org/jira/browse/CLK-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bob Schellink closed CLK-149.
-----------------------------
Resolution: Fixed
> Passing listeners to ActionLink
> -------------------------------
>
> Key: CLK-149
> URL: https://issues.apache.org/jira/browse/CLK-149
> Project: Click
> Issue Type: Improvement
> Components: core
> Environment: All
> Reporter: Lincoln Spiteri
> Assignee: Malcolm Edgar
> Priority: Minor
> Attachments: ActionLink.java, ClickApp.java
>
>
> The ActionLink control required an object instance as a listener. In order to have an action link point you to a new page set the current page as the listener and redirect to the target page in the event handler.
> I have modified the ActionLink control to allow you to pass a target class (eg EditAddress.class) and link directly to the target without having to forward or redirect.
> To do this I made ClickApp visible and also made getPagePath() public static. I then modified the ActionLink getHref method to render the correct path corresponding to a given class name.
> I am attaching ActionLink and ClickApp for review.
> I have tested this on our app an it is works well.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.