Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with <h:commandButton>

 
Aditi Gandy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am developing a left Navigation Panel of a website. In that i have inserted a search buttion, but, now i don't want to keep that button, want to remove it.

Problem is:
When i remove search button, my other navigation control buttons are not working.....It is a very strange problem....I don't know how to solve it. I want to remove my search button and also want my other buttons work normally.

Can any one please help me. I am pasting my code for your reference.

Code:


Please help.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is the form submitted without the submit button?

-Cameron McKenzie
 
Zaeed McColin
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do you want remove the button?
add "rendered" attribute for <h:commandButton/> and control it with boolean value by a method in managed bean
example

in Class managed bean add a method for controlling visibility of the button
 
Aditi Gandy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ArAsh Dex ,

Thanks for your reply.
I have tried hardcoding rendered="false" for the button. After doing so, button did not display on the browser but, my other buttons for other pages are not working again......same problem.

I thought of implementing your bean code. I am confussed and not able to understand what is the meaning of
-->this.att="Okay".....Okay stands for what??

Can you please help me.... :(
 
Aditi Gandy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Any one please help me.... :(
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic