Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rset button

jyothi sanka
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have add,delete,reset buttons on my jsf page. I want to disable deelete button while add button is enabled and delete button has to be enabled when I click on reset button.

<h anelGroup><h:commandButton type="submit" value="AddHardware"
rendered="#{!hardwareCtrl.edit}" />

<h:commandButton value="Save" actionListener="#{hardwareCtrl.saveHardware}" rendered="#{hardwareCtrl.edit}" /> <h utputText value=" " escape="false" /> <h utputText value=" " escape="false" /> <h:commandButton value="Delete" actionListener="#{hardwareCtrl.deleteHardware}" disabled="#{empty}" /> <h utputText value=" " escape="false" /> <h:commandButton value="Reset" action="#{hardwareCtrl.reset}" rendered="#{hardwareCtrl.edit}" /> </h anelGroup>

I have reset() in my controller class like this:
public void reset() {
model = null;
edit = true;}

when I click on reset button the delete button going to be disabled state. but I want to keep delete button has to be in enabled mode. can you give any suggestions?
thank you
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic