-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major
-
Affects Version/s: 1.1.1, 1.0.22
-
None
-
Environment:Java SE 5.0 Update 10
Tomcat 5.5.20
Maven2:
<dependency>
<groupId>org.seasar.jsf</groupId>
<artifactId>s2-jsf</artifactId>
<version>1.0.22</version>
<type>jar</type>
</dependency>
Show » Java SE 5.0 Update 9 Tomcat 5.5.20 Maven2: <dependency> <groupId>org.seasar.jsf</groupId> <artifactId>s2-jsf</artifactId> <version>1.0.19</version> <type>jar</type> </dependency>Java SE 5.0 Update 10 Tomcat 5.5.20 Maven2: <dependency> <groupId>org.seasar.jsf</groupId> <artifactId>s2-jsf</artifactId> <version>1.0.22</version> <type>jar</type> </dependency> Show » Java SE 5.0 Update 9 Tomcat 5.5.20 Maven2: <dependency> <groupId>org.seasar.jsf</groupId> <artifactId>s2-jsf</artifactId> <version>1.0.19</version> <type>jar</type> </dependency>
要望:
ローカライズされたnullラベルを表示したい
→nullLabel属性にもValueBinding可能にしてほしい
指定方法:
s2jsf-examples: selectOneMenu.html:
<select m:value="#
{selectOneMenuDto.aaa}" m:required="true"
m:nullLabel="#
"
m:label="Aaa" size="2">
<option>Please select</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select><br />
patch:
— HtmlSelectTagBase.java.org Thu Feb 15 15:26:07 2007
+++ HtmlSelectTagBase.java Thu Feb 15 15:32:57 2007
@@ -108,9 +108,14 @@
child.setItemLabel(itemLabel);
}
if (nullLabel != null) {
- child.setNullLabel(nullLabel);
+ String nullLabelVb = nullLabel;
+ if (isValueReference(nullLabel)) { + Object vb = BindingUtil.resolveBinding(nullLabel); + nullLabelVb = vb.toString(); + }+ child.setNullLabel(nullLabelVb);
}
component.getChildren().add(child);
}
}
-}
\ No newline at end of file
+}