Tapestry
  1. Tapestry
  2. TAPESTRY-1522

@EventListener is not been called if target ids contains _

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.3
    • Component/s: XHR/dhtml/Ajax
    • Labels:
      None
    • Environment:
      MacOSX 10.4 / Firefox 2.0.3

      Description

      method is not being called if the target id of the EventListener contains _

      watch_menu doesn't work whereas watchMenu works

        Activity

        Hide
        Sergey Kashin added a comment - - edited

        I'm upgrade 4.1.2 to 4.1.3 SNAPSHOT

        when try to test previous functional by updating elements by EventListener
        id have not contain _ symbol

        found exception
        ---------------------------------------------------------------
        [ +/- ] Exception:
        java.lang.NullPointerException
        Stack Trace:

        • java.lang.String.endsWith(Unknown Source)
        • org.apache.tapestry.internal.event.impl.ComponentEventInvoker.invokeFormListeners(ComponentEventInvoker.java:107)
        • $IComponentEventInvoker_113dd5052af.invokeFormListeners($IComponentEventInvoker_113dd5052af.java)
        • org.apache.tapestry.form.FormSupportImpl.rewind(FormSupportImpl.java:625)
        • org.apache.tapestry.form.Form.renderComponent(Form.java:196)
        • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725)
        • org.apache.tapestry.services.impl.DojoAjaxResponseBuilder.render(DojoAjaxResponseBuilder.java:627)
          ---------------------------------------------------------------
          because componentId is null in ComponentEventInvoker.java:107

        add additional condition (componentId!=null)
        test again
        work's but not correct:
        now execute all methods with @EventListener in the Action and not analyze elements annotation tag

        downgrade to 4.1.2

        Show
        Sergey Kashin added a comment - - edited I'm upgrade 4.1.2 to 4.1.3 SNAPSHOT when try to test previous functional by updating elements by EventListener id have not contain _ symbol found exception --------------------------------------------------------------- [ +/- ] Exception: java.lang.NullPointerException Stack Trace: java.lang.String.endsWith(Unknown Source) org.apache.tapestry.internal.event.impl.ComponentEventInvoker.invokeFormListeners(ComponentEventInvoker.java:107) $IComponentEventInvoker_113dd5052af.invokeFormListeners($IComponentEventInvoker_113dd5052af.java) org.apache.tapestry.form.FormSupportImpl.rewind(FormSupportImpl.java:625) org.apache.tapestry.form.Form.renderComponent(Form.java:196) org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725) org.apache.tapestry.services.impl.DojoAjaxResponseBuilder.render(DojoAjaxResponseBuilder.java:627) --------------------------------------------------------------- because componentId is null in ComponentEventInvoker.java:107 add additional condition (componentId!=null) test again work's but not correct: now execute all methods with @EventListener in the Action and not analyze elements annotation tag downgrade to 4.1.2
        Hide
        Sergey Kashin added a comment - - edited

        confirm the problem with _ symbol - resolved

        Show
        Sergey Kashin added a comment - - edited confirm the problem with _ symbol - resolved

          People

          • Assignee:
            Jesse Kuhnert
            Reporter:
            Eric BIANCHI
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development