org.opensubsystems.patterns.listdata.www
Class ListDataSpecificPageTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.opensubsystems.core.www.PageElementCacheTag
              extended by org.opensubsystems.patterns.listdata.www.ListDataBaseTag
                  extended by org.opensubsystems.patterns.listdata.www.ListDataActionTag
                      extended by org.opensubsystems.patterns.listdata.www.ListDataSpecificPageTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class ListDataSpecificPageTag
extends ListDataActionTag

Custom tag to generate hyperlink that can invoke instance of ListBrowserServlet and display a specific page. This class implements functionality similar to methods in listdata.js but only based on the data available at the time when the page is generated. If the page dynamically changes some of the list data pattern variables for example based on users' action, you should use methods in the listdata.js instead. Keep this functionality synchronized with the one provided by the JavaScript file.

Version:
$Id: ListDataSpecificPageTag.java,v 1.2 2007/02/20 04:18:18 bastafidli Exp $
Author:
Miro Halas
See Also:
Serialized Form
Code reviewer:
Miro Halas
Code reviewed:
Initial revision

Field Summary
protected  java.lang.String m_strPage
          Page to go to.
 
Fields inherited from class org.opensubsystems.patterns.listdata.www.ListDataActionTag
m_strCommand, m_strUrl
 
Fields inherited from class org.opensubsystems.patterns.listdata.www.ListDataBaseTag
m_strOptions
 
Fields inherited from class org.opensubsystems.core.www.PageElementCacheTag
CACHE_INDICATOR, CSS_ELEMENT, JS_ELEMENT, m_strCacheas, m_strId, PAGE_ELEMENTS_CACHE, SCRIPT_ELEMENT
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ListDataSpecificPageTag()
          Constructor for custom tag.
 
Method Summary
protected  java.lang.String getActualPage(ListOptions listoptions)
          
 java.lang.String getCommand()
          Get the command specifying action to execute.
 java.lang.String getPage()
          Get the page to display.
 void setCommand(java.lang.String strCommand)
          Set the command specifying action to execute.
 void setPage(int iPage)
          Set the page to display.
 void setPage(java.lang.String strPage)
          Set the page to display.
 
Methods inherited from class org.opensubsystems.patterns.listdata.www.ListDataActionTag
doEndTag, doStartTag, getBeginPosition, getClientOrderCode, getClientOrderDirection, getDefinitionId, getDomainId, getEndPosition, getFirstVisibleItem, getIgnoredItemIDs, getKeepSelected, getMarkedItemIDs, getOrderColumnCodes, getOrderDirections, getPageSize, getParentDataType, getParentId, getSelectedItemIDs, getShowColumnCodes, getUrl, setUrl
 
Methods inherited from class org.opensubsystems.patterns.listdata.www.ListDataBaseTag
getExtraConditionAttribute, getExtraConditionObject, getExtraConditionOperation, getExtraConditionValue, getExtraConditionValueType, getOptions, getOptionsObject, setOptions
 
Methods inherited from class org.opensubsystems.core.www.PageElementCacheTag
cache, getCacheas, getCachedContent, getCachedContent, getCachedContent, getCachedContentElements, getId, setCacheas, setId
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

m_strPage

protected java.lang.String m_strPage
Page to go to. Required.

Constructor Detail

ListDataSpecificPageTag

public ListDataSpecificPageTag()
Constructor for custom tag.

Method Detail

getCommand

public java.lang.String getCommand()
Get the command specifying action to execute. Recognized values are previous,next, goto, pagesize, but you can specify your own if you implement support for it on the backend in your ListBrowserServlet derived class. Required.

Overrides:
getCommand in class ListDataActionTag
Returns:
String - command to execute

setCommand

public void setCommand(java.lang.String strCommand)
Set the command specifying action to execute. Recognized values are previous,next, goto, pagesize, but you can specify your own if you implement support for it on the backend in your ListBrowserServlet derived class. Required.

Overrides:
setCommand in class ListDataActionTag
Parameters:
strCommand - - command to execute

getPage

public java.lang.String getPage()
Get the page to display.


setPage

public void setPage(java.lang.String strPage)
Set the page to display.

Parameters:
strPage - - page to display

setPage

public void setPage(int iPage)
Set the page to display.

Parameters:
iPage - - page to display

getActualPage

protected java.lang.String getActualPage(ListOptions listoptions)

Overrides:
getActualPage in class ListDataActionTag
Parameters:
listoptions - - list options used to generate this list
Returns:
String


Copyright © 2003 - 2006 OpenSubsystems s.r.o.