You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Scott O'Bryan (JIRA)" <de...@myfaces.apache.org> on 2008/05/20 15:20:55 UTC
[jira] Updated: (TRINIDAD-930) tr:selectOneChoice resets value if
not in form
[ https://issues.apache.org/jira/browse/TRINIDAD-930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott O'Bryan updated TRINIDAD-930:
-----------------------------------
Status: Open (was: Patch Available)
> tr:selectOneChoice resets value if not in form
> ----------------------------------------------
>
> Key: TRINIDAD-930
> URL: https://issues.apache.org/jira/browse/TRINIDAD-930
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 1.2.6-core
> Environment: JSF RI 1.2, Trinidad 1.2 trunk
> Reporter: Martin Koci
> Priority: Critical
> Fix For: 1.2.5-core
>
> Attachments: SimpleSelectOneRenderer.java.patch
>
>
> 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)"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.