You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2008/11/26 17:52:38 UTC

[jira] Resolved: (WW-2248) No way to include an empty option in autocompleter

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

Musachy Barroso resolved WW-2248.
---------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.2.x)
                   2.1.3

EMpty option only works when the options are not loaded dynamically, I just tried this:

<sx:autocompleter list="{'apple','banana','grape','pear'}" emptyOption="true" />

and the output is:

<select visibledownarrow="true" keyname="nullKey" dojotype="struts:ComboBox">
<option value=""/>
<option value="apple">apple</option>
<option value="banana">banana</option>
<option value="grape">grape</option>
<option value="pear">pear</option>
</select>

> No way to include an empty option in autocompleter
> --------------------------------------------------
>
>                 Key: WW-2248
>                 URL: https://issues.apache.org/struts/browse/WW-2248
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.1.0
>            Reporter: Benjamin McCann
>             Fix For: 2.1.3
>
>
> I could not figure out how to include an empty option in my autocompleter.  Eclipse did not show the emptyOption attribute being present as it was in the 2.0.x release series and setting emptyOption="true" had no effect.

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