myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Aranda (JIRA)" <>
Subject [jira] Created: (MYFACES-253) f:selectItem - itemDisabled attribute not working
Date Wed, 25 May 2005 20:15:00 GMT
f:selectItem - itemDisabled attribute not working

         Key: MYFACES-253
     Project: MyFaces
        Type: Bug
    Versions: 1.0.9 beta    
    Reporter: Bruno Aranda
    Priority: Minor

Kevin Roast has reported that itemDisabled is not working for f:selectItems in a h:selectOneRadio
component. This is the mail he has sent to the myfaces dev list:


I was just wondering if anyone else has seen this problem? I have a <h:selectOneRadio>
with several <f:selectItem> children. I would like to disable one of the child items
based on a value bound boolean property e.g.

   <h:selectOneRadio value="#{myBean.location}" layout="pageDirection">
      <f:selectItem itemValue="current" itemDisabled="#{myBean.fileName != null}" itemLabel="Use
copy in current location" />

      <f:selectItem itemValue="other" itemLabel="Use copy uploaded from my computer" />

So the important bit is: itemDisabled="#{myBean.fileName != null}" - no matter what value
is returned from the associated bean getFileName() method, the item is _never_ shown as disabled
in the browser.

Am I missing something here? Or is this a known issue? 


Of course, it is a bug. The HtmlRadioRenderer is ignoring the disabled attribute. I will provide
a patch in a few minutes...

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message