You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Rich S. (JIRA)" <ji...@apache.org> on 2010/12/22 15:35:01 UTC

[jira] Created: (CLK-741) Link Decorator ActionListener not called when Table is contained in a Panel

Link Decorator ActionListener not called when Table is contained in a Panel
---------------------------------------------------------------------------

                 Key: CLK-741
                 URL: https://issues.apache.org/jira/browse/CLK-741
             Project: Click
          Issue Type: Bug
          Components: extras
    Affects Versions: 2.3.0-M1
            Reporter: Rich S.
            Priority: Minor


If I create a Panel and add a Table with ActionLinks added using a LinkDecorator object, the ActionListeners of the ActionLink will not be called when the links are clicked.

It seems that the links created by the LinkDecorator are missing from the process chain, and onProcess is not called for these links. This problem does not occur when exactly the same setup is used directly in a Page.

A workaround is to add the links to the table object, as well as passing them to the LinkDecorator.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CLK-741) ActionLink ActionListeners not called when Table is contained in a Panel and links added using Link Decorator

Posted by "Rich S. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLK-741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rich S. closed CLK-741.
-----------------------

    Resolution: Not A Problem

Hi Bob,

Ah, the autobinding explains it... that is where I was getting confused. Thanks for the explanation.
I will close this issue.



> ActionLink ActionListeners not called when Table is contained in a Panel and links added using Link Decorator
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: CLK-741
>                 URL: https://issues.apache.org/jira/browse/CLK-741
>             Project: Click
>          Issue Type: Bug
>          Components: extras
>    Affects Versions: 2.3.0-M1
>            Reporter: Rich S.
>            Priority: Minor
>
> If I create a Panel and add a Table with ActionLinks added using a LinkDecorator object, the ActionListeners of the ActionLink will not be called when the links are clicked.
> It seems that the links created by the LinkDecorator are missing from the process chain, and onProcess is not called for these links. This problem does not occur when exactly the same setup is used directly in a Page.
> A workaround is to add the links to the table object, as well as passing them to the LinkDecorator.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-741) ActionLink ActionListeners not called when Table is contained in a Panel and links added using Link Decorator

Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12974399#action_12974399 ] 

Bob Schellink commented on CLK-741:
-----------------------------------

Hi Rich,

Don't think there is a bug here. LinkDecorator doesn't attach the links to itself or any other control. They simply decorate them. Your workaround is the expected behavior; you could also add the links to the Panel instead of Table.

It is also consistent with the way it works with Pages. I think the behavior you are seeing in a Page is Auto binding adding the links to the Page object which in turn processes them. If you turn off Auto binding you'll also need to add the links to the page manually.

Kind regards

Bob

> ActionLink ActionListeners not called when Table is contained in a Panel and links added using Link Decorator
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: CLK-741
>                 URL: https://issues.apache.org/jira/browse/CLK-741
>             Project: Click
>          Issue Type: Bug
>          Components: extras
>    Affects Versions: 2.3.0-M1
>            Reporter: Rich S.
>            Priority: Minor
>
> If I create a Panel and add a Table with ActionLinks added using a LinkDecorator object, the ActionListeners of the ActionLink will not be called when the links are clicked.
> It seems that the links created by the LinkDecorator are missing from the process chain, and onProcess is not called for these links. This problem does not occur when exactly the same setup is used directly in a Page.
> A workaround is to add the links to the table object, as well as passing them to the LinkDecorator.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CLK-741) ActionLink ActionListeners not called when Table is contained in a Panel and links added using Link Decorator

Posted by "Rich S. (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLK-741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rich S. updated CLK-741:
------------------------

    Summary: ActionLink ActionListeners not called when Table is contained in a Panel and links added using Link Decorator  (was: Link Decorator ActionListener not called when Table is contained in a Panel)

> ActionLink ActionListeners not called when Table is contained in a Panel and links added using Link Decorator
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: CLK-741
>                 URL: https://issues.apache.org/jira/browse/CLK-741
>             Project: Click
>          Issue Type: Bug
>          Components: extras
>    Affects Versions: 2.3.0-M1
>            Reporter: Rich S.
>            Priority: Minor
>
> If I create a Panel and add a Table with ActionLinks added using a LinkDecorator object, the ActionListeners of the ActionLink will not be called when the links are clicked.
> It seems that the links created by the LinkDecorator are missing from the process chain, and onProcess is not called for these links. This problem does not occur when exactly the same setup is used directly in a Page.
> A workaround is to add the links to the table object, as well as passing them to the LinkDecorator.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.