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

Error: Cannot use Apex Attribute var (in component mynamespace:mycomponent) without Global access...
We have a VF component in our managed package that our customers should use in their org.
Access is set to "global" in the component and the we use the tag componentbody so that our customers are able to generate custom iterations.
When I create a new VF email template and include the component, I get the error:
>>Error: Cannot use Apex Attribute var (in component myNamespace:myComponent) without Global access in a component/page that is not in the same namespace of the component<<
The component is set to "global, why is this error thrown ?
Is there some more information available what is possible with components in managed packages ?
Why is the "global" designation for a component deprecated as described in the VF docs ? Is there any alternative ?
The components are a flexible way to allow our customers to customize our app but they are usesless in a managed package when there are so many restrictions.
Ok I found it, I had to add access="global" not only to the component but to the attribute as well.
What I still not understand, what are the plans for components in managed packages ?
From the docs:
>>NOTE: Components with this designation are subject to the deprecation policies as describes for managed packages<<
Where is this described? Will it not work in future release ? What are the alternatives ?
Would be great if someone clarifies on this.
BTW if you are using packaging as a mechanism to move objects from a dev or test org to production there is a more appropriate technology (deploy using ant deploy or the eclipse force.com plugin) that does not introduce the managed package constraints - I suspect this might be something that you'll want to consider.