No tab in navigation menu shows active tab. Is there any way to indicate which tab is the one active?
I have a controller similar than
class TaskController {
static navigation = [
[group:'tabs',order:1,title:'Pagina 3',action:'page3'],
[group:'tabs',order:3,title:'Pagina 4',action:'page4'],
]
def index = {
redirect(uri:"/task/page3.gsp")
}
def page3 = {
redirect(uri:"/task/page3.gsp")
}
def page4 = {
redirect(uri:"/task/page4.gsp")
}
}
I also have a layout similar than
<html>
<head><nav:resources/></head>
<body>
<div id="tabs">
<nav:render/>
</div>
<g:layoutBody/>
</body>
</html>
And the view that uses that layout similar than
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="layout" content="taskNav"/>
<title>Page 4</title>
</head>
<body>
<h1>Page 4</h1>
Page 4
</body>
</html>
I can switch from "page3" to "page4" using the navigation menu, but no menu tab seems to be activated.
Thanks in advance
I have a controller similar than
class TaskController {
static navigation = [
[group:'tabs',order:1,title:'Pagina 3',action:'page3'],
[group:'tabs',order:3,title:'Pagina 4',action:'page4'],
]
def index = {
redirect(uri:"/task/page3.gsp")
}
def page3 = {
redirect(uri:"/task/page3.gsp")
}
def page4 = {
redirect(uri:"/task/page4.gsp")
}
}
I also have a layout similar than
<html>
<head><nav:resources/></head>
<body>
<div id="tabs">
<nav:render/>
</div>
<g:layoutBody/>
</body>
</html>
And the view that uses that layout similar than
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="layout" content="taskNav"/>
<title>Page 4</title>
</head>
<body>
<h1>Page 4</h1>
Page 4
</body>
</html>
I can switch from "page3" to "page4" using the navigation menu, but no menu tab seems to be activated.
Thanks in advance