jQuery in Action, 3rd edition
The moose likes JSF and the fly likes Disabling form controls from a specific tab Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Disabling form controls from a specific tab" Watch "Disabling form controls from a specific tab" New topic
Author

Disabling form controls from a specific tab

S Majumder
Ranch Hand

Joined: Jun 03, 2009
Posts: 346
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

Joined: Jun 25, 2001
Posts: 17039
    
  26

I'm not sure what the problem is. You can attach JavaScript to the tab-selection events in RichFaces.


An IDE is no substitute for an Intelligent Developer.
 
Have you checked out Aspose?
 
subject: Disabling form controls from a specific tab
 
It's not a secret anymore!