This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes Text Box after pressing button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Text Box after pressing button" Watch "Text Box after pressing button" New topic

Text Box after pressing button

anwesh maity

Joined: Oct 31, 2007
Posts: 20
how to view a textbox on the same web page after pressing of a command button in jsf???
[ October 31, 2007: Message edited by: Mark Spritzler ]
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17250

What exactly do you mean. If you press a "command" button, it most likely will submit the form, and therefore send a request, you can always have your navigation such that it goes back to the same page. Also you can have the Button call be an Ajax call if you want. What is the actual behavior that you want to see?


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
gunjan bohra
Ranch Hand

Joined: Mar 24, 2004
Posts: 40
You can simply done through <navigation-rule> tag in faces-config.xml ...
Mentioned the rule do your work ...enjoy
subject: Text Box after pressing button