hi everyone,
I have a problem regarding rendered attribute.I used model panel to create,save records.first of all I have used extended data table for list page
when my page loads the list will displayed when edit,new and delete command links.when i click on edit button of particular row it will display the correspinding row in model panel with save,update,cancel buttons.here is my problem when i click on new button it will display all the sava,update buttons.
but my requirement is when i click on edit button it display update and when i click on new button it will display save button.For this i know we have to use rendered tag.But i dont know how to use and what to get.
here is my code
<a4j:commandButton value="Update" action="#{countrySS.update}"
oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('editPanel')}.hide();" />
<a4j:commandButton value="Save" action="#{countrySS.persist}"
oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('editPanel')}.hide();" />
<a4j:commandButton value="CANCEL" action="#{countrySS.cancel}"
oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('editPanel')}.hide();" />
thank u