[Seasar-user:17442] [Teeda:te:include]につぃいて

thomas [E-MAIL ADDRESS DELETED]
2009年 5月 14日 (木) 16:19:52 JST


Hai,

When i use te:include tag in my teeda html,How can i get the included page
property in main page..
*
Main html **(itemstest.html)*

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:te="http://www.seasar.org/teeda/extension" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
</head>
<body>
<form id="Form">
*<te:include te:src="/include/maintanance.html"/>*
<input type="text" id="num1" class="hoge"/><br/>

<input type="text" id="*table*"/><br/>
<input type="submit" id="doNothing" value = "click"/>
</form>
</body>
</html>

*Include html(maintanance.html)*

<html xmlns:m="http://www.seasar.org/maya">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title></title>
    </head>
    <body>
    <center>
        <form id="maintananceForm">
            <table  bordercolor="#408080">
                <tr>
                <td colspan="2">
                    <h1><label
id="maintanancescreenLabel"></label></h1></td>
                </tr>
                <tr>
                    <td><label id="tableselectLabel"></label>
                        <select id="*table*">
                            <option></option>
                        </select><input type="button" id="doShow"></input>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center" height="20">
                        <span class="oneField"></span>
                    </td>
                </tr>
            </table>
            <span id="Messages"></span>
        </form>
    </center>
    </body>
</html>*


Main Page(ItemstestPage.java)*

public class ItemstestPage {

    public String num1;
    public String *table*;


    public Class doNothing() {
        return null;
    }

    public Class initialize() {
        return null;
    }

    public Class prerender() {
        System.out.println(*table*+"MAIN");
//Here i got null
        return null;
    }

}

*IncludedPage(maintanancePage.java)*

public class MaintanancePage {

    public String *table*;
    public List tableItems;


    public Class doShow() {
       * System.out.println(table);*
//Here i got the value of table
        return null;
    }

    public Class initialize() {
        return null;
    }

    public Class prerender() {
        return null;
    }

    public List gettableItems(){
        tableItems = new ArrayList();
        tableItems.add(setInputFields("AAAA", "aaa"));
        tableItems.add(setInputFields("BBBB", "bbb"));
        tableItems.add(setInputFields("CCCC", "ccc"));
        tableItems.add(setInputFields("DDDD", "dddd"));

        return tableItems;
    }
    public DataInfoStringDto setInputFields(String label, String value) {
        DataInfoStringDto inputFieldsDto = new DataInfoStringDto();
        inputFieldsDto.setLabel(label);
        inputFieldsDto.setValue(value);
        return inputFieldsDto;
    }
}


Please help me to solve this problem......


Thanks in advance.
トマス
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20090514/b17d956d/attachment.html>


Seasar-user メーリングリストの案内