As @Omar points, you forgot that closing tag, even I suppose it's a mistyping when posting the question. Appart from that, I've tested by my own and it works for me (Primefaces 3.5, Mojarra JSF 2.1.26). I made this SSCCE, which is fully functional (buttons inside form work, not the one outside).
@ManagedBean
@RequestScoped
public class DevTestController {
public class Parameter {
private String label;
private String value;
public Parameter(String label, String value) {
this.label = label;
this.value = value;
}
public String getLabel() {
return label;
}
public String getValue() {
return value;
}
public void setLabel(String label) {
this.label = label;
}
public void setValue(String value) {
this.value = value;
}
}
private Parameter selectedRow;
private List<Parameter> parameters = Arrays.asList(new Parameter("param1",
"p1"), new Parameter("param2", "p2"));
public DevTestController() {
}
public void doAction() {
System.out.println("Done");
}
public List<Parameter> getParameters() {
return parameters;
}
public Parameter getSelectedRow() {
return selectedRow;
}
public void setSelectedRow(Parameter selectedRow) {
this.selectedRow = selectedRow;
}
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:body>
<h:form>
<p:dataTable id="parameters" var="parameter"
value="#{devTestController.parameters}" editable="true"
editMode="cell" widgetVar="parameterTable"
selection="#{devTestController.selectedRow}" selectionMode="single"
rowKey="#{parameter}">
<f:facet name="header">
Parameters
</f:facet>
<p:column headerText="Parameter Name" style="width:30%">
<p:cellEditor>
<f:facet name="output">
<h:outputText value="#{parameter.label}" />
</f:facet>
<f:facet name="input">
<p:inputText id="parameterNameInput" value="#{parameter.label}"
style="width:96%" />
</f:facet>
</p:cellEditor>
</p:column>
<p:column headerText="Parameter Value" style="width:60%">
<p:cellEditor>
<f:facet name="output">
<h:outputText value="#{parameter.value}" />
</f:facet>
<f:facet name="input">
<p:inputText value="#{parameter.value}" style="width:96%"
label="Parameter Value" />
</f:facet>
</p:cellEditor>
</p:column>
<p:column headerText="Action" style="width:10%">
<p:commandButton value="Button in table"
action="#{devTestController.doAction()}" />
</p:column>
</p:dataTable>
<p:commandButton value="Button outside table"
action="#{devTestController.doAction()}" />
</h:form>
<p:commandButton value="Button outside form"
action="#{devTestController.doAction()}" />
</h:body>
</html>