You need to sign in to do that
Don't have an account?

Get id of an apex:tab
Is there any way to get the Id of an apex:tab component or any component inside an apex:tab using $Component ?
I'm getting an empty string for some reason. This is the way I'm using it at the moment:
<apex:form id="theForm"> <apex:tabPanel switchType="client" id="theTabPanel"> <apex:tab label="A Tab" name="atab" id="theTab"> <apex:outputPanel id="testField">test</apex:outputPanel> </apex:tab> </apex:tabPanel> </apex:form> {!$Component.theForm.theTabPanel.theTab.testField}
The string is empty if I try to reference either a tab or anything inside a tab, has anyone run into this?
Thanks in advance.
I'm not really sure why this is but it should work if you leave out the tabPanel and tab. I'd expect it to work the same way you expected it to... tabPanel doesn't always seem to behave consistently as other "container" components
All Answers
I'm not really sure why this is but it should work if you leave out the tabPanel and tab. I'd expect it to work the same way you expected it to... tabPanel doesn't always seem to behave consistently as other "container" components
Gosh, Why didn't I think of that? It worked, thanks!