tr:selectOneChoice: "unselectedLabel" still displays after selection has been 
made
----------------------------------------------------------------------------------

                 Key: TRINIDAD-865
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-865
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 1.0.4-core
            Reporter: Stephen Friedrich
            Priority: Minor


If I specify the "unselectedLabel" attribute of tr:selectOneChoice, then that 
label always displays in the list, even if a selection has been made.
This is how I use the tag:
<tr:selectOneChoice id="productGroup" label="Group" 
value="#{selectedProduct.productGroup}" required="true" unselectedLabel="Please 
choose">
    <s:selectItems value="#{productGroupQuery.dataModel}" var="group" 
label="#{group.name}"/>
</tr:selectOneChoice>

First it is simply ugly that the text "Please choose" is shown in the list.
More importantly if the user actually selects the "Please choose" item, then he 
gets a validation error message, because of the required="true".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to