Help sobre desenvolver Pagina com Tabbled panel

0 respostas
P

Olá …

tenho que construir paginas com TAb (Abas) com jsp e struts mas estou com dificuldade como desenvolver vi alguns exemplos com AJAX mas nunca trabalhei com AJAX …

abaixo tem um codigo que abaixei mas não sei como começar …se alguém já fez algo pareceido ou tem urls para ajudar agradeceria …

abs

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="ww" uri="/webwork" %>

<html>
<head>
    <title>Ajax examples - tabbled panel</title>

    <jsp:include page="/ajax/commonInclude.jsp"/>
    <link rel="stylesheet" type="text/css" href="<ww:url value="/webwork/tabs.css"/>"&gt
    <link rel="stylesheet" type="text/css" href="<ww:url value="/webwork/niftycorners/niftyCorners.css"/>"&gt
    <link rel="stylesheet" type="text/css" href="<ww:url value="/webwork/niftycorners/niftyPrint.css"/>" media="print"&gt
    <script type="text/javascript" src="<ww:url value="/webwork/niftycorners/nifty.js"/>"&gt</script>
    <script type="text/javascript">
        window.onload = function() {
            if (!NiftyCheck())
                return;
            Rounded("li.tab_selected", "top", "white", "transparent", "border #ffffffS");
            Rounded("li.tab_unselected", "top", "white", "transparent", "border #ffffffS");
            //                Rounded("div#tab_header_main li","top","white","transparent","border #ffffffS");
            // "white" needs to be replaced with the background color
        }
    </script>
</head>

<body>

    <table cellpadding="0" cellspacing="10" border="0" width="600">
        <tr>
            <td align="top">
                <ww:tabbedPanel id="test" theme="ajax">
                    <ww:panel id="one" tabName="one" theme="ajax" >
                        This is the first pane<br/>
                        &lt;ww:form&gt;
                            &lt;ww:textfield name="tt" label="Test Text"/&gt;  <br/>
                            &lt;ww:textfield name="tt2" label="Test Text2"/&gt;
                        &lt;/ww:form&gt;
                    &lt;/ww:panel&gt;
                    &lt;ww:panel id="two" tabName="two" theme="ajax"&gt;
                        This is the second panel
                    &lt;/ww:panel&gt;
                    &lt;ww:panel id="three" tabName="three" theme="ajax"&gt;
                        This is the three
                    &lt;/ww:panel&gt;
                &lt;/ww:tabbedPanel&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/table&gt;

&lt;ww:include value="../footer.jsp"/&gt;

&lt;/body&gt;
&lt;/html&gt;
Criado 2 de dezembro de 2006
Respostas 0
Participantes 1