采用struts2 + extjs4(MVC)
1.简单登录
[img]http://dl.iteye.com/upload/attachment/0079/4221/f1eb1c28-e89f-3b84-a8e9-9272ec63439d.png[/img]
1.简单登录
[img]http://dl.iteye.com/upload/attachment/0079/4221/f1eb1c28-e89f-3b84-a8e9-9272ec63439d.png[/img]
Ext.define('Cart.view.LoginWin',{
extend: 'Ext.window.Window',
alias: 'widget.loginwin',
title: 'Login',
width: 340,
height: 200,
plain: true,
headerPosition: 'top',
layout: 'fit',
renderTo: Ext.getBody(),
constrain: true,
buttonAlign: 'center',
resizable: false,
requires: ['Cart.view.form.LoginForm'],
initComponent : function() {
this.buttons = [
{text: 'login',action: 'winlogin'},
{text: 'reset',action: 'winreset'}
];
this.items = [
{xtype: 'loginform'}
];
this.callParent(arguments);
}
});