b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

tapestry5_pageoffice免费版_本地maven仓库

电脑杂谈  发布时间:2017-01-23 21:06:26  来源:网络整理

tapestry5tapestry5

Conditionally renders its body. May render its tag and any informal parameters.

Component Parameters

NameDescriptionTypeFlagsDefaultDefault PrefixSince

本地maven仓库_tapestry5_pageoffice免费版

else

An alternate org.apache.tapestry5.Block to render if org.apache.tapestry5.corelib.base.AbstractConditional#test() is false. The default, null, means render nothing in that situation.

negate

本地maven仓库_tapestry5_pageoffice免费版

test

If true, then the body of the If component is rendered. If false, the body is omitted.

<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" xmlns:p="tapestry:parameter">
    <body>
        <h1>Welcome!</h1>

        <t:if test="user">
            Welcome back, ${user.firstName}
            <p:else>
                <t:pagelink name="login">Login</t:pagelink> /
                <t:pagelink name="register">Register</t:pagelink>
            </p:else>
        </t:if>
        
        . . .

</html>

Here, the main text is rendered if the user is logged in (the user property willbe non-null after the user logs in). Otherwise, links to a login and registerpage are rendered.

Note the use of thep:namespace (new in Tapestry 5.1). In 5.0, this would be.


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-28358-1.html

    相关阅读
      发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

      热点图片
      拼命载入中...