SelecedIndex of tabnavigator is appended to url - apache-flex

In my flex application when I added a tabnavigator control and ran the application, I found that a "#" was appended to the url in the browser and whenever I select one of the tabs the url changes to this "myurl#app=7049&c152-selectedIndex=1" reflecting the index of the selected tab, is this a normal behavior of the tabnavigator, is there a way of removing it?
Thanks

It's a browser navigation integration related feature. You can disable it by going to project properties -> flex Compiler, and uncheck "Enable integration with browser navigation".
Bonus reference here. You might also want to check the link at the end of that article.

Set historyManagementEnabled property of the TabNavigator to "false"

Related

How to disable Live View Code Finder in Brackets

In Adobe Brackets, I have a HTML file open with live view on, when I click on an element in Live View (i.e. Chrome); It automatically scrolls to that elements code in Brackets. I find this very annoying since I have to keep scrolling back to where I was.
Is there a way to disable this feature?
Thanks.
This can be disabled by setting "livedev.enableReverseInspect": false in the preferences file.
For more info click here.
"There's a toggle View > Live Preview Highlight that you can use to disable and re-enable this feature."
Source

Why does AEM component not drag to the page?

I am just getting my head around AEM version 6.2 and struggling to create a component that I can drag onto my page. I copied an existing 'working' component and changed the name in the CRXDE page. The result is the new component is visible in the left components panel but when I want to drag it nothing happens? How can I create/copy an component that is draggable?
For a component to be droppable inside a parsys, it needs to be added using design mode...
Go to design mode
Configure that parsys
Select the component which you want to drop inside parsys
Go back to edit mode. It should now be droppable.
I suggest you to add some text in the component jsp. Make sure cache is deleted. Also try to cq:include the component in your page component.If you are unable to do so will mean there is something wrong with the component development.

open new tabs on NavBarItem clicked in Devexpress

I'm developing some Windows forms app with Devexpress, and I have something like below, a set of tabs are open which are related to "System parameters" and I want to a new set of tabs to open in place of older tabs when I click on Error navBarItem and also it should be vise versa, I saw this in demos but I don't know how to do it myself, thanks
I suggest you use a UserControl for each set of options, and when you click on an item of your navigation bar, you do the following :
Set the visible property of the current user control to false
Check if the user control associed to the clicked item exist, if yes, set it's visible property to true (reactivate it), otherwise, create an new instance of it, and dock it.
To manage this, you should have a a list of the user controls already opened, so you can reactivate them when needed.
This link may help you :-)

Flex Accessiblity - Tab Focus goes out of flex app

In an accessible flex app, the user can navigate through the control by using the TAB key.
The flex app pops up on top of the html page aftert the user activate a particular link, and is loaded using swfobject.embedSWF.
It works well in most cases, but there are some instances where either or both these happen:
a) The flex app loads ok, the "flex focus" is set on the intro text label to read out loud, but pressing tab seems to still cycle through the links on the page behind. (Now Fixed, see Edit 2)
b) The focus worked well and pressing tab cycle through the controls ok, but after going through them it then tabs out of the flex app and onto the address bar.. it becomes a nightmare to even try to get back to the flex app without clicking on it.. which isn't exactly accessibility friendly.
Is there any way to prevent these from happening?
EDIT: The target browser is IE. Seems to be the most used with Jaws
EDIT: I managed to fix problem (a). The trick was to call focus on the swf object, but after a slight time out - must be something to do with flash/js ready state.
setTimeout(function(){
document.getElementById('swfobject').focus()
},25);
Problem (b) is still an issue though...
In your mx:Application component, add an event listener for the keyFocusChange and add this code :
protected function application1_keyFocusChangeHandler(event:FocusEvent):void
{
event.preventDefault();
focusManager.getNextFocusManagerComponent(event.shiftKey).setFocus();
}
b) Try to place some focusable element after swf in html. When focus leaves flex app, see if onfocus handler of that element gets called. If it is, you can refocus flex app from there or redirect it where you want.

Adding Tab dynamically

I have a tab and want another tab with click of button.
Another tab has VBox (Contains charts,grid etc).
It gives an error while adding code addChild(), removeChild() on button click.
The error is of null object reference.
Please suggest me.
Thanks
You're probably trying to access children of a tab that has not been initialized yet. The simplest solution is to change the creationPolicy property of your TabNavigator to "all".
You can see an explanation of creationPolicy in the Adobe documentation.
If this is not the solution, you're probably going to have to post more specific code.

Resources