You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Finn Bock (JIRA)" <ji...@apache.org> on 2010/01/20 21:24:54 UTC

[jira] Commented: (CLK-149) Passing listeners to ActionLink

    [ https://issues.apache.org/jira/browse/CLK-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802971#action_12802971 ] 

Finn Bock commented on CLK-149:
-------------------------------

I believe this issue is solved with the PageLink control. The attached solution is also a bit out of date and even more out of style. I suggest this issue is closed.

> 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.