hi all..

   I'm new to faces and having a little trouble setting a value in a list. 
The list is part of an editable table.  The table displays fine and I have
an af:inputText that is being populated fine as well.  I have 2
selectOneChoice dropdowns and neither is getting set.  Below is one of the
selectOneChoice elements.  I hardcoded the 'value' attribute while
debugging.  The 'value' should be set to value="#{row.groupId}".  Both
scenarios are not working.  If I use just <h:outputText
value="#{row.status}"></h:outputText> the value is displayed correctly.

 Below is my code:

 xmlns:af="http://xmlns.oracle.com/adf/faces";

<af:column sortable="true" sortProperty="group">
                <f:facet name="header">
                    <h:outputText value="#{messages['group']}"/>
                </f:facet>
                <af:selectOneChoice 
                        id="existingStandardGroupId" 
                        value="1"
                    required="false" 
                    label="#{messages['group.id']}:"
                    readOnly="false" unselectedLabel="">
                    <c:if test="${!empty criteriaGroupIdBackingList}">
                        <f:selectItems value="#{criteriaGroupIdBackingList}"
/>
                    </c:if>
                </af:selectOneChoice>
      </af:column>


The source html:

<!-- Start: oracle.adf.Column["_id69"] -->

                <td class="x2m x60"><!-- Start:
oracle.adf.SelectOne["existingStandardGroupId"] -->
                  <select id="_id54:_id55:1:existingStandardGroupId"
name="_id54:_id55:1:existingStandardGroupId" class="x6">
                    <option value=""></option>
                    <option value="0">ASTM 31.15</option>
                    <option value="1">ASTM 31.25</option>
                    <option value="2">ASTM 31.35</option>
                    <option value="3">BRIDG</option>
                    <option value="4">CDISC ADaM</option>
                
           
Error from server log:
13:46:30,260 INFO  [STDOUT] Apr 8, 2008 1:46:30 PM
oracle.adfinternal.view.faces.renderkit.core.xhtml.SimpleSelectOneRenderer
_getSelectedIndex
WARNING: Could not find selected item matching value "1" in
CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=existingStandardGroupId]
13:46:30,267 INFO  [STDOUT] Apr 8, 2008 1:46:30 PM
oracle.adfinternal.view.faces.renderkit.core.xhtml.SimpleSelectOneRenderer
_getSelectedIndex
WARNING: Could not find selected item matching value "1" in
CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=existingStandardGroupId]

any ideas/help is greatly appreciated...

thanks 



-- 
View this message in context: 
http://www.nabble.com/af%3AselectOneChoice-tp16572647p16572647.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to