我pageProperty
在我的视图中设置了一个content
标签,但是,Grails 1.3.6ifPageProperty
没有检测到我的侧边栏pageProperty
。有什么想法吗?
布局.gsp
<g:ifPageProperty name="page.sidebar">
<aside id="sidebar">
<g:pageProperty name="page.sidebar" />
</aside>
</g:ifPageProperty>
视图.gsp
<html>
<head>
<title>My Account Title</title>
</head>
<body>
<content tag="sidebar">
<h4>Sidebar</h4>
<p>Hola. This is a sidebar test!</p>
</content>
<h1>Content Heading</h1>
</body>
</html>
PS。如果您想知道我在哪里设置布局,它是在控制器中设置的。