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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? 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)		}	}	}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品福利一区| 国产成人精品亚洲午夜麻豆| 久久66热偷产精品| 91丨九色丨黑人外教| 精品国产乱码久久久久久久久| 自拍偷拍国产精品| 国产盗摄女厕一区二区三区 | 在线成人高清不卡| 国产午夜精品久久久久久久 | 日韩欧美一区在线| 一区二区三区美女视频| 国产精品一区二区三区乱码| 欧美美女网站色| 亚洲久草在线视频| 成人中文字幕在线| 欧美精品一区二区三区在线| 香蕉乱码成人久久天堂爱免费| 成人精品一区二区三区四区| 日韩欧美综合在线| 日本伊人色综合网| 欧美疯狂做受xxxx富婆| 亚洲一区二区成人在线观看| 成人av小说网| 欧美国产亚洲另类动漫| 国产成人在线视频网站| 精品国产伦一区二区三区观看方式| 日韩在线卡一卡二| 欧美精品在线观看播放| 亚洲大尺度视频在线观看| 欧美最新大片在线看| 亚洲丝袜精品丝袜在线| 97久久超碰国产精品| 日韩理论片在线| 99免费精品在线| 亚洲欧美福利一区二区| 色综合天天综合给合国产| 亚洲欧美色图小说| 欧美天天综合网| 亚洲国产成人av网| 欧美片在线播放| 日韩激情av在线| 91麻豆精品国产| 国产综合久久久久久鬼色| 精品国产三级a在线观看| 久久97超碰国产精品超碰| 国产亚洲欧美色| av亚洲精华国产精华精华| 国产精品嫩草影院av蜜臀| 91在线小视频| 亚洲成a人片在线不卡一二三区| 欧美精品在欧美一区二区少妇| 蜜桃av一区二区在线观看| 日韩欧美一区二区视频| 成人一区二区三区| 亚洲欧美日本在线| 91麻豆精品国产91久久久| 国产中文字幕精品| 国产精品国产自产拍高清av| 欧美性色aⅴ视频一区日韩精品| 偷拍与自拍一区| 久久久影视传媒| 一本色道久久加勒比精品| 青青草97国产精品免费观看 | 国产成人在线看| 亚洲免费毛片网站| 欧美一级xxx| 成人av影视在线观看| 视频一区二区三区中文字幕| 久久久久综合网| 欧美视频在线观看一区二区| 精品一区二区在线免费观看| 国产精品久久久久久久蜜臀| 欧美日韩视频一区二区| 国产在线精品一区二区不卡了 | 91丨九色丨尤物| 久久精品国产网站| 亚洲精品视频一区| 久久久精品免费观看| 欧美日韩一区视频| 成人性色生活片免费看爆迷你毛片| 亚洲大片免费看| 国产精品乱人伦| 日韩精品一区二区三区视频在线观看 | 视频一区中文字幕国产| 中文无字幕一区二区三区| 在线综合视频播放| 在线观看亚洲成人| 99久久国产免费看| 狠狠v欧美v日韩v亚洲ⅴ| 亚洲国产一区二区a毛片| 国产欧美一区二区三区网站| 欧美肥胖老妇做爰| 99国产精品久久久久久久久久久| 国产曰批免费观看久久久| 香港成人在线视频| 一区二区日韩av| 国产精品久久久久一区| 国产人妖乱国产精品人妖| 日韩精品影音先锋| 欧美日韩综合色| 在线欧美小视频| 91影视在线播放| 99久久综合色| va亚洲va日韩不卡在线观看| 国产精品自拍av| 国产制服丝袜一区| 国产专区综合网| 国产伦精一区二区三区| 免费观看91视频大全| 日本不卡一区二区| 日韩精品午夜视频| 青青草原综合久久大伊人精品优势| 亚洲丰满少妇videoshd| 亚洲综合色噜噜狠狠| 亚洲欧美日韩国产成人精品影院 | 色成人在线视频| 色天使色偷偷av一区二区| 色综合天天综合网天天看片| 成人精品鲁一区一区二区| 国产成人99久久亚洲综合精品| 国产成人av电影免费在线观看| 国产69精品一区二区亚洲孕妇| 懂色中文一区二区在线播放| 成人午夜激情影院| 99久久精品国产毛片| 在线观看91精品国产入口| 欧美日韩综合不卡| 日韩欧美国产wwwww| 久久午夜国产精品| 亚洲国产成人一区二区三区| 亚洲色图视频网站| 亚洲福利电影网| 久久99九九99精品| 成人黄色a**站在线观看| 色综合一区二区| 欧美日本一区二区三区四区 | 日韩电影免费一区| 久久精品国产一区二区三区免费看| 捆绑紧缚一区二区三区视频| 极品少妇xxxx偷拍精品少妇| 国产高清视频一区| 欧美一a一片一级一片| 欧美一区二区日韩| 国产欧美日韩在线看| 亚洲综合在线五月| 青草国产精品久久久久久| 国产成人亚洲综合色影视| 91官网在线观看| 欧美精品一区二区三区四区| 亚洲欧美日韩国产中文在线| 日韩二区在线观看| 不卡欧美aaaaa| 欧美一区二区三区视频免费| 国产精品久久久久精k8| 日韩经典一区二区| www.一区二区| 欧美成人国产一区二区| 亚洲日本一区二区三区| 蜜臀va亚洲va欧美va天堂| 99国产麻豆精品| 精品美女一区二区三区| 亚洲一区二区美女| 国产精品一二三区| 91精品欧美福利在线观看| 亚洲视频狠狠干| 黑人巨大精品欧美黑白配亚洲| 在线观看不卡视频| 国产精品美女一区二区在线观看| 麻豆91在线播放| 欧美在线观看视频在线| 国产日韩欧美激情| 麻豆精品国产传媒mv男同| 欧美午夜视频网站| 国产精品灌醉下药二区| 精品亚洲成a人| 欧美久久久久中文字幕| 亚洲欧美另类小说| 国产成人午夜视频| 精品国产网站在线观看| 五月婷婷欧美视频| 日本久久电影网| 国产精品女同一区二区三区| 韩国av一区二区| 欧美一级片在线| 亚洲高清久久久| 欧美色老头old∨ideo| 中文字幕亚洲区| 不卡的av电影| 国产精品久久久久久久久图文区| 激情成人午夜视频| 欧美一级一区二区| 蜜乳av一区二区| 欧美一级久久久久久久大片| 香蕉久久夜色精品国产使用方法 | 成人97人人超碰人人99| 2017欧美狠狠色| 国产一区二区三区香蕉| 久久精品夜色噜噜亚洲a∨| 激情文学综合插| 国产情人综合久久777777|