]
Ilya Shaikovsky resolved RF-4211.
---------------------------------
Resolution: Duplicate Issue
more general issue filled.
inplaceSelect seems to ignore disabled property in SelectItem
-------------------------------------------------------------
Key: RF-4211
URL:
https://jira.jboss.org/jira/browse/RF-4211
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.2.1
Reporter: Greg Zoller
Assignee: Ilya Shaikovsky
Priority: Critical
Fix For: Wishes
Sample code below populating a list of SelectItems for inplaceSelect widget:
for( ShipFromInfo info : item.getShipFromList() ) {
SelectItem select = new SelectItem(info.getShipFromLoc(), info.getShipFromLoc()+"
- "+item.getShipFromInventory());
if( info.isSpacer() ) {
select.setDisabled(true); // disable view-only, unselectable items
}
list.add(select);
}
Using the list of SelectItems generated by this code I would expect that when
inplaceSelect's popup display rendered the disabled elements would be view-only, i.e.
unselectable. This is the behavior you get when using a vanilla JSF input selectonemenu
widget.
Currently Richfaces is displaying all items, disabled or not, to render the same and be
selectable.
As a huge plus it would be great if there was also a inplaceSelect property that let me
set the style class for the rendered disabled items. This would be a great way to create
informative separators in the list.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: