Giter VIP home page Giter VIP logo

list-nums's Introduction

ListNums

리스트 넘버를 제공하는 모듈

쿠키를 사용하여 리스트 넘버를 불러올 수도 있습니다.

쿠키에 리스트 넘버 저장 방법:

response.addCookie(CookieBox.createCookie(
	ListNumsProvider.blockCountCookieName,
	"10"));
response.addCookie(CookieBox.createCookie(
	ListNumsProvider.blockPageCookieName,
	"20"));  

필요 lib

페이징 처리를 위해 List를 불러오는 DB에 다음과 같은 쿼리를 추가합니다.: (iBATIS SqlMap을 기준으로)

  select *
  from ( select a.*, rownum rnum
  from (
    [GET LIST QUERY HERE]
  <![CDATA[
  ) a
  where rownum <= #endRowNum:DECIMAL# )
  where rnum >= #startRowNum:DECIMAL#
  ]]>

뷰를 위한 태그를 제공합니다.: <%@ taglib prefix="l" uri="/listnums-tags"%>

  • l:firstpage
  • l:lastpage
  • l:prevpage
  • l:nextpage
  • l:numbering
  • l:prevblock
  • l:nextblock

Commiter

Mr. 하늘 ([email protected]) - http://mr.hanul.co

list-nums's People

Contributors

hanul avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.