ComboBox: If an initial value is provided, it is nuked if the combobox is not 
accessed
--------------------------------------------------------------------------------------

                 Key: RF-4591
                 URL: https://jira.jboss.org/jira/browse/RF-4591
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.2.2, 3.2.1
         Environment: Richfaces 3.2.2, myfaces 1.2.4, tomcat 6.0.18, Firefox 
3.0.3
            Reporter: Gilles Demarty


The bugs seems to be introduced by the commit for RF 3.2.1 
The following code produce the error: 

bugComboBoxNoValue.jsp

<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j"; prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich"; prefix="rich"%>
<html>
        <head>
                <title></title>
        </head>
        <body>
                <f:view>
                        <h:form>
                        <rich:comboBox value="#{bean.valueCb}" />
                        <h:outputText value="#{bean.valueCb}" />
                        <h:commandButton />
                        </h:form>
                </f:view>
        </body> 
</html>  



The bug is caused by the <input type="hidden"> not properly filled with the 
initial value.
Bug is still present in Richfaces snapshot 3.3.0 2008-10-10




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to