I have this JSF commandButton which I use to delete rows from table:
<h:commandButton id="deleterow" value="HiddenDelete" action="#{BatteryProfileTabGeneralController.saveData}" style="display:none" update="growl">
<f:ajax render="@form" execute="@form"></f:ajax>
</h:commandButton>
In Netbeans 7.3 I get this error:
The attribute update is not defined in the component commandButton
I use update
attribute to display message when I successfully delete row. Can I replace this attribute with similar attribute?
update
is a primefaces only attribute, which can't be used on stock JSF components (like the<h:commandButton/>
you have there). Therender
attribute on the<f:ajax/>
should be sufficient to achieve the desired effect – kolossus