myfaces-dev mailing list archives

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

Bruno Aranda updated MYFACES-253:

    Attachment: HtmlRadioRenderer_patch.txt

Here it is the patch :-)

> f:selectItem - itemDisabled attribute not working
> -------------------------------------------------
>          Key: MYFACES-253
>          URL:
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>     Reporter: Bruno Aranda
>     Priority: Minor
>  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:
For more information on JIRA, see:

View raw message