[
http://www.stripesframework.org/jira/browse/STS-221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Gunter closed STS-221.
--------------------------
> 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://www.stripesframework.org/jira/browse/STS-221
> Project: Stripes
> Issue Type: Bug
> Components: Tag Library
> Affects 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development