Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

rset button  RSS feed

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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!