• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with <h:commandButton>

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How is the form submitted without the submit button?

-Cameron McKenzie
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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