miscellaneous (angularjs, extjs, spring security, etc)

-->angularjs: highlight table rows on hover: <table class="table-hover">

-->extjs: update element content at another iframe, and add listener:

      var ele = parent.frames["banner"].document.getElementById('userdiv');
      //alert(ele);
      ele.innerHTML=obj.name+'('+obj.details[0]+')';//ws/loadData: obj.username
      Ext.get(ele).addListener("click",function(){alert(RegReport.security.user.name);});

-->extjs: global constant:

    Ext.define('RegReport.security', {
        singleton : true
    });

 

        Ext.Ajax.request({
           url: '/web/ws/loadUserinfo',
           method:'get',
           params: {name:'css'},
           success: function(response, opts) {
              var obj = Ext.decode(response.responseText);
              RegReport.security.user=obj;
           }
        });

-->spring security:

    extends AbstractSecurityWebApplicationInitializer
    
    @Configuration
    @EnableWebSecurity
    public class SecurityConfig extends WebSecurityConfigurerAdapter
    
    http.csrf().disable();
    http.headers().disable();
    http.authorizeRequests().antMatchers("/logout", "/login**","/login*").permitAll();

你可能感兴趣的:(AngularJS,Spring Security,ExtJs)