myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Aranda (JIRA)" <myfaces-...@incubator.apache.org>
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
         URL: http://issues.apache.org/jira/browse/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:

<snip>

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" />
   </h:selectOneRadio>

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? 

</snip>

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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message