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

thomas [E-MAIL ADDRESS DELETED]
2009年 5月 21日 (木) 18:45:58 JST


Hai

I am using Paging in my project.

my program works fine in firebox,where as in IE6,its not working correctly.

*paginInc.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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
    <form id="pagingForm">
    <!--<input type="hidden" id="deleteflg"></input>-->
        <b>
        <div id="isNavigation" class="pagenavi">
            <span id="isExistPrePage">
                <a id="prePageLink" href="#">
                    前へ
                </a>
            </span>
            <div id="pageNumberLinkItems">
                  <span id="isNotCurrent">
                       <a id="pageNumberLink" href="#">
                        <span id="pageNumberElement">
                        </span>
                       </a>
                  </span>
                <span id="isCurrent">
                    <span id="pageNumberElement-current">
                    </span>
                </span>
            </div>
            <span id="isExistNextPage">
                <a id="nextPageLink" href="#">
                    次へ
                </a>
            </span>
        </div>
        </b>

    </form>
</body>
</html>

*PagingIncPage.java*

public class PagingIncPage {

        public String prePageLink;

        public String prePageLinkHref;

        public String nextPageLink;

        public String nextPageLinkHref;

        public List<PageNumberLink> pageNumberLinkItems;

        public int pageNumberLinkIndex;

        public int pageNumberElement;

        public String pageNumberLinkHref;

        public String pageNumberElementHref;

        public boolean current;


     *   public PagingResultBean<?> pagingResult;*

        public int currentpageNumber;

        public int allPageCount;

        public int allRecordCount;



        public boolean isNavigation() {

               if(pagingResult.getAllPageCount() > 1)
                return true;
               return false;
        }


        public int getCurrentpageNumber() {

                return pagingResult.getCurrentPageNumber();
        }


        public int getAllPageCount() {

                return pagingResult.getAllPageCount();
        }


        public int getAllRecordCount() {

                return pagingResult.getAllRecordCount();
        }

        public boolean isExistPrePage() {

                return pagingResult.isExistPrePage();
        }


        public boolean isExistNextPage() {

                return pagingResult.isExistNextPage();
        }


        public String getNextPageLinkHref() {

                return
createTargetPageNumberLink((pagingResult.getCurrentPageNumber() + 1 ));
       }


        public String getPrePageLinkHref() {

                return
createTargetPageNumberLink((pagingResult.getCurrentPageNumber() - 1 ));
       }



        public List<PageNumberLink> getPageNumberLinkItems() {

                return pageNumberLinkItems =
createPageNumberLinkList(pagingResult);
        }


        protected String createTargetPageNumberLink(int pageNumber) {

                return "?targetPage="+pageNumber;
        }


        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.

            if(pagingResult!=null){
                pagingResult.setPageRangeSize(9);


                final PageNumberLinkSetupper<PageNumberLink> setupper = new
PageNumberLinkSetupper<PageNumberLink>() {

                        public PageNumberLink setup(int pageNumberElement,
boolean current) {

                        final String targetPageNumberLink =
createTargetPageNumberLink(pageNumberElement);

                        return new
PageNumberLink().initialize(pageNumberElement, current,
targetPageNumberLink);
                }

            };
            return
pagingResult.pageRange().buildPageNumberLinkList(setupper);
            }
            return null;
        }


        public Class initialize() {

                return null;
        }


        public Class prerender() {

                return null;
        }
        public String getLayout(){
            return null;
        }
}

can i use any Scopes for this variable?


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


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