Bom dia a todos, estou estudando o struts2 e coloquei esse trecho no meu jsp, idêntico ao exemplo do próprio struts:
<s:tabbedPanel id="test2" theme="simple" cssStyle="width: 500px; height: 300px;" doLayout="true">
<s:div id="left" label="test1" theme="ajax">I'm a Tab!!!</s:div>
<s:div id="middle" label="test2" theme="ajax">I'm the other Tab!!!</s:div>
</s:tabbedPanel>
Só que não ficam as abas quando eu vejo a página, fica mostrando os dois textos(I’m a Tab e I’m the other Tab) um embaixo do outro. Alguém tem alguma dica?
Abraço.
Fala fabio blz ?
Coloque apenas o theme=ajax no head e vai dar certo. O tema já é embutido no Struts2
Eis a solução:
<%@ page contentType=“text/html; charset=UTF-8” %>
<%@ taglib prefix=“s” uri="/struts-tags" %>
<html>
<head>
<title>JM Struts 2 </title>
<link href="<s:url value="/css/styles.css"/>" rel=“stylesheet” type=“text/css” />
<s:head theme=“ajax”/>
</head>
<body>
<h1>Exemplo de Abas</h1>
<s:tabbedPanel id="test2" theme="simple" cssStyle="width: 500px; height: 300px;" doLayout="true">
<s:div id="left" label="test1" theme="ajax">I'm a Tab!!!</s:div>
<s:div id="middle" label="test2" theme="ajax">I'm the other Tab!!!</s:div>
</s:tabbedPanel>
</body>
</html>
[]'s
Fala fabio blz ?
Coloque apenas o theme=ajax no head e vai dar certo. O tema já é embutido no Struts2
Eis a solução:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>JM Struts 2 </title>
<link href="<s:url value="/css/styles.css"/>" rel="stylesheet" type="text/css" />
<s:head theme="ajax"/>
</head>
<body>
<h1>Exemplo de Abas</h1>
<s:tabbedPanel id="test2" theme="simple" cssStyle="width: 500px; height: 300px;" doLayout="true">
<s:div id="left" label="test1" theme="ajax">I'm a Tab!!!</s:div>
<s:div id="middle" label="test2" theme="ajax">I'm the other Tab!!!</s:div>
</s:tabbedPanel>
</body>
</html>
[]'s
Olá JoaoPagotto.
Eu tinha perguntado isso a um tempinho já… rs…
Eu já tinha resolvido na época, mas mesmo assim Valeu!!! ![:slight_smile: :slight_smile:](https://www.guj.com.br/images/emoji/twitter/slight_smile.png?v=9)