Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

We recently released a managed package, and came across a strange issue. We have overridden a custom object Tab with a Visualforce page. When I click on the Tab, the page shows up as normal, but the Home tab is "selected" and not the Tab I just clicked on. This is the only tab this is happening with, none of the others are affected.

As you might imagine, this leads to a very confusing user experience. I checked that the tab has "Default On", and the object has CRUD permissions, but this is happening to both Administrator and Standard Users. Has anyone experienced this before?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

The Home tab is selected because it is the default when no other tabStyle is explicitly specified on the page tag.

Your VisualForce page needs to have the tabStyle attribute set to the name of your VisualForce tab in order for the page to highlight this tab.

Per the Salesforce docs on the apex:page tag:

To use a custom Visualforce tab, set the attribute to the name (not label) of the tab followed by a double-underscore and the word tab. For example, to use the styling of a Visualforce tab with the name Source and a label Sources, use tabStyle="Source__tab".

share|improve this answer
    
I see. But why would that apply just in the managed package org and not the developer org? –  George S. Dec 20 '12 at 18:21
    
It applies same for all the orgs .Try out –  Mohith Shrivastava Dec 20 '12 at 18:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.