Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Regular Contributor
jmoukel
Posts: 93
Registered: ‎07-05-2012
My Carrier: MOvistar
Accepted Solution

BB10: Same ActionItem Repeated in ActionBar

Hi guys,

 

as the title says, I have the same Action Item repeated two times in the Action Bar. So, I have three buttons in the Action Bar when I should have just one. I just defined one Action Item.

 

I've been struggling the whole day with this.

 

Any idea of why this is happening?

 

Thanks a lot.

Please use plain text.
Developer
peter9477
Posts: 5,634
Registered: ‎12-08-2010
My Carrier: none

Re: BB10: Same ActionItem Repeated in ActionBar

The classic mistake causing this appears to be using setContextProperty() any time after your createRootObject() call. It must come before.

Peter Hansen -- (PlayBook and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Regular Contributor
jmoukel
Posts: 93
Registered: ‎07-05-2012
My Carrier: MOvistar

Re: BB10: Same ActionItem Repeated in ActionBar

[ Edited ]

Thanks a lot peter9477!

 

You saved me from hours of struggling. I'd give you more "likes" if I could.

Please use plain text.