You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "sean schofield (JIRA)" <my...@incubator.apache.org> on 2005/05/26 01:10:53 UTC

[jira] Closed: (MYFACES-253) f:selectItem - itemDisabled attribute not working

     [ http://issues.apache.org/jira/browse/MYFACES-253?page=all ]
     
sean schofield closed MYFACES-253:
----------------------------------

     Resolution: Fixed
    Fix Version: Nightly Build

Thanks Bruno.  Keep those patches coming :-)

> 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
>     Assignee: sean schofield
>     Priority: Minor
>      Fix For: Nightly Build
>  Attachments: HtmlRadioRenderer_patch.txt
>
> 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