You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Michal Kurtak (JIRA)" <ji...@apache.org> on 2010/10/06 18:17:31 UTC

[jira] Created: (WICKET-3097) isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.

isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.
----------------------------------------------------------------------------------------------------------------------

                 Key: WICKET-3097
                 URL: https://issues.apache.org/jira/browse/WICKET-3097
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.5-M2.1
            Reporter: Michal Kurtak


My scenario:
1. Component has 2 behaviors: first is temporary and second is ajax behavior.
2. Url for Ajax behavior contains behavior's index (e.g.
../page?1-1.IBehaviorListener.1-form-text)
2. Temporary behavior is removed in detachBehaviors method.
3. Ajax request is invoking ListenerInterfaceRequestHandler and it's
looking for behavior on non-existing index

This scenario causes error on wicket 1.5-M2.1

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


[jira] Commented: (WICKET-3097) isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920795#action_12920795 ] 

Hudson commented on WICKET-3097:
--------------------------------

Integrated in Apache Wicket 1.5.x #395 (See [https://hudson.apache.org/hudson/job/Apache%20Wicket%201.5.x/395/])
    test case
Issue: WICKET-3097


> isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3097
>                 URL: https://issues.apache.org/jira/browse/WICKET-3097
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M2.1
>            Reporter: Michal Kurtak
>            Assignee: Igor Vaynberg
>             Fix For: 1.5-M3
>
>         Attachments: patch.txt, temporarybehbug.zip
>
>
> My scenario:
> 1. Component has 2 behaviors: first is temporary and second is ajax behavior.
> 2. Url for Ajax behavior contains behavior's index (e.g.
> ../page?1-1.IBehaviorListener.1-form-text)
> 2. Temporary behavior is removed in detachBehaviors method.
> 3. Ajax request is invoking ListenerInterfaceRequestHandler and it's
> looking for behavior on non-existing index
> This scenario causes error on wicket 1.5-M2.1

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


[jira] Assigned: (WICKET-3097) isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.

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

Martin Grigorov reassigned WICKET-3097:
---------------------------------------

    Assignee: Martin Grigorov

> isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3097
>                 URL: https://issues.apache.org/jira/browse/WICKET-3097
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M2.1
>            Reporter: Michal Kurtak
>            Assignee: Martin Grigorov
>         Attachments: temporarybehbug.zip
>
>
> My scenario:
> 1. Component has 2 behaviors: first is temporary and second is ajax behavior.
> 2. Url for Ajax behavior contains behavior's index (e.g.
> ../page?1-1.IBehaviorListener.1-form-text)
> 2. Temporary behavior is removed in detachBehaviors method.
> 3. Ajax request is invoking ListenerInterfaceRequestHandler and it's
> looking for behavior on non-existing index
> This scenario causes error on wicket 1.5-M2.1

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


[jira] Commented: (WICKET-3097) isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920773#action_12920773 ] 

Igor Vaynberg commented on WICKET-3097:
---------------------------------------

thanks for the testcase pedro, ive cleaned it up a bit and committed.

re 1.4 we decided not to apply it because it touches some very fragile parts of wicket and we would rather not make 1.4.x any less stable. the chances of this happening in 1.4.x are much slimmer then in 1.5. it requires a combination of metadata/temporary behavior/callback behavior all used within the same component. 1.5 uses metadata on every render so there the problem is a lot more prominent.

> isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3097
>                 URL: https://issues.apache.org/jira/browse/WICKET-3097
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M2.1
>            Reporter: Michal Kurtak
>            Assignee: Igor Vaynberg
>             Fix For: 1.5-M3
>
>         Attachments: patch.txt, temporarybehbug.zip
>
>
> My scenario:
> 1. Component has 2 behaviors: first is temporary and second is ajax behavior.
> 2. Url for Ajax behavior contains behavior's index (e.g.
> ../page?1-1.IBehaviorListener.1-form-text)
> 2. Temporary behavior is removed in detachBehaviors method.
> 3. Ajax request is invoking ListenerInterfaceRequestHandler and it's
> looking for behavior on non-existing index
> This scenario causes error on wicket 1.5-M2.1

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


[jira] Commented: (WICKET-3097) isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.

Posted by "Pedro Santos (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920752#action_12920752 ] 

Pedro Santos commented on WICKET-3097:
--------------------------------------

How about applying the Igor patch on 1.4?

> isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3097
>                 URL: https://issues.apache.org/jira/browse/WICKET-3097
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M2.1
>            Reporter: Michal Kurtak
>            Assignee: Igor Vaynberg
>             Fix For: 1.5-M3
>
>         Attachments: patch.txt, temporarybehbug.zip
>
>
> My scenario:
> 1. Component has 2 behaviors: first is temporary and second is ajax behavior.
> 2. Url for Ajax behavior contains behavior's index (e.g.
> ../page?1-1.IBehaviorListener.1-form-text)
> 2. Temporary behavior is removed in detachBehaviors method.
> 3. Ajax request is invoking ListenerInterfaceRequestHandler and it's
> looking for behavior on non-existing index
> This scenario causes error on wicket 1.5-M2.1

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


[jira] Updated: (WICKET-3097) isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.

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

Michal Kurtak updated WICKET-3097:
----------------------------------

    Attachment: temporarybehbug.zip

Quickstart project (from archetype) with bug attached

> isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3097
>                 URL: https://issues.apache.org/jira/browse/WICKET-3097
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M2.1
>            Reporter: Michal Kurtak
>         Attachments: temporarybehbug.zip
>
>
> My scenario:
> 1. Component has 2 behaviors: first is temporary and second is ajax behavior.
> 2. Url for Ajax behavior contains behavior's index (e.g.
> ../page?1-1.IBehaviorListener.1-form-text)
> 2. Temporary behavior is removed in detachBehaviors method.
> 3. Ajax request is invoking ListenerInterfaceRequestHandler and it's
> looking for behavior on non-existing index
> This scenario causes error on wicket 1.5-M2.1

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


[jira] Updated: (WICKET-3097) isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.

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

Pedro Santos updated WICKET-3097:
---------------------------------

    Attachment: patch.txt

test case preventing the bug

> isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3097
>                 URL: https://issues.apache.org/jira/browse/WICKET-3097
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M2.1
>            Reporter: Michal Kurtak
>            Assignee: Igor Vaynberg
>             Fix For: 1.5-M3
>
>         Attachments: patch.txt, temporarybehbug.zip
>
>
> My scenario:
> 1. Component has 2 behaviors: first is temporary and second is ajax behavior.
> 2. Url for Ajax behavior contains behavior's index (e.g.
> ../page?1-1.IBehaviorListener.1-form-text)
> 2. Temporary behavior is removed in detachBehaviors method.
> 3. Ajax request is invoking ListenerInterfaceRequestHandler and it's
> looking for behavior on non-existing index
> This scenario causes error on wicket 1.5-M2.1

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


[jira] Resolved: (WICKET-3097) isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.

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

Igor Vaynberg resolved WICKET-3097.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-M3
         Assignee: Igor Vaynberg  (was: Martin Grigorov)

> isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3097
>                 URL: https://issues.apache.org/jira/browse/WICKET-3097
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M2.1
>            Reporter: Michal Kurtak
>            Assignee: Igor Vaynberg
>             Fix For: 1.5-M3
>
>         Attachments: temporarybehbug.zip
>
>
> My scenario:
> 1. Component has 2 behaviors: first is temporary and second is ajax behavior.
> 2. Url for Ajax behavior contains behavior's index (e.g.
> ../page?1-1.IBehaviorListener.1-form-text)
> 2. Temporary behavior is removed in detachBehaviors method.
> 3. Ajax request is invoking ListenerInterfaceRequestHandler and it's
> looking for behavior on non-existing index
> This scenario causes error on wicket 1.5-M2.1

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


[jira] Commented: (WICKET-3097) isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920725#action_12920725 ] 

Hudson commented on WICKET-3097:
--------------------------------

Integrated in Apache Wicket 1.5.x #392 (See [https://hudson.apache.org/hudson/job/Apache%20Wicket%201.5.x/392/])
    isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.
Issue: WICKET-3097


> isTemporary behavior and ajax behavior together crashes with WicketRuntimeException: Couldn't find component behavior.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3097
>                 URL: https://issues.apache.org/jira/browse/WICKET-3097
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-M2.1
>            Reporter: Michal Kurtak
>            Assignee: Igor Vaynberg
>             Fix For: 1.5-M3
>
>         Attachments: temporarybehbug.zip
>
>
> My scenario:
> 1. Component has 2 behaviors: first is temporary and second is ajax behavior.
> 2. Url for Ajax behavior contains behavior's index (e.g.
> ../page?1-1.IBehaviorListener.1-form-text)
> 2. Temporary behavior is removed in detachBehaviors method.
> 3. Ajax request is invoking ListenerInterfaceRequestHandler and it's
> looking for behavior on non-existing index
> This scenario causes error on wicket 1.5-M2.1

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