OATableBean table = (OATableBean)webBean.findChildRecursive("LineTable"); table.setInsertable(true); table.setAutoInsertion(false); // we need to handle the button ourselves table.setAttributeValue(ALL_DETAILS_ENABLED_ATTR, Boolean.TRUE); table.setSelectionDisabledBindingAttr("DisabledFlag");//DisabledFlag是当前VO行中的列,其值为Y或者N,Y为不可选择,N为可选择