![]() |
#2
支离破碎2007-05-21 09:08
|
public String delete(int id) throws SQLException{
int res=sManager.DelStudent(id);
if(res==1){
List list=sManager.GetStudent();
DataStudent.setWrappedData(list);
}
return null;
}
这是我的删除方法,
<h:column>
<f:facet name="header">
<h:commandButton id="delButton" value="删除" action="#{DataOperAct.delete}"/>
</f:facet>
</h:column>
这是我的页面的按钮,怎么才能把id传到delete中呢