This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disabling form controls from a specific tab

 
S Majumder
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi every body ,

I am using one richtabPanel.On that tabPanel I have created 3 tabs .Now on every tab , there are some controls.I have 2 java script functions .When user click any control (radio button / check boxs) the form will first get disabled & then get enable .Here I am using onsubmit for disabling the form and oncomplete for enabling the form .It is doing perfectly all right.But I want to do it on the tab level .


Here my form name testForm.


Here are my two java script functions :

for disabling the form :




for enabling the form




I want to do it on the tab level.

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18272
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what the problem is. You can attach JavaScript to the tab-selection events in RichFaces.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic