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

Jesse Kuhnert resolved TAPESTRY-1535.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.1.2
         Assignee: Jesse Kuhnert

> Suggest component doesn't work in a loop
> ----------------------------------------
>
>                 Key: TAPESTRY-1535
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1535
>             Project: Tapestry
>          Issue Type: Bug
>          Components: XHR/dhtml/Ajax
>    Affects Versions: 4.1.2
>         Environment: Tapestry 4.1.2 snapshot from 6-4, WinXP, Firefox 2
>            Reporter: Ben Dotte
>            Assignee: Jesse Kuhnert
>             Fix For: 4.1.2
>
>
> When the Suggest component is used in a loop, the dropdown of available 
> values appears for the first textfield in the loop after you begin typing, 
> but it does not appear for any of the remaining textfields. Here is some code 
> that demonstrates the problem:
> .html:
> <form jwcid="@Form">
>       <for jwcid="@For" source="ognl:autocompleterLists" value="ognl:curList">
>               <span jwcid="@FieldLabel" field="component:lists" />
>               <input jwcid="[EMAIL PROTECTED]" displayName="ognl:'list' + 
> curList" updateElementClass="auto_complete" listSource="ognl:searchList" 
> listener="listener:searchTheList" parameters="ognl:curList" 
> value="ognl:curValue" />
>               <br />
>       </for>
> </form>
> .java:
> public abstract int getCurList();
>       
> public abstract String getCurValue();
>       
> public abstract List<String> getSearchList();
> public abstract void setSearchList(List<String> values);
>       
> public List<Integer> getAutocompleterLists()
> {
>       return Arrays.asList(1, 2);
> }
>       
> public void searchTheList(String searchString, int theList) 
> {
>       if (theList == 1)
>       {
>               setSearchList(Arrays.asList("blah", "test", "joeblow"));
>       }
>       else
>       {
>               setSearchList(Arrays.asList("today", "tomorrow", "yesterday"));
>       }
> }

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to