自定义新的Grails Spring Security Core Plugin登录页面(Customizing new Grails Spring Security Core Plugin login page)

我安装了Grails Spring安全核心插件,它运行良好,但我找不到登录页面的gsp文件。 我想更改登录页面以匹配我的网页主题。 有谁知道如何找到该文件? 我尝试了generate-views和generate-all,然后是User,UserRole和Role域类,但我没有看到实际的文件。 另外,我在项目目录中找不到spring security core插件的登录和注销控制器。 知道发生了什么事吗?


I installed Grails Spring Security Core Plugin and it works great, but I can't find the gsp file for the login page. I want to change the login page to match my web theme. Anyone knows how to find the file ? I tried generate-views and also generate-all followed by User, UserRole, and Role domain classes but I didn't see the actual files. Also I can't find the login and logout controllers for the spring security core plugin in my project directories. Any idea what's going on ?


原文:https://stackoverflow.com/questions/20183312
2024-04-23 14:04

满意答案

首先在DOM文档中包含结果元素,然后尝试宽度

success: function(data)
    {
        var result = jQuery(data).find('.dir_content'); // get element with find here
    jQuery('.list-inline').append(result);    
    var margin_amount = getScreenMiddle(result);    // pass element to function

        result.attr('id', full_path);
        result.css('margin-right', margin_amount);

        if(prev_element != null)
        {
            prev_element.css("margin-right", 0);
        }
        prev_element = result;


    },

First include the result element in DOM document and then try for width

success: function(data)
    {
        var result = jQuery(data).find('.dir_content'); // get element with find here
    jQuery('.list-inline').append(result);    
    var margin_amount = getScreenMiddle(result);    // pass element to function

        result.attr('id', full_path);
        result.css('margin-right', margin_amount);

        if(prev_element != null)
        {
            prev_element.css("margin-right", 0);
        }
        prev_element = result;


    },

相关问答

更多

在Internet Explorer中获取没有填充的元素的宽度(getting the Width of an element without padding in Internet Explorer)

您可以使填充为0,但检查大小和位置的计算样式通常是错误的,并且难以协调acreoss浏览器。 在所有浏览器上使用offsetWidth或clientWidth。 You can make the padding 0, but checking computed styles for sizes and positions is often buggy and hard to reconcile acreoss browsers. Use offsetWidth or clientWidth ins...

父项获取滚动条后获取元素的宽度(Get width of element after parent gets scrollbar)

这是获取滚动条宽度的函数: function getScrollBarWidth() { var inner = $('<p />', {style:'width:100%;height:200px;'}), outer = $('<div />', {style:'position:absolute;top:0;left:0;visibility:hidden;width:200px;height:150px;overflow:hidden;'}); outer...

我可以使用Jquery来查找元素并将它的CSS宽度设置为current-width-x?(Can I use Jquery to find an element and set it's CSS width to current-width - x?)

从.css()函数的文档: 从jQuery 1.6开始, .css()接受与.animate()类似的相对值。 相对值是以+=或-=开始的字符串,用于递增或递减当前值。 例如,如果一个元素的填充左边是10px,则.css( "padding-left", "+=15" )会导致总共填充25px左边。 所以你可以这样做: $el.find( '.ui-content' ) .css('width', '-=19'); From the documentation of the .css() fun...

即使浏览器窗口改变大小,jQuery也会找出元素宽度(jQuery find out element width even when browser window changes size)

将代码移动到单独的函数,并使其在document ready和window resize事件上运行: function resizeElements() { // find out the width of the page var pageWidth = $('div.MainContentHolder').width(); // minus the sidebar and margin width var middleWidth = pageWidth - '2...

如何找到内部元素的宽度(How to find width of inner elements)

如果你需要所有的嵌套元素,可以用*选择器来搜索,它将返回所有的后代元素: var widthArray=$('#box *').map(function(){ return $(this).outerWidth(); }).get(); var maxWIdth= Math.max.apply(Math, widthArray); 对于儿童: var widthArray=$('#box').children().map(function(){.... If you need all ...

如何获得具有继承宽度的元素的宽度?(How to get the width of an element which has inherit-width?)

不,你不能在CSS中这样做。 但是,您可以在版本8之前的Internet Explorer中使用它: width: expression(document.getElementById("grandfather").style.width); #grandfather { width: 70%; border: 1px solid #666; padding: 5px; } .father { width: 80%; border: 1px solid #999...

获取$ .find()元素的宽度为零(Getting width of $.find() element is zero)

首先在DOM文档中包含结果元素,然后尝试宽度 success: function(data) { var result = jQuery(data).find('.dir_content'); // get element with find here jQuery('.list-inline').append(result); var margin_amount = getScreenMiddle(result); // pass eleme...

元素的真实宽度(True width of an element)

document.getElementById('Long').scrollWidth 有关MDN的文档 一个相关的问题 document.getElementById('Long').scrollWidth Documentation on MDN A related question

使用.find()的jQuery无法获得动态追加元素的宽度(jQuery using .find() can't get width of dynamically appended element)

这行$(document).find('#divAppended')返回一个空数组,因为该元素在该点不存在。 jQuery已经评估了选择器并且什么也没找到,你需要在添加元素之后执行它。 您可以将divInDom和divAppended实现为在每次调用时评估选择器的函数。 $(document).ready(function() { var myStuff = { elements: { divInDom: function() { ...

相关文章

更多

《Spring Security 3》 【第二章】 Spring Security起步(3)

Spring Security的架构在很大程度上依赖代理(delegates)和servlet过滤器, ...

怎么用spring security?

我正在学习spring security,看了网上的文档后(下面的附件),动手试了下,结果报错了,不知 ...

spring3MVC +spring security3 关于扩展UserDetailsService 无法注入service的疑问.

问题描述: 我想用的spring3MVC+spring security3 实现登录权限的扩展.即扩 ...

《Spring Security 3》 【第三章】增强用户体验(5)

Spring Security框架提供的InMemoryDaoImpl内存凭证存储使用了一个简单的ma ...

《Spring Security 3》 【第二章】 Spring Security起步(2)

尽管Spring Security的配置可能会很难,但是它的作者是相当为我们着想的,因为他们为我们提供 ...

《Spring Security 3》 【第二章】 Spring Security起步(1)

在本章中,我们将要学习Spring Security背后的核心理念,包括重要的术语和产品架构。我们将会 ...

《Spring Security 3》 【第四章】 凭证安全存储(1)

在本章中,我们将会把到目前为止都在使用的内存存储转移到数据库作为后台的认证存储。我们将会介绍默认的Sp ...

《Spring Security 3》 【第四章】 凭证安全存储(5)

现在你可能会意识到我们remember me功能的实现,能够在应用重启前很好的使用,但在应用重启时用户 ...

《Spring Security 3》 【第三章】增强用户体验(1)

在本章中,我们将对JBCP Pets在线商店增加一些功能,这些新功能能够为用户提供更愉悦和可用的用户体 ...

《Spring Security 3》 【第三章】增强用户体验(3)

对于经常访问站点的用户有一个便利的功能就是remember me。这个功能允许一个再次访问的用户能够被 ...

最新问答

更多

python的访问器方法有哪些

使用方法: class A(object): def foo(self,x): #类实例方法 print "executing foo(%s,%s)"%(self,x) @classmethod def class_foo(cls,x): #类方法 print "executing class_foo(%s,%s)"%(cls,x) @staticmethod def static_foo(x): #静态方法 print "executing static_foo(%s)"%x调用方法: a =

使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)

我认为你必须将两个TableGetway传递给UserTable构造。 你必须改变Module.php看看: public function getServiceConfig() { return array( 'factories' => array( 'User\Model\UserTable' => function($sm) { $userTableGateway = $sm->get('UserTable

透明度错误IE11(Transparency bug IE11)

这是一个渲染错误,由使用透明度触发,使用bootstrap用于在聚焦控件周围放置蓝色光环的box-shadow属性。 可以通过添加以下类覆盖来解决它。 .form-control:hover { -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,255,1); -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,255,1); box-shadow: 0px 0px 4px 0px rgba(0,0,255,1)

linux的基本操作命令。。。

ls 显示目录 mkdir 建立目录 cd 进入目录

响应navi重叠h1和nav上的h1链接不起作用(Responsive navi overlaps h1 and navi links on h1 isn't working)

将z-index设置为.main-nav这将解决您的重叠问题 .main-nav { position:relative; z-index:9; } set z-index to .main-nav This will fix your overlaping issue .main-nav { position:relative; z-index:9; }

在C中读取文件:“r”和“a +”标志的不同行为(Reading a File in C: different behavior for “r” and “a+” flags)

这是因为模式规范"a"打开一个文件以便追加,文件指针在末尾。 如果您尝试从此处读取,则由于文件指针位于EOF,因此没有数据。 您应该打开"r+"进行阅读和写作。 如果在写入之前读取整个文件,则在写入更多数据时,文件指针将正确定位以追加。 如果这还不够,请探索ftell()和fseek()函数。 That is because the mode spec "a" opens a file for appending, with the file pointer at the end. If you

NFC提供什么样的带宽?(What Kind of Bandwidth does NFC Provide?)

支持空中接口的数据速率是一回事。 在消除协议开销,等待eeprom写入以及所有需要时间的其他内容之后,您看到的数据速率是完全不同的故事。 长话短说,从标签读取或进行对等传输时的实际数据速率峰值约为2.5千字节/秒。 取决于具体的标签或对等技术,它可能比这慢很多。 The supported data-rates of the air-interface are one thing. The data-rate that you see after removing protocol overhe

元素上的盒子阴影行为(box-shadow behaviour on elements)

它看起来像只在Windows上的Chrome的错误。 我在Google Canary (Chrome 63)中也进行了测试,问题依然存在,所以有可能它不会很快修复。 这个问题是由overflow: auto引起的overflow: auto ,在你的情况下,它可以很容易地通过删除或设置为可见(默认)来解决。 但是 ,将鼠标悬停在右侧(顶部和底部)时,会出现滚动条。 一个解决方案可以设置overflow: hidden的身体,所以预期的结果是所需的。 我想指出,这不是一个很好的解决方案,但我建议暂

Laravel检查是否存在记录(Laravel Checking If a Record Exists)

这取决于您是否要以后与用户合作,或仅检查是否存在。 如果要使用用户对象(如果存在): $user = User::where('email', '=', Input::get('email'))->first(); if ($user === null) { // user doesn't exist } 如果你只想检查 if (User::where('email', '=', Input::get('email'))->count() > 0) { // user found

设置base64图像的大小javascript - angularjs(set size of a base64 image javascript - angularjs)

$scope.getData= function () { var reader = new FileReader(); reader.onload = $('input[type=file]')[0].files; var img = new Image(); img.src =(reader.onload[0].result); img.onload = function() { if(this.width > 640