PDA

View Full Version : how to get session data in extjs



willsun52000
22 Mar 2012, 12:14 AM
I've add some attribute in session. and I can get the value from session like following in jsp
<c:out value="${sessionScope['scopedTarget.sessionContext'].SELECTED_CLIENT}" />';

how can I get the session data in extjs component, e.g.


var clientSearch = Ext.create('Ext.form.Panel', {
bodyPadding : 10,
items : [ {
xtype : 'combo',
value : ????,

listeners : {
select : function(combo) {
var clientId = combo.getValue();

var grid = Ext.getCmp('planGrid');
grid.store.load( );
}
}
} ]
});

scottmartin
30 Mar 2012, 11:12 AM
Have you tried using an ajax call?

Ext.Ajax.request()

Regards,
Scott.