• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems with h:selectOneRadio

robert isidorson
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a component containing timer objects, that are date objects formatted to SelectItems.

<h:selectOneRadio value="#{timer.selectedTimer}" layout="pageDirection"
<f:selectItems value="#{timer.timers}" />

In backing bean:
public List<SelectItem> getTimers() {
DateFormat ft = new SimpleDateFormat("HH:mm");

for(QueueTimer x : timers) {
itemList.add( new SelectItem( ft.format(x.getTimer()),
return itemList;

On the page i then have one input field and one commandbutton:
<h:inputText value="#{timer.newTime}" size="5"><f:convertDateTime pattern="HH:mm"/></h:inputText>
<h:commandButton action="#timer.delete"/>

The problem: when i clicking on delete i get a converter error:
Conversion Error setting value '11:26' for 'null Converter'

My guess is that this is related to that <h:selectRadio contains SelectItems and it tries to convert those to date objects? but i dont know, anyone?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic