亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
一本色道久久加勒比精品| 国产乱码字幕精品高清av | 国产麻豆精品久久一二三| 丰满少妇在线播放bd日韩电影| av毛片久久久久**hd| 欧美日本国产视频| 亚洲国产精品一区二区久久| 91麻豆国产精品久久| 2020国产精品| 亚洲r级在线视频| 欧美一区二区三区喷汁尤物| 七七婷婷婷婷精品国产| 色999日韩国产欧美一区二区| 日韩欧美二区三区| 国产成人丝袜美腿| 制服丝袜亚洲色图| 精品一区二区三区在线播放| 久久先锋影音av鲁色资源 | 粉嫩嫩av羞羞动漫久久久| 欧美日韩一区二区三区四区 | 欧美成人a∨高清免费观看| 国产一区二区精品久久91| 国产精品久久久久影院| 色呦呦网站一区| 人人精品人人爱| 久久精品人人爽人人爽| 美女网站一区二区| 久久精品视频一区二区| 91精品福利在线| 欧美国产综合一区二区| 色视频成人在线观看免| 日本不卡高清视频| 欧美日韩亚洲综合一区二区三区| 日本亚洲三级在线| 欧美日韩你懂的| 国产精品538一区二区在线| 亚洲色图视频网站| 91麻豆国产精品久久| 美女视频一区二区三区| 欧美一区二区视频在线观看| 高清视频一区二区| 日韩成人午夜电影| 日韩欧美精品在线| 色综合久久99| 国产精品主播直播| 日本在线不卡视频一二三区| 国产精品乱码一区二区三区软件| 91精品国产欧美一区二区| 成人看片黄a免费看在线| 蜜桃视频在线一区| 亚洲精品成人在线| 国产亚洲欧美在线| 日韩一区二区三区精品视频| 一本色道久久综合狠狠躁的推荐| 国产精品91一区二区| 国产精品三级视频| 日韩精品一区国产麻豆| 欧美写真视频网站| 99热精品一区二区| 亚洲综合清纯丝袜自拍| 欧美日韩国产综合草草| 91丨porny丨最新| 国产成人精品1024| 亚洲欧美日韩人成在线播放| 欧美在线999| 99久久777色| 视频一区在线播放| 亚洲乱码日产精品bd| 欧美国产禁国产网站cc| 久久久久久久性| 91免费精品国自产拍在线不卡| 国产一区二区三区黄视频| 青草av.久久免费一区| 亚洲国产三级在线| 337p粉嫩大胆噜噜噜噜噜91av| 成人天堂资源www在线| 国产美女一区二区三区| 国内精品嫩模私拍在线| 九九精品视频在线看| 老司机免费视频一区二区三区| 国产精品久久久久久久第一福利| 欧洲人成人精品| 欧美中文字幕一二三区视频| 色综合色综合色综合色综合色综合| 成人动漫中文字幕| 97se亚洲国产综合自在线观| 成人免费黄色在线| 日韩国产在线一| 亚洲电影你懂得| 日韩精品欧美成人高清一区二区| 一区二区三区在线免费播放 | 亚洲综合另类小说| 欧美成人一区二区三区| 成人开心网精品视频| 99久久精品免费看国产| 91在线精品秘密一区二区| 91美女在线视频| 精品亚洲国内自在自线福利| 亚洲欧美电影院| 亚洲一线二线三线视频| 国产欧美精品日韩区二区麻豆天美| 91九色最新地址| 成人黄色在线网站| 91久久线看在观草草青青| 欧美绝品在线观看成人午夜影视| 成人性生交大片| 91国内精品野花午夜精品| 国产精品18久久久久久久久久久久 | 日本一区二区三区在线不卡| 国产精品久久三区| 亚洲国产乱码最新视频| 国产一区二区三区免费观看| 成+人+亚洲+综合天堂| 国产真实乱子伦精品视频| 成人高清视频免费观看| 8v天堂国产在线一区二区| 精品国产凹凸成av人网站| 欧美二区在线观看| 欧美视频中文字幕| 26uuu精品一区二区三区四区在线| 国产精品天美传媒| 日韩高清在线不卡| 婷婷久久综合九色综合伊人色| 亚洲私人黄色宅男| 免费三级欧美电影| 91亚洲资源网| 成人av动漫网站| 制服丝袜中文字幕亚洲| 欧美国产成人精品| 老司机精品视频导航| 色婷婷综合久久久久中文一区二区| 成人精品免费视频| 99视频有精品| 欧美大片拔萝卜| 亚洲最色的网站| 成人久久18免费网站麻豆| 欧美一区二区三区公司| 欧美成人r级一区二区三区| 欧美成人一区二区| 偷窥少妇高潮呻吟av久久免费| 国产一区二区电影| 7777精品伊人久久久大香线蕉的 | 一区二区成人在线| 亚洲丶国产丶欧美一区二区三区| 国产成人精品影视| 欧美一区二区三区四区久久| 一区二区三区在线观看欧美| 亚洲风情在线资源站| 日韩成人av影视| 欧美伊人久久久久久久久影院 | 日韩精品一区二区三区在线播放| 欧美一区二区三区小说| 久久蜜桃av一区二区天堂| 日韩1区2区日韩1区2区| 国内精品免费**视频| 91麻豆精品国产91久久久久久久久| 中文字幕综合网| www.性欧美| 在线一区二区视频| 国产精品日日摸夜夜摸av| 国产一区日韩二区欧美三区| 成人午夜激情片| 欧洲精品一区二区| 日韩欧美在线网站| 日本欧美一区二区在线观看| 国产激情偷乱视频一区二区三区| 欧美一卡二卡三卡四卡| 欧美激情自拍偷拍| 午夜精品福利在线| 欧美无人高清视频在线观看| 亚洲激情一二三区| 精品在线免费视频| 亚洲精品一区二区在线观看| 青青草国产精品97视觉盛宴| 成人在线一区二区三区| 久久久久国产成人精品亚洲午夜| 亚洲精品ww久久久久久p站| 久久精品国产澳门| 26uuu色噜噜精品一区二区| 国产精品成人免费| 老司机免费视频一区二区三区| 日韩欧美一区二区久久婷婷| 久热成人在线视频| 亚洲精品一区二区三区香蕉| 九色综合国产一区二区三区| 久久久久久免费网| av在线播放一区二区三区| 日韩三级伦理片妻子的秘密按摩| 亚洲欧美综合网| 国内精品伊人久久久久影院对白| 久久奇米777| 99久久99久久精品免费观看 | 国产成人精品午夜视频免费| 中文在线资源观看网站视频免费不卡| 亚洲一区二区三区视频在线| 欧美福利电影网| 丁香六月综合激情| 亚洲自拍偷拍av| 日韩欧美国产综合一区| 国产成人免费9x9x人网站视频|