自定义新的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
满意答案
首先在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; },
相关问答
更多LINUX 如何查看JPG文件
在Internet Explorer中获取没有填充的元素的宽度(getting the Width of an element without padding in Internet Explorer)
父项获取滚动条后获取元素的宽度(Get width of element after parent gets scrollbar)
我可以使用Jquery来查找元素并将它的CSS宽度设置为current-width-x?(Can I use Jquery to find an element and set it's CSS width to current-width - x?)
即使浏览器窗口改变大小,jQuery也会找出元素宽度(jQuery find out element width even when browser window changes size)
如何找到内部元素的宽度(How to find width of inner elements)
如何获得具有继承宽度的元素的宽度?(How to get the width of an element which has inherit-width?)
获取$ .find()元素的宽度为零(Getting width of $.find() element is zero)
元素的真实宽度(True width of an element)
使用.find()的jQuery无法获得动态追加元素的宽度(jQuery using .find() can't get width of dynamically appended element)
相关文章
更多《Spring Security 3》 【第二章】 Spring Security起步(3)
怎么用spring security?
spring3MVC +spring security3 关于扩展UserDetailsService 无法注入service的疑问.
《Spring Security 3》 【第三章】增强用户体验(5)
《Spring Security 3》 【第二章】 Spring Security起步(2)
《Spring Security 3》 【第二章】 Spring Security起步(1)
《Spring Security 3》 【第四章】 凭证安全存储(1)
《Spring Security 3》 【第四章】 凭证安全存储(5)
《Spring Security 3》 【第三章】增强用户体验(1)
《Spring Security 3》 【第三章】增强用户体验(3)
最新问答
更多python的访问器方法有哪些
使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
透明度错误IE11(Transparency bug IE11)
linux的基本操作命令。。。
响应navi重叠h1和nav上的h1链接不起作用(Responsive navi overlaps h1 and navi links on h1 isn't working)
在C中读取文件:“r”和“a +”标志的不同行为(Reading a File in C: different behavior for “r” and “a+” flags)
NFC提供什么样的带宽?(What Kind of Bandwidth does NFC Provide?)
元素上的盒子阴影行为(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
Copyright ©2023
peixunduo.com All
Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!
Laravel检查是否存在记录(Laravel Checking If a Record Exists)
设置base64图像的大小javascript - angularjs(set size of a base64 image javascript - angularjs)
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!