You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org> on 2008/03/09 06:39:46 UTC

[jira] Created: (TAPESTRY-2250) EventListener in components that get included in a page within a loop are triggered incorrectly

EventListener in components that get included in a page within a loop are triggered incorrectly
-----------------------------------------------------------------------------------------------

                 Key: TAPESTRY-2250
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2250
             Project: Tapestry
          Issue Type: Bug
            Reporter: Andreas Andreou


In a simple component (@Selector) that has a PropertySelection (named data) and this:

    @EventListener(targets="data", events="onchange")
    public void doSelect() { System.out.println("Selected: " + getValue()); }

and in a page that includes this let's say 3 times using @For:

<form jwcid="@Form">
    <span jwcid="@For" source="ognl:{1,2,3}">
        <span jwcid="@Selector"/>
   </span>
</form> 

Changing any select correctly starts an ajax request, but the value printed is always the one of the last select.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-2250) EventListener in components that get included in a page within a loop are triggered incorrectly

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Andreou updated TAPESTRY-2250:
--------------------------------------

    Affects Version/s: 4.1.5

> EventListener in components that get included in a page within a loop are triggered incorrectly
> -----------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2250
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2250
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.5
>            Reporter: Andreas Andreou
>         Attachments: tap-2250.zip
>
>
> In a simple component (@Selector) that has a PropertySelection (named data) and this:
>     @EventListener(targets="data", events="onchange")
>     public void doSelect() { System.out.println("Selected: " + getValue()); }
> and in a page that includes this let's say 3 times using @For:
> <form jwcid="@Form">
>     <span jwcid="@For" source="ognl:{1,2,3}">
>         <span jwcid="@Selector"/>
>    </span>
> </form> 
> Changing any select correctly starts an ajax request, but the value printed is always the one of the last select.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-2250) EventListener in components that get included in a page within a loop are triggered incorrectly

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Andreou updated TAPESTRY-2250:
--------------------------------------

    Attachment: tap-2250.zip

> EventListener in components that get included in a page within a loop are triggered incorrectly
> -----------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2250
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2250
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.5
>            Reporter: Andreas Andreou
>         Attachments: tap-2250.zip
>
>
> In a simple component (@Selector) that has a PropertySelection (named data) and this:
>     @EventListener(targets="data", events="onchange")
>     public void doSelect() { System.out.println("Selected: " + getValue()); }
> and in a page that includes this let's say 3 times using @For:
> <form jwcid="@Form">
>     <span jwcid="@For" source="ognl:{1,2,3}">
>         <span jwcid="@Selector"/>
>    </span>
> </form> 
> Changing any select correctly starts an ajax request, but the value printed is always the one of the last select.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org