-
1. richfaces 4 with jsf 2.1, rich:dropdownmenu like rich:select
lfryc May 6, 2011 5:57 AM (in response to zakim2000)Hello Zakarias, if there is problem with rich:select rendered code, could you please report a issue and possibly show your sample code (page + bean + generated code)?
https://issues.jboss.org/browse/RF
Thanks,
- Lukas
-
2. richfaces 4 with jsf 2.1, rich:dropdownmenu like rich:select
lfryc May 6, 2011 5:59 AM (in response to lfryc)You are trying to achieve similar concept like in RichFaces Showcase?
-
3. richfaces 4 with jsf 2.1, rich:dropdownmenu like rich:select
zakim2000 May 6, 2011 6:38 AM (in response to lfryc)Yeah, something like that, but with a combobox.
Option1, 2 and 3 should be in a combobox.
-
4. Re: richfaces 4 with jsf 2.1, rich:dropdownmenu like rich:select
zakim2000 May 6, 2011 6:58 AM (in response to lfryc)yeah, simple as this
xhtml codefragment:
< rich:dataTable value="#{moneyPageBean.dataTable}"
var="row" id ='data' rowKeyVar ="idx"style ="width:730px"styleClass="moneyTable">< rich:column colspan="5">
<rich:select value="{row.tettipaz}">
< f:selectItems value="#{moneyPageBean.itemTypeCombo}">
</rich:select>
...where {row.tettipaz} is a Long value
bean code fragment:
public List<SelectItemGroup> getItemTypeCombo() {
itemTypeCombo = new ArrayList<SelectItemGroup>();
List<ItemGroup> itemGroups = itemGroupService .selectAllItemGroup();
for (ItemGroup itemGroup : itemGroups) {
SelectItemGroup sig = new SelectItemGroup();
sig.setLabel(itemGroup.getNev());
List<ItemType> itemSubTypes = itemTypeService .itemTypesByItemGroupId(itemGroup.getTetcsopaz(),
getUser().getFelaz());
SelectItem[] subItems = new SelectItem[itemSubTypes.size()];
for (int i = 0; i < itemSubTypes.size(); i++) {
subItems[i] = new SelectItem(itemSubTypes.get(i).getTettipaz(), itemSubTypes.get(i).getNev());
}
sig.setSelectItems(subItems);
itemTypeCombo .add(sig);
}
return itemTypeCombo ;
}
And only the selectitemgroup labels are rendered in the resulting combobox. The selectitems are not visible.