[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-dev
Subject: [jira] [Commented] (WW-4525) s:select with an inside iterator through option group
From: "Lukasz Lenart (JIRA)" <jira () apache ! org>
Date: 2015-07-29 8:39:04
Message-ID: JIRA.12844669.1436800696000.316678.1438159144650 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/WW-4525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14645706#comment-14645706 \
]
Lukasz Lenart commented on WW-4525:
-----------------------------------
But that won't work and suggestion is wrong or maybe incomplete.
> s:select with an inside iterator through option group
> -----------------------------------------------------
>
> Key: WW-4525
> URL: https://issues.apache.org/jira/browse/WW-4525
> Project: Struts 2
> Issue Type: Bug
> Reporter: Alireza Fattahi
> Fix For: 2.3.x
>
>
> Please look at below code:
> {code:title=Bar.jsp|borderStyle=solid}
> <s:select id="toAccount" name="destinationKnownAccount"
> list="destinationKnownAccounts" listKey="accountNo"
> listValue="%{ farsiFirstName + \" \" + farsiLastName }" >
> <s:iterator value="destinationKnownAccounts">
> <optgroup label="${farsiFirstName}">
> <option value="${accountNo}"> ${accountNo}</option>
> </optgroup>
> </s:iterator>
> </s:select>
> {code}
> The optiongroup will be displayed outside select as
> {code:title=Bar.jsp|borderStyle=solid}
> <optgroup label="محمد"> <option value="012222946005"> 012222946005</option>
> </optgroup>
> <optgroup label="حامد"> <option value="0333783051000"> 0333783051000</option>
> </optgroup>
> <optgroup label="سارا"> <option value="0100005087000"> 0100005087000</option>
> </optgroup>
> <select name="destinationKnownAccount" id="toAccount" >
> <option value="" > </option>
> <option value="012222946005">012222946005 محمد رادان</option>
> <option value="0333783051000">0333783051000 حامد پیروزفر</option>
> <option value="0100005087000">0100005087000 سارا حاتمی</option>
> </select>
> {code}
> I tried other ways, even copy a static option group but same result, only \
> s:optgroup workes fine and generates the option group inside option
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic