亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? rendertaglib.groovy

?? grails用戶使用指南
?? GROOVY
字號:
/* Copyright 2004-2005 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT c;pWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *//** * An tag library that contains tags to help rendering of views and layouts * * @author Graeme Rocher * @since 17-Jan-2006 */import org.springframework.validation.Errors;import org.springframework.context.NoSuchMessageException;import org.springframework.web.servlet.support.RequestContextUtils as RCU;import org.codehaus.groovy.grails.commons.GrailsClassUtils as GCU;class RenderTagLib implements com.opensymphony.module.sitemesh.RequestConstants {    protected getPage() {    	return request[PAGE]    }        /**     * Used to retrieve a property of the decorated page     *     * <g:pageProperty default="defaultValue" name="body.onload" />     */        def pageProperty = { attrs ->            if(!attrs.name) {	            throwTagError("Tag [pageProperty] is missing required attribute [name]")            }                            def htmlPage = getPage()            String propertyValue = htmlPage.getProperty(attrs.name)            if (!propertyValue)                propertyValue = attrs.'default';            if (propertyValue) {                if (attrs.writeEntireProperty) {                    out << ' '                    out << propertyName.substring(propertyName.lastIndexOf('.') + 1)                    out << "=\"${propertyValue}\""                }                else {                    out << propertyValue                }            }        }		/**	 * Invokes the body of this tag if the page property exists:	 * 	 * <g:ifPageProperty name="meta.index">body to invoke</g:ifPageProperty>	 *	 * of it equals a certain value:	 *	 *<g:ifPageProperty name="meta.index" equals="blah">body to invoke</g:ifPageProperty>	 */ 	def ifPageProperty = { attrs, body ->		if(attrs.name) {			def htmlPage = getPage()			def names = ((attrs.name instanceof List) ? attrs.name : [attrs.name])									def invokeBody = true			for(i in 0..<names.size()) {				String propertyValue = htmlPage.getProperty(names[i])				if(propertyValue) {					if(attrs.equals instanceof List) {						invokeBody = (attrs.equals[i]==propertyValue)					}					else if(attrs.equals instanceof String) {						invokeBody = (attrs.equals == propertyValue)						}				}				else {					invokeBody = false					break					}			}			if(invokeBody) {				body();				}		}	}    /**     * Used in layouts to render the page title from the SiteMesh page     *     * <g:layoutTitle default="The Default title" />     */	def layoutTitle = { attrs ->        String title = page.title        if (!title && attrs.'default') title = attrs.'default'        if (title) out << title;			}	    /**     * Used in layouts to render the body of a SiteMesh layout     *     * <g:layoutBody />     */		def layoutBody = { attrs ->		getPage().writeBody(out)	}	    /**     * Used in layouts to render the head of a SiteMesh layout     *     * <g:layoutHead />     */			def layoutHead = { attrs ->		getPage().writeHead(out)		}			/**	 * Creates next/previous links to support pagination for the current controller	 *	 * <g:paginate total="${Account.count()}" />	 */	def paginate = { attrs ->        if(attrs.total == null)            throwTagError("Tag [paginate] is missing required attribute [total]")				def mkp = new groovy.xml.MarkupBuilder(out)		def total = attrs.total.toInteger()		def max = params.max?.toInteger()		def offset = params.offset?.toInteger() 		def action = (attrs.action? attrs.action : 'list')		def breadcrumb = true		if(attrs.breadcrumb) breadcrumb = Boolean.valueOf(attrs.breadcrumb)					if(!max) max = (attrs.max ? attrs.max.toInteger() : 10)		if(!offset) offset = (attrs.offset ? attrs.offset.toInteger() : 0)				def linkParams = [offset:offset-max,max:max]		def linkTagAttrs = ['class':'prevLink',action:action]		if(attrs.controller) {			linkTagAttrs.controller = attrs.controller			}		if(attrs.id) {			linkTagAttrs.id = attrs.id			}		if(attrs.params)linkParams.putAll(attrs.params)		linkTagAttrs.params = linkParams			def combined = max + offset		if(offset > 0) {						link(linkTagAttrs.clone(),{out<< (attrs.prev? attrs.prev : 'Previous' ) })		}				if(total > max) {			linkTagAttrs.'class' = 'step'			if(breadcrumb) {				def j = 0				0.step(total,max) { i ->					if(offset == i) {						mkp.a('class':'step',"${++j}")						}					else {						linkParams.offset=i						link(linkTagAttrs.clone(),{out<<++j})						}				}						}					}		linkParams.offset = offset+max		if(combined < total) {				linkTagAttrs.'class'='nextLink'						link(linkTagAttrs,{out<< (attrs.'next'? attrs.'next' : 'Next' )})					}	}    /**     *  allows rendering of templates inside views for collections, models and beans. Examples:     *     *  <g:render template="atemplate" collection="${users}" />     *  <g:render template="atemplate" model="[user:user,company:company]" />     *  <g:render template="atemplate" bean="${user}" />     */    def render = { attrs, body ->        if(!attrs.template)            throwTagError("Tag [render] is missing required attribute [template]")        def engine = grailsAttributes.getPagesTemplateEngine()        def uri = grailsAttributes.getTemplateUri(attrs.template,request)        def var = attrs['var']        def url = servletContext.getResource(uri)        if(!url)            throwTagError("No template found for name [${attrs.template}] in tag [render]")        def t = engine.createTemplate(  uri,                                        servletContext,                                        request,                                        response)        if(attrs.model instanceof Map) {            t.make( attrs.model ).writeTo(out)        }        else if(attrs.collection) {            attrs.collection.each {            	if(var) {            		def b = [:]            		b.put(var, it)            		t.make(b).writeTo(out)            	}            	else {	                t.make( ['it': it] ).writeTo(out)	            }            }        }        else if(attrs.bean) {        	if(var) {        		def b = [:]        		b.put(var, attrs.bean)        		t.make(b).writeTo(out)        	}        	else {        	            t.make( [ 'it' : attrs.bean ] ).writeTo(out)	        }        }		else if(attrs.template && attrs.size() == 1) {			t.make().writeTo(out)					}    }	/**	 * Used to include templates	 */	def include = { attrs ->		if(attrs.template) {	        def engine = grailsAttributes.getPagesTemplateEngine()	        def uri = grailsAttributes.getTemplateUri(attrs.template,request)	        def url = servletContext.getResource(uri)	        if(!url)	            throwTagError("No template found for name [${attrs.template}] in tag [include]")	        def t = engine.createTemplate(  uri,	                                        servletContext,	                                        request,	                                        response)						t.make().writeTo(out)		}	}	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看亚洲一区| 综合婷婷亚洲小说| 国产精品乱码人人做人人爱 | 午夜av一区二区三区| 狠狠色狠狠色综合日日91app| 91丝袜国产在线播放| 精品久久一区二区| 亚洲国产精品久久久久婷婷884 | 56国语精品自产拍在线观看| 欧美国产精品一区| 极品瑜伽女神91| 欧美日韩亚洲国产综合| 中文字幕欧美一区| 国产在线一区二区综合免费视频| 欧美日韩亚洲另类| 亚洲另类中文字| 成人高清在线视频| 久久女同性恋中文字幕| 美女一区二区视频| 制服.丝袜.亚洲.中文.综合| 自拍偷拍国产亚洲| 成人午夜精品在线| 国产三级精品在线| 韩国欧美一区二区| 欧美成人精品1314www| 肉丝袜脚交视频一区二区| 色婷婷综合久久久久中文| 亚洲欧洲国产日本综合| 国产美女在线观看一区| 精品免费视频一区二区| 免费久久精品视频| 欧美一区二区视频在线观看2022| 亚洲影院免费观看| 欧美影院一区二区| 亚洲一区二区欧美| 在线亚洲精品福利网址导航| 一区二区三区欧美视频| 日本精品一级二级| 亚洲精品自拍动漫在线| 在线一区二区视频| 亚洲成av人在线观看| 欧美男男青年gay1069videost| 亚洲小说春色综合另类电影| 欧美视频一区二区三区在线观看 | 18涩涩午夜精品.www| www.av精品| 一区二区三区在线观看网站| 91在线观看污| 亚洲国产裸拍裸体视频在线观看乱了| 欧美自拍丝袜亚洲| 三级精品在线观看| 久久久久久久国产精品影院| 国产91富婆露脸刺激对白 | 日韩亚洲欧美综合| 九色综合国产一区二区三区| 久久久国产精品麻豆| www.成人在线| 亚洲国产精品久久不卡毛片| 日韩精品在线网站| 国产99久久久精品| 亚洲影院理伦片| 精品国偷自产国产一区| 国产成人午夜片在线观看高清观看| 国产精品传媒入口麻豆| 欧美日韩国产小视频| 极品少妇一区二区| 亚洲欧美日韩国产成人精品影院 | 丝袜国产日韩另类美女| 精品电影一区二区| 99久久久国产精品| 男男视频亚洲欧美| 亚洲欧美日韩久久| 日韩欧美一区二区三区在线| av在线一区二区| 日本v片在线高清不卡在线观看| 国产女人aaa级久久久级| 欧美性猛交xxxxxxxx| 国产精品一区2区| 亚洲国产成人高清精品| 久久免费精品国产久精品久久久久| 91热门视频在线观看| 久久99精品久久久久久国产越南 | 久久久久久综合| 欧美午夜不卡视频| 成人h动漫精品一区二区| 视频一区在线播放| 亚洲欧美欧美一区二区三区| 精品av久久707| 欧美精品黑人性xxxx| 成人av动漫在线| 激情综合网最新| 亚洲高清不卡在线观看| 国产精品国产三级国产有无不卡| 日韩欧美亚洲国产精品字幕久久久| 91啪在线观看| 国产91高潮流白浆在线麻豆| 麻豆freexxxx性91精品| 亚洲午夜视频在线观看| 亚洲国产高清不卡| 欧美videofree性高清杂交| 欧美日韩卡一卡二| 99久久精品一区| 成人一区二区在线观看| 国内精品嫩模私拍在线| 日韩va欧美va亚洲va久久| 亚洲一区自拍偷拍| 亚洲欧美激情一区二区| 中文字幕一区免费在线观看| 国产网站一区二区| 精品日韩在线观看| 欧美成人艳星乳罩| 欧美电影免费观看高清完整版在| 欧美人体做爰大胆视频| 欧美日韩中文精品| 欧美亚洲免费在线一区| 欧美亚洲一区二区在线| 在线一区二区三区| 欧日韩精品视频| 欧美性极品少妇| 精品视频色一区| 欧美老人xxxx18| 777午夜精品免费视频| 欧美精品123区| 欧美一区二区网站| 精品三级在线看| 久久久久久久久免费| 国产校园另类小说区| 国产精品你懂的| 亚洲三级理论片| 亚洲一区二区三区美女| 午夜激情一区二区三区| 日本 国产 欧美色综合| 蜜乳av一区二区| 国内精品久久久久影院色| 国产激情一区二区三区| 成人动漫在线一区| 欧美在线三级电影| 91精品国产手机| 久久精品一区二区三区不卡| 国产精品久久久久久福利一牛影视| 18欧美乱大交hd1984| 亚洲在线观看免费视频| 麻豆一区二区三| 成人午夜视频在线| 欧美日韩国产精品成人| 精品福利在线导航| 国产精品久久久久久久久动漫| 亚洲自拍偷拍欧美| 国产在线日韩欧美| 99久久婷婷国产综合精品| 欧美日本在线一区| 久久精品综合网| 亚洲激情在线播放| 久久超碰97中文字幕| 成人黄色免费短视频| 精品污污网站免费看| 国产日韩欧美精品一区| 一区二区高清在线| 国产又黄又大久久| 欧美午夜精品一区| 国产三级三级三级精品8ⅰ区| 一区二区三区四区高清精品免费观看| 强制捆绑调教一区二区| 99久久免费精品| 日韩精品专区在线影院重磅| 《视频一区视频二区| 久久精品国产亚洲高清剧情介绍| 成人av网站在线| 日韩一区二区麻豆国产| 亚洲美女淫视频| 国产精品自在欧美一区| 欧美日韩在线精品一区二区三区激情| 久久久久久麻豆| 美女性感视频久久| 欧美日韩午夜影院| 成人欧美一区二区三区| 国产精品88888| 日韩一区二区三| 亚洲电影欧美电影有声小说| 成人av网站在线观看免费| 欧美大片一区二区| 亚洲第一综合色| 色婷婷精品大在线视频| 欧美激情在线观看视频免费| 麻豆精品视频在线| 欧美日韩国产影片| 一区二区视频免费在线观看| 成人午夜视频免费看| 久久亚洲一区二区三区明星换脸| 五月天激情综合| 欧美少妇xxx| 一区二区三区日韩| 色综合天天综合狠狠| 亚洲国产精品精华液2区45| 精品在线亚洲视频| 日韩精品一区二区三区在线观看| 视频一区在线视频| 91精品国产高清一区二区三区蜜臀| 亚洲一二三区在线观看| 欧美色老头old∨ideo|