hey sai... instead of doing
selectedTab="#{backingBean.editMode ? 'cyEdit' : 'cyGrid'}"
you should just do something like
selectedTab="#{backingBean.mode}
and have setter and getter for this in your backing bean... actually the variable you pass to selectedTab attribute must be mutable (i.e. not read-only).