You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ben Dotte (JIRA)" <de...@tapestry.apache.org> on 2007/06/04 21:32:28 UTC
[jira] Created: (TAPESTRY-1535) Suggest component doesn't work in a
loop
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
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="lists@Suggest" 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAPESTRY-1535) Suggest component doesn't work in
a loop
Posted by "Ben Dotte (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501328 ]
Ben Dotte commented on TAPESTRY-1535:
-------------------------------------
In the Tacos version, we always had to specify direct="false" whenever we used the autocompleter in a loop but I don't see that parameter anymore in the new Tapestry version (not sure if that matters anymore or not).
> 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
>
> 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="lists@Suggest" 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Resolved: (TAPESTRY-1535) Suggest component doesn't work in
a loop
Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
[ 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="lists@Suggest" 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org