Author: pbenedict
Date: Thu Jun 28 22:23:32 2007
New Revision: 551797
URL: http://svn.apache.org/viewvc?view=rev&rev=551797
Log:
STR-2072: Add title and titleKey examples for html:option
Modified:
struts/struts1/trunk/apps/el-example/src/main/java/org/apache/struts/webapp/el/exercise/ApplicationResources.properties
struts/struts1/trunk/apps/el-example/src/main/webapp/html-select.jsp
Modified:
struts/struts1/trunk/apps/el-example/src/main/java/org/apache/struts/webapp/el/exercise/ApplicationResources.properties
URL:
http://svn.apache.org/viewvc/struts/struts1/trunk/apps/el-example/src/main/java/org/apache/struts/webapp/el/exercise/ApplicationResources.properties?view=diff&rev=551797&r1=551796&r2=551797
==============================================================================
---
struts/struts1/trunk/apps/el-example/src/main/java/org/apache/struts/webapp/el/exercise/ApplicationResources.properties
(original)
+++
struts/struts1/trunk/apps/el-example/src/main/java/org/apache/struts/webapp/el/exercise/ApplicationResources.properties
Thu Jun 28 22:23:32 2007
@@ -13,3 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+select.single.9=Nine
\ No newline at end of file
Modified: struts/struts1/trunk/apps/el-example/src/main/webapp/html-select.jsp
URL:
http://svn.apache.org/viewvc/struts/struts1/trunk/apps/el-example/src/main/webapp/html-select.jsp?view=diff&rev=551797&r1=551796&r2=551797
==============================================================================
--- struts/struts1/trunk/apps/el-example/src/main/webapp/html-select.jsp
(original)
+++ struts/struts1/trunk/apps/el-example/src/main/webapp/html-select.jsp Thu
Jun 28 22:23:32 2007
@@ -81,19 +81,19 @@
<th align="right">Single Select Allowed:</th>
<td align="left">
<html-el:select property="singleSelect" size="10">
- <html-el:option value="Single 0">Single 0</html-el:option>
- <html-el:option value="Single 1">Single 1</html-el:option>
- <html-el:option value="Single 2">Single 2</html-el:option>
- <html-el:option value="Single 3"
+ <html-el:option value="Single 0" title="0">Single
0</html-el:option>
+ <html-el:option value="Single 1" title="1">Single
1</html-el:option>
+ <html-el:option value="Single 2" title="${1+1}">Single
2</html-el:option>
+ <html-el:option value="Single 3" title="3"
disabled="${!empty pageScope}">
Single 3
</html-el:option>
- <html-el:option value="Single 4">Single 4</html-el:option>
- <html-el:option value="Single 5">Single 5</html-el:option>
- <html-el:option value="Single 6">Single 6</html-el:option>
- <html-el:option value="Single 7">Single 7</html-el:option>
- <html-el:option value="Single 8">Single 8</html-el:option>
- <html-el:option value="Single 9" styleId="flork">Single
+ <html-el:option value="Single 4" title="${2+2}">Single
4</html-el:option>
+ <html-el:option value="Single 5" title="5">Single
5</html-el:option>
+ <html-el:option value="Single 6" title="${3+3}">Single
6</html-el:option>
+ <html-el:option value="Single 7" title="7">Single
7</html-el:option>
+ <html-el:option value="Single 8" title="${4+4}">Single
8</html-el:option>
+ <html-el:option value="Single 9"
titleKey="select.single.9" styleId="flork">Single
9</html-el:option>
</html-el:select>
</td>