[ http://mc4j.org/jira/browse/STS-221?page=all ]
     
Tim Fennell resolved STS-221:
-----------------------------

    Resolution: Not a Bug

Since I clearly believe this is how it is intended to function and I have 
received no response from the opener of this bug, I'm closing it as Not a bug.

> stripes:select tag has an error on making option item selected when is used 
> with collection. It is unable to make selection
> ---------------------------------------------------------------------------------------------------------------------------
>
>          Key: STS-221
>          URL: http://mc4j.org/jira/browse/STS-221
>      Project: Stripes
>         Type: Bug

>   Components: Tag Library
>     Versions: Release 1.3.2
>  Environment: Mac OSX, Java 5, Stripes 1.3.2
>     Reporter: Remis B
>     Assignee: Tim Fennell
>     Priority: Blocker

>
> Code snipet below does not work, value attribute from select tag is ignored 
> on option tag.
>  <stripes:select name="currency" id="fldCurrencyCode" 
> value="${accountSettings.currencyCode}">
>      <stripes:options-collection collection="${utilAction.currencies}" 
> value="currencyCode" label="symbol"/>
>  </stripes:select>
> I'm not very sure have I done it correctly but it works for me. Below is 
> updated code for InputSelectTag.isOptionSelected() method.
> public boolean isOptionSelected(Object optionValue, boolean selectedOnPage) 
> throws StripesJspException {
>     if (this.value != null) {
>             return isItemSelected(optionValue, this.value);
>     } else if (this.selectedValueOrValues != null) {
>             return isItemSelected(optionValue, this.selectedValueOrValues);
>     } else {
>             return selectedOnPage;
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to