java 代码
- Select select = new Select();
- select.addItem(new SelectItem("1"));
- select.addItem(new SelectItem("2"));
- GridCell gridCell = ((GridCell) event.getSource());
- gridCell.getFacets().put("editMode", select);
- <e:gridtable id="gridTable"
- title="系统参数表"
- border="1"
- pageSize="-1"
- scrolling="none"
- binding="#{globalParametersModelBean.gridTable}"
- activeCellBgcolor="#FFEFD5">
- <e:dataTr>
- <e:gridTd id="name" labelText="参数名称" editable="false" align="center" width="75" value="#{ROW.name}" />
- <e:gridTd id="value" labelText="参数值" onstartedit="#{globalParametersModelBean.processCellStartEdit}">
- e:gridTd>
- e:dataTr>
- <h:messages styleClass="errors"/>
- e:gridtable>