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:22:55 UTC
[jira] Commented: (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:comment-tabpanel&focusedCommentId=12598294#action_12598294 ]
Scott O'Bryan commented on TRINIDAD-930:
----------------------------------------
I'm not sure that this is a valid issue and the assumed contract on UIXEditableValue.validate might break as a result of this. On the other hand this may allow us to better handle multiple forms as well. I would open up a discussion on the dev list about this patch and see if others have any input.
> 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.