File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Javascript, h:panelGroup Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Javascript, h:panelGroup" Watch "Javascript, h:panelGroup" New topic
Author

Javascript, h:panelGroup

Bishal Ghimire
Greenhorn

Joined: Feb 01, 2011
Posts: 26

Hi all,

I am able to hide and display panelGroup based on onclick event of a checkbox. My panelGroup includes bunch of textboxes. So, how can I delete contents of textboxes inside the panelGroup while hiding and redisplaying.

roby george
Ranch Hand

Joined: Sep 08, 2010
Posts: 31
hello,
when you hide the panel at that that time you want to delete the content of the text box.

To do this just use
document.getElementById("txtBxId").value="";


let me know if it fullfill your requirement.

Thanks
Bishal Ghimire
Greenhorn

Joined: Feb 01, 2011
Posts: 26

Thank you for the suggestion. However, my question was is there any way I can clear all the textboxes inside that Panel at once.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Javascript, h:panelGroup
 
Similar Threads
sockets in applet
how to bind value attribute inside another component binding attribute
AJAX rendering some panelGroups
named after a count
div show/hide with struts2