亚洲欧美第一页_禁久久精品乱码_粉嫩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)		}	}	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美高清在线一区| 欧美日韩成人综合| 久久五月婷婷丁香社区| 免费在线观看不卡| 欧美精品久久99久久在免费线 | 日韩欧美你懂的| 首页国产欧美日韩丝袜| 精品污污网站免费看| 亚洲国产乱码最新视频| 欧美在线观看视频一区二区 | 狠狠色综合日日| 日韩欧美中文一区| 久久国产精品99久久久久久老狼| 欧美日韩三级在线| 免费观看日韩av| 日韩欧美一二三四区| 黑人巨大精品欧美一区| 久久久久久久综合色一本| 国产成人精品一区二区三区四区| 国产午夜精品一区二区三区嫩草| 国产.欧美.日韩| 国产精品久久综合| 欧美色图第一页| 日韩av中文字幕一区二区三区 | 欧美午夜寂寞影院| 蜜臀久久99精品久久久久久9| 亚洲精品在线观看网站| 国产91精品精华液一区二区三区| 中文字幕一区二区三区精华液| 欧美自拍偷拍一区| 老司机精品视频导航| 国产欧美日韩不卡| 一本一本久久a久久精品综合麻豆| 亚洲国产视频a| 91精品国产91久久综合桃花| 国产美女av一区二区三区| 亚洲丝袜制服诱惑| 337p亚洲精品色噜噜| 国产精品一区三区| 一区二区三区四区激情| 91精品在线麻豆| 精油按摩中文字幕久久| 亚洲丝袜美腿综合| 日韩欧美一区二区视频| 国产精品一二三区在线| 亚洲乱码国产乱码精品精可以看| 欧美日韩亚洲国产综合| 国产1区2区3区精品美女| 亚洲午夜免费福利视频| 7777精品伊人久久久大香线蕉完整版 | 亚洲国产日韩av| 精品日韩在线一区| 在线观看av一区| 欧洲av一区二区嗯嗯嗯啊| 国产一区二区在线影院| 亚洲一级电影视频| 国产精品网友自拍| 日韩一区二区三区电影在线观看| 成人av综合一区| 免费欧美日韩国产三级电影| 一区二区三区国产豹纹内裤在线| 欧美成人r级一区二区三区| 99精品欧美一区| 国产精品99久久久久久久vr| 午夜精品福利视频网站| 亚洲欧洲国产专区| 久久在线免费观看| 91精品在线麻豆| 欧美色图12p| 91免费在线视频观看| 国产麻豆精品在线| 久久99热99| 日本麻豆一区二区三区视频| 一区二区三区四区亚洲| 亚洲国产精华液网站w| 精品国产伦理网| 欧美精品xxxxbbbb| 日本福利一区二区| 9久草视频在线视频精品| 国产伦理精品不卡| 蜜臀av一区二区在线免费观看| 亚洲五月六月丁香激情| 亚洲精品国产成人久久av盗摄| 亚洲va天堂va国产va久| 亚洲自拍与偷拍| 亚洲一级二级三级在线免费观看| 亚洲男女一区二区三区| 亚洲日本在线天堂| 国产精品福利一区| 综合久久综合久久| 最新国产の精品合集bt伙计| 国产精品不卡一区| 欧美国产禁国产网站cc| 国产欧美一区视频| 日本一区二区不卡视频| 国产精品乱码一区二区三区软件| 国产女人水真多18毛片18精品视频| 精品国产伦一区二区三区观看体验| 欧美成人官网二区| 精品国产乱码久久久久久老虎 | 欧美一区午夜视频在线观看| 欧美日韩国产一级| 制服丝袜亚洲网站| 精品国产制服丝袜高跟| ww亚洲ww在线观看国产| 久久久久久久电影| 中文字幕精品一区二区精品绿巨人| 国产亲近乱来精品视频| 国产精品第13页| 亚洲精品成人少妇| 视频一区二区中文字幕| 久久精品99国产精品日本| 国产一区二区在线看| 国产a精品视频| 99久久久久久| 欧美男男青年gay1069videost| 91麻豆精品国产自产在线| 欧美一区二区精品久久911| 亚洲精品一线二线三线无人区| 久久精品亚洲精品国产欧美kt∨| 国产精品国产三级国产a| 亚洲国产精品嫩草影院| 久久99久久99| 不卡av在线网| 欧美视频日韩视频| 精品久久一区二区| 欧美国产欧美亚州国产日韩mv天天看完整 | 日本不卡视频在线| 国产一区二区三区av电影| 成人动漫在线一区| 欧美日韩色综合| 26uuu欧美| 亚洲一区二区三区中文字幕| 日本伊人精品一区二区三区观看方式| 久久国产视频网| www.一区二区| 日韩一区二区三免费高清| 国产欧美日韩麻豆91| 亚洲国产视频直播| 国产成人在线电影| 欧美午夜一区二区三区免费大片| 日韩视频不卡中文| 亚洲日本va午夜在线影院| 精品一区二区精品| 色丁香久综合在线久综合在线观看| 欧美一级日韩一级| ㊣最新国产の精品bt伙计久久| 亚洲h精品动漫在线观看| 国产一区二区三区日韩| 欧美女孩性生活视频| 成人欧美一区二区三区视频网页| 日本vs亚洲vs韩国一区三区二区| 99re视频这里只有精品| 久久蜜臀中文字幕| 午夜精品一区二区三区免费视频 | 91福利在线播放| 久久精品一区二区三区不卡| 婷婷综合五月天| 91影院在线免费观看| 日韩精品在线一区| 亚洲综合在线视频| 成人激情视频网站| 26uuu色噜噜精品一区二区| 亚洲国产综合91精品麻豆| 成人黄色国产精品网站大全在线免费观看 | 亚洲图片欧美激情| 国产精品一二三在| 91精品一区二区三区久久久久久| 亚洲人吸女人奶水| 丁香亚洲综合激情啪啪综合| 日韩精品一区二区三区在线| 亚洲国产日韩综合久久精品| av在线不卡网| 欧美激情中文字幕一区二区| 国精产品一区一区三区mba桃花 | 日本特黄久久久高潮| 欧美亚洲另类激情小说| 亚洲精品中文在线| 99r国产精品| 亚洲色图20p| aaa亚洲精品| 中文字幕av资源一区| 国产在线麻豆精品观看| 日韩一区二区三区av| 免费观看30秒视频久久| 欧美精品自拍偷拍| 日日夜夜精品视频免费| 欧美日韩在线电影| 亚洲在线视频免费观看| 91久久精品网| 亚洲一区二区三区在线| 日本精品一区二区三区高清| 亚洲精选一二三| 在线视频中文字幕一区二区| 亚洲青青青在线视频| 一本色道久久综合亚洲91| 一区二区三区中文字幕| 在线观看日韩av先锋影音电影院| 一区二区三区四区五区视频在线观看 | 日韩免费一区二区|