[Seasar-user:17500] Re: [Teeda-paging]PagingResultBean<?> pagingResultについいて

thomas [E-MAIL ADDRESS DELETED]
2009年 5月 22日 (金) 14:41:05 JST


*employeemasterList.html*

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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"/>
<title id="title">Employee Master</title>
<link rel="stylesheet" type=" text/css" href="../../css/global.css"/>
<link rel="stylesheet" type=" text/css" href="../../css/master.css"/>

</head>

<body>


<form id="employeemasterListForm"><br/>
<!--<input type="button" value="Create" onclick="redirect()"></input>-->

<!--<te:include te:src="/include/search.html"/>-->

<table border="1" width="100%">
<tr>
<td><label id="empcode"></label></td>
<td><input type="text" id="empcodes"></input></td>
<td><label id="empnamekanji"/></td>
<td><input type="text" id="empnameskanji"></input></td>
<td><label id="empnamekana"/></td>
<td><input type="text" id="empnameskana"></input></td>
</tr>
<tr>
<td><label id="empfirstname"/></td>
<td><input type="text" id="empfirstnames"></input></td>
<td><label id="emplastname"/></td>
<td><input type="text" id="emplastnames"></input></td>
<td><label id="dsgnation"/></td>
<td><select id="dsgnations"></select></td>
</tr>
<tr>
<td><label id="jblevel"/></td>
<td><select id="jblevels"></select></td>
<td><label id="deleteFlg"/></td>
<td><select id="deleteflgItems"></select></td>
<td colspan="2" align="center"><input type="button"
id="doSearch"></input></td>
</tr>
</table>


<br/>
*<input type="button" id="goemployeemasterCreate"></input>*  *//When i click
this button in IE6 the same page is displayed(EmployeemasterList.html),where
as in firebox employeemasterCreate.html is displayed.*
<br/>
<table class="container" border="1" align="center" bordercolor="#408080"
width="100%">
<tr class="heading">

<td><label id="employeecode"/></td>
<td><label id="employeenamekanji"/></td>
<td><label id="employeenamekana"/></td>
<td><label id="employeefirstname"/></td>
<td><label id="employeelastname"/></td>
</tr>
<div id="employeemasterItems">
<tr class="item">
<td><a id="goemployeemasterCreate"
href="employeemasterDetail.html?employeecode"><span
id="employeecode"></span></a></td>
<td><span id="employeenamekanji"></span></td>
<td><span id="employeenamekana"></span></td>
<td><span id="employeefirstname"></span></td>
<td><span id="employeelastname"></span></td>

<td><span id="designation"></span></td>
<td><span id="joblevel"></span></td>

</tr>
</div>
</table>
<center>
*<te:include id="tablePages" te:src="/include/pagingInc.html"/>*     *// i
included pagingInc.html*

</center>
</form>

<table align="center"><span id="allMessages"
style="color:red;"/></table></body>
</html>
*




EmployeemasterListPage .java*

public class EmployeemasterListPage extends AbstractEmployeemasterPage{

    protected Log log = LogFactory.getLog(this.getClass());
    @SubapplicationScope
    public String empcodes;
    public int employeemasterIndex;

    public String postalcode;
    @SubapplicationScope
    public String emplastnames;
    @SubapplicationScope
    public String empfirstnames;
    @SubapplicationScope
    public String empnameskana;
    @SubapplicationScope
    public String empnameskanji;

    public List<DataInfoStringDto> deleteflgItems;

    public List<DataInfoStringDto> dsgnationsItems;

    @SubapplicationScope
    public String dsgnations;

    @SubapplicationScope
    public String deleteflg;

    public List<DataInfoStringDto> jblevelsItems;

    @SubapplicationScope
    public String jblevels;

    public boolean check;

    public String goemployeemasterCreate;

   * @Binding (bindingType = BindingType.MUST)
    public PagingIncPage pagingIncPage;*

    public PropertiesUtil prop;

    public int targetPage;

    public static final String PROPERTY_FILE_PATH = "parameter.properties";

    public PagingResultBean<Employeemaster> employeemasterItems;

    public EmployeemasterBhv employeemasterBhv;

    public EmployeemasterDxo dxo;


    public Class prerender() {

        return null;
    }

    public Class initialize(){
        return null;
    }

   * public PagingResultBean<Employeemaster> getEmployeemasterItems(){
        employeemasterItems = selectPage();
        **pagingIncPage.pagingResult = employeemasterItems;    //here i set
paging Result
        return employeemasterItems;
    }*

    public PagingResultBean<Employeemaster> selectPage() {

        EmployeemasterCB empCB = new EmployeemasterCB();
        empCB.query().setEmployeecode_Equal(empcodes);
        empCB.query().setEmployeefirstname_Equal(empfirstnames);
        empCB.query().setEmployeelastname_Equal(emplastnames);
        empCB.query().setEmployeenamekanji_Equal(empnameskanji);
        empCB.query().setEmployeenamekana_Equal(empnameskana);
        empCB.query().setDesignation_Equal(dsgnations);
        empCB.query().setJoblevel_Equal(jblevels);
        if(deleteflg!=null){
            if(deleteflg.equals("削除のみ")){

                empCB.query().setDeleteflg_Equal(true);
            }
            else if(deleteflg.equals("削除以外")){
                empCB.query().setDeleteflg_Equal(false);
            }
        }
        else if(empcodes == null && empfirstnames == null && emplastnames ==
null
                &&empnameskana == null && empnameskanji == null && jblevels
== null
                && dsgnations == null){

            empCB.query().setDeleteflg_Equal(false);
        }

     *   empCB.paging(1, targetPage);*

        return employeemasterBhv.selectPage(empCB);

    }





Thanks,
トマス







2009/5/21 Koichi Kobayashi <[E-MAIL ADDRESS DELETED]>

> 小林 (koichik) です.
>
> Date:    Thu, 21 May 2009 18:45:58 +0900
> From:    thomas <[E-MAIL ADDRESS DELETED]>
> To:      [E-MAIL ADDRESS DELETED]
> Subject: [Seasar-user:17495] [Teeda-paging]PagingResultBean<?>
> pagingResultについいて
>
> >         protected List<PageNumberLink> createPageNumberLinkList(final
> > PagingResultBean<?> pagingResult) {
> >
> >         *System.out.println(pagingResult);*      //This becomes null in
> > firebox when i click any other buttons in main Page ,so it works fine
> where
> > as in IE6 the previous value didnt become null.
>
> Who calls this method?
>
>
> --
> <component name="koichik">
>    <property name="fullName">"Koichi Kobayashi"</property>
>    <property name="email">"[E-MAIL ADDRESS DELETED]"</property>
>    <property name="blog">"http://d.hatena.ne.jp/koichik"</property>
> </component>
>
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user
>
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20090522/5eba9367/attachment.html>


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