You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "kanthimathinathan (JIRA)" <de...@tapestry.apache.org> on 2008/01/22 16:46:34 UTC

[jira] Updated: (TAPESTRY-2070) EventListener on checkbox components within a @For loop - Issues

     [ https://issues.apache.org/jira/browse/TAPESTRY-2070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

kanthimathinathan updated TAPESTRY-2070:
----------------------------------------

    Fix Version/s: 4.1.4

> EventListener on checkbox components within a @For loop - Issues
> ----------------------------------------------------------------
>
>                 Key: TAPESTRY-2070
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2070
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Annotations
>    Affects Versions: 4.1.3
>         Environment: OS : Windows XP. Softwares : Eclipse SDK 3.1.0, MyEclipse 4.0.0, JDK 1.5, JBoss application server. HardWare : 80GB HDD, 2GB RAM
>            Reporter: kanthimathinathan
>            Priority: Critical
>             Fix For: 4.1.4
>
>
> I want to enable / disable a button on clicking a checkbox in the screen. i am trying the below code Snippet
> HTML template code snippet 
>  <tr jwcid="@For" source="ognl:lists" index="ognl:listIndex" value="ognl:listData">
>         <td  align="left">
>                   <form jwcid="@Form" style="margin:0px;padding:0px;">            
>                     <span jwcid="checkbox@Checkbox" id="ognl:listIndex" value="ognl:checkedList[listIndex]" />
>                   </form>              
>         </td>        
>   </tr>
> Java code snippet
>  @EventListener(events = "onclick", targets = {"checkbox"})
>   public void updateComponents(IRequestCycle cycle, BrowserEvent event)
>   {   
>    
>       cycle.getResponseBuilder().updateComponent("button1");
>   }
> Issue 1: Eventlistener is not called for last checkbox and so button is not enabled / disabled as expected.
> Issue 2: on clicking 2nd or subsequent checkboxes in the UI screen, Button is enabled/disabled as expected. However AJAX requests sent is equivalent to the no of checkboxes(or rows) in the screen, which cause performance issues. 
> Note : On clicking 1st checkbox, buttons are enabled/disabled as expected with just 1 Ajax request.
> please help me to resolve these issues.
> Thanks,
> Kanthi.

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