Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.2.6-core
-
None
-
JSF RI 1.2, Trinidad 1.2 trunk
Description
If tr:selectOneChoice is outside a h:form, it resets value used in value="#{}". Test case:
JSP snippet:
<tr:selectOneChoice value="#
{testBean.property}" unselectedLabel="(not selected)">
<f:selectItem itemValue="value1" itemLabel="Item 1"/>
</tr:selectOneChoice>
<h:form> <!-- tr:selectOneChoice is not in the form -->
<h:commandButton value="Ok" />
</h:form>
managed bean in session scope:
public class TestBean {
private String property = "value1";
public String getProperty()
{ return property; }public void setProperty(String property)
{ this.property = property; }}
Steps to reproduce problem:
1) Display jsp page - it shows "Item 1" in combobox
2) Click on "Ok" button
3) Value in combobox will change to "(not selected)"