Estou aprendendo a usar o extjs junto com o Vraptor , e tenho este painel com um botão para redirecionar para um cadastro de usuarios :
<script>
Ext.require([ 'Ext.panel.*', 'Ext.toolbar.*', 'Ext.button.*',
'Ext.container.ButtonGroup', 'Ext.layout.container.Table' ]);
Ext.onReady(function() {
var fakeHTML = "Usuários Cadastrados";
var SamplePanel = Ext.extend(Ext.Panel, {
//width : 500,
height : 450,
//style : 'margin-top:15px',
bodyStyle : 'padding:10px',
renderTo : 'formulario',
html : fakeHTML,
autoScroll : true
});
new SamplePanel({
title : 'Usuário',
tbar : [ {}, {
text : 'Novo Usuário',
iconCls : 'add16',
href: 'usuario/novo',
} ]
});
});
</script>
O botão abre o link , porem ele abre em outra aba , mas eu quero que continue na mesma.Parece ser alguma coisa bem besta mas não achei solução , obrigado !