6 Replies Latest reply: Mar 16, 2012 6:47 PM by Fidel Andrés Vargas Londoño RSS

noSelectionLabel failing to produce noSelectionValue markup on 2.2.1.CR1

Robin Young Newbie

Since upgrading to 2.2.1.CR1 the following section of page no longer produces the same markup as before and consequentially fails


<h:selectOneListbox size="1" value="#{tonerSearchService.tonerMachineType}">
  <s:selectItems label="#{type.label}" noSelectionLabel="Please select..." value="#{tonerSearchService.getTypes()}" var="type"/>
  <a4j:support ajaxSingle="true" event="onchange" eventsQueue="commonQueue" limitToList="true" reRender="modelDropDown,oemselect"/>
  <s:convertEnum/>
</h:selectOneListbox>



this used to produce


<select ...>
  <option value="org.jboss.seam.ui.NoSelectionConverter.noSelectionValue" selected="selected">Please select...</option>
  <option value="LASER">Laser</option>
  <option value="INKJET">Inkjet</option>
</select>



but now produces


<select ...>
  <option selected="selected">Please select...</option>
  <option value="LASER">Laser</option>
  <option value="INKJET">Inkjet</option>
</select>



where no value is given to the noSelectLabel option.


The browser now submits "Please select..." rather than "org.jboss.seam.ui.NoSelectionConverter.noSelectionValue".


This is no longer seen as a match by the noSeelctionConveter and the value is passed onto the enumConverter which chokes on it.