ScrollableModelTag Class
- public class ScrollableModelTag
extends TagSupport
This tag helps with the navigation of a scrollable model
by outputting a "Previous | 20-29 | Next" text with
the proper hyperlinks based on the attributes of the
tag.
Those attributes are:
- origin: the page from which this tag originates, for use
by the WebFlow engine
- event: the event from a WebFlow engine view
- prevString: the JSP entered "Previous" in the language of choice
- nextString: the JSP entered "Next" in the language of choice
- pageIndex: the index of the page in the scrollable model one views.
The ScrollableModel is obtained from the pipeline session directly.
-
Hierarchy
-
Object
TagSupport
ScrollableModelTag
-
All Implemented Interfaces
-
IterationTag
, Serializable
, Tag
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScrollableModelTag
public ScrollableModelTag()
doStartTag() Method
public int doStartTag()
throws JspException
The tag body:
It first extracts the scrollable model using the pipeline session.
It then decides to show the Next and Previous hyperlinks.
It uses the origin/event of the JSP page to create the hyperlinks.
It finally uses the default JspWriter to output the
Previous / 5-9 / Next tag.
-
Overrides
-
TagSupport.doStartTag()
Exceptions
-
JspException
getEvent() Method
public String
getEvent()
getHttpSession() Method
public HttpSession
getHttpSession()
Get the Cached HttpSession.
It is initialized using the initialize method which is
invoked in the doStartTag().
getId() Method
public String
getId()
Get the value of id.
-
Overrides
-
TagSupport.getId()
getNextstring() Method
public String
getNextstring()
getOrigin() Method
public String
getOrigin()
Get the value of origin.
getPageindex() Method
public String
getPageindex()
getPipelineSession() Method
public PipelineSession
getPipelineSession()
Get the Cached PipelineSession.
It is initialized using the initialize method which is
invoked in the doStartTag()
getPrevstring() Method
public String
getPrevstring()
initialize() Method
public void initialize()
Get the current HttpSession and piplineSession.
release() Method
public void release()
Release this tag.
-
Overrides
-
TagSupport.release()
setEvent(String) Method
public void setEvent(String
e)
setId(String) Method
public void setId(String
id)
Set the value of id.
-
Overrides
-
TagSupport.setId(String)
setNextstring(String) Method
public void setNextstring(String
nextString)
setOrigin(String) Method
public void setOrigin(String
s)
Set the value of origin.
setPageindex(String) Method
public void setPageindex(String
pageIndex)
setPrevstring(String) Method
public void setPrevstring(String
prevString)